asp.net

Deleting Application Temp File from ASP.Net

Hi, I have a WebPage where I am giving the option to to Export the Form data to PDF. I am creating the PDF at run time and store the PDF in a "PDF" folder which is under my application directory. After creating the PDF with the SessionID name I Call following function to show the PDF file in the new browser window: ResponseHelper.Redir...

Detecting page refresh without viewstate

Is there a way to detect page refresh without using viewstate in asp.net webforms ? I was wondering if it was at all even possible since asp.net mvc doesn't use viewstate for example. I am trying to avoid using viewstate alltogether to keep my page size small. ...

removing duplicate script from page

I am trying to make use of the yahoo exceptional performance rule : avoiding duplicate script To do so i would like to be able to know whether or not a script was already added to the page before injecting it in the page. It looks like i can't figure what has been added in asp.net code behind unless i have a scriptmanager added to the p...

Getting IP address.

How to get and display the current viewer IP address in a text box? ...

How to Assign Connection String to ChangePassword control in ASP.Net c#

Hi All, I have distributed data base system and in my project data base connection string is in session object. The problem is how to assign connection string to ChangePassword control on Runtime from session object. Thanks.. ...

What is expire header and how to achive them in ASP.NET and PHP?

Today I have checked performance statistics of my website using YSlow. I got a warning (or error may be) which is as below Add Expires headers There are 15 static components without a far-future expiration date. * (no expires) http://www.example.com/video/css/global.css * (no expires) http://www.example.com/video/js/global.js ...

Session timeout error for ASP.net applications expires in 5 sec on one server & runs fine on another

Session timeout error for ASP.net applications expires in 5 sec whenever we login to website the session expires in 30 secs max & we are unable to save our work / submit our request from application. http://www.townplanning.in/ This is 3 year old website running on same server & now problem have started coming from past few days ........

Range validator

In Rangevalidator one Property is Type in this Property String is available Please give me exact example of that how can we used it... ...

Javascript Popup window in IE6 and above...

I'm opening a modal dialog for IE6 and above using the following javascript. window.showModalDialog( 'SelectUser.aspx', null, 'status:no;dialogWidth:500px;dialogHeight:220px;dialogHide:true;help:no; scroll:yes;toolbar:no;title:no;resizable:yes;location:no;menubar:no;' );...

Can't save file on webserver: System.UnauthorizedAccessException

I can't save a file on my webserver with FileUpload.SaveAs() or with File.WriteAllText(). The folder I save in is CHMOD 666. My code is this: File.WriteAllText(MapPath(".") + "\\Ads\\test.jpg", "test"); This code works perfectly in Dev. server. Best regards, Lasse Espeholt System.UnauthorizedAccessException: Access to the path *' is...

which asp.net book is better

Hi All, Just want to know which asp.net book will be better for me (I know the basics): Pro ASP.NET 3.5 in C# 2008 by Matthew MacDonald or Programming ASP.NET 3.5 by Jesse Liberty Thanks. ...

Error while deploying setup web project of vs 2003

Hi I am getting error as The specified psth is unavailable.The Internet Information Server might not be running or the path exists and is redirected to another machine. Please check the status of this virtual directory in the Internet Services Manager Thanks in advance ...

ASP.NET Uploaded File

Hi, I have an ASP.NET web application that uses jQuery on client side. On one of the web forms I have a bunch of controls to fill, and an upload control. User can run upload while filling other entries on the form. When user saves the form, all data including file is stored into database . The question is what to do with uploaded file wh...

Custom ASP.NET Configuration Section

Hi All I want to create a custom configuration section to handle email notifications. The configuration needs to be in the following format: <configSections> <sectionGroup name="notifications"> <section name="notification" type="NotificationConfiguration" allowLocation="true" allowDefinition="Everywhere" /> </sectionGro...

Visual Studio 2003 vs. Visual Studio 2005

I am personally only familiar with VS 2005 and am working on a project using VS 2003. So I've downloaded the solution to my local drive, opened it and had to fiddle with IIS a bit before it would run and now I also have the website in the inetpub folder. Can someone just explain using an overall picture what's going on. Am I editing th...

Why does authenticating against LDAP with DirectoryEntry intermittently throw COMException (0x8007203A): "The server is not operational"?

If anybody has a similar story, please post details below! I'm building an ASP.NET website which needs to support authentication against LDAP. On windows, LDAP auth can be performed via Active Directory (I'm no expert, but AD seems to simply be a particular flavor of ldap). I don't control the AD and/or LDAP servers. I've tried vario...

ASP.NET: Doesnot download Parallel content.

In asp.net application, how its possible to download all png,css JavaScript and other resources parallel. Because i am monitoring using Fiddler and found that content is downloaded one after another. ...

Is there any tool to find the unused dlls in asp.net web appplication?

Hi, Is there any tool to find the unused dlls in asp.net web appplication? ...

How to use c# code inside <% ... %> tags on asp.net page?

I'm writing an asp.net user control. It has a property FurtherReadingPage, and controls: ObjectDataSource and a Repeater bound to it. Inside the Repeater I would like to display a hyperlink with a href property set to something like FurtherReadingPage + "?id=" + Eval("Id") and I don't know how to do it inside html code. I can use <% Eval...

ASP.NET Server.Mappath problem from inner folders

I have an ASP.NET application where in my APP_Code folder i have a class.In that i have the following code to read the content of an XML file which is in my root folder XmlDocument xmlSiteConfig = new XmlDocument(); xmlSiteConfig.Load(System.Web.HttpContext.Current.Server.MapPath("../myConfig.xml")); My Root folder is having several f...