asp.net-2.0

pass values or data from one page to another when you use Login control in ASP.NET 2.0

I am using Login Control available in ASP.NET 2.0 in the login page. Once the user is authenticated successfully against database, I am redirecting the user to home.aspx. Here, I want to pass on the User's name too to the home.aspx so that the user will be greeted with his/her name in the home.aspx. Ex: Welcome Smith I am extracting th...

WebResource.axd requested without parameters - This is an invalid webresource request

I'm finding this problem every now and then in my production website, and it has me absolutely stumped... My app works perfectly in both dev and production, but every now and then, I get an e-mail from my global error handling with this: MESSAGE: This is an invalid webresource request. URL: /WebResource.axd (which means that for some r...

need working example of how to share "session" data between two .net 2.0 web applications running on the same domain

i would like a working example, that uses a asp.net session state server, to share a session variable between two .net 2.0 web applications both running on the same domain, just in different folders ( same parent folder) directory structure: parent site: [localhost/testSite] web app 1 site: [localhost/testSite/webapp1] web app 2 site: ...

How to enlarge image to normal size in ASP.NET 2.0

Hi My users uploads a picture and the picture get saved into my SQl Server Database My users view the picture on the page in a normal Image WebControl with size 150px by 150px - example can be found http://www.erate.co.za/CompanyProfile.aspx?ID=112 - the USA flag is the Image i am talking about. If the user uploads a picture of 300...

What is the concept of an Online Reminder Service in ASP.NET, SQL ?

I want to develop an Online Reminder service in ASP.NET 2.0 (C#) and SQL2005. But I am not getting the concept of reminder service. What I know is using an online reminder service I can schedule a reminder for future dates, which is sent to me (who schedule reminder) via email or SMS on that date. But in asp.net how to do this, caz anyo...

problem in getting cell value from grid view

I want to get the cell value from a grid view. I am using the following code but it produces an error. Code: cmd.Parameters.Add("@ProjectCode", SqlDbType.VarChar).Value = ((GridView)TeamMemberGrid.Rows[e.RowIndex].Cells[1].Controls[0]).ToString(); Note: @ProjectCode is one of the fields in the grid view. ...

jQuery not working in ASP 2.0 page - Visual Web Developer 2008 Express

JQuery is not working in ASP 2.0 pages which were developed under VS 2005 and now doing Javascript in it using Visual Web Developer 2008 Express. I have included the jquery file. I have also installed all patches required. JQuery intellisense works fine in the IDE, but no jquery command is running. btw, the page renders fine from the ser...

How do I call javascript just before a response redirect

Hi there, I'm trying to run some java script just before a page redirect but it fails to run. When I comment out the Response.Redirect all works fine but this goes against the particular requirements. Any ideas on how to implement this functionality? Dim strscript As String = "<script>alert('hello');</script>" If Not Cl...

How can I invoke a function when a user leaves my site?

I'm developing a website in VB.NET/ASP.NET 2.0. I want to invoke an event (Server Side) once a user leaves my site by putting a different URL in the address bar, is it possible? If so, how? ...

How to access your website through LAN in ASP.NET

hello, I have an asp.net web-page application and i want it to be accessed using a local area network(LAN) or wireless area network(WLAN). I do not know where to start. Is there something that i will configure in order for others to access my web-page?? I would really appreciate your answer, thanks a lot.. (^_^)... ...

How to Deploy/Publish an ASP.NET website?

Hi folks, Is there any easy way to Deploy/Publish a website written in asp.net ? And what is the difference between deploy and publish ? ...

How to create a virtual directory in IIS7 for ASP.NET?

I have an ASP.NET web site, my machine has IIS7 running on Windows Vista home premium. I want it to be visible to other computers on the LAN. Do I need to create a virtual directory? How can I create a virtual directory on my machine? How do I have to deploy it for others to see my web application? ...

ASP.NET common controls source code

Is there a source code readily available for commonly used controls (say found in the toolbox) for ASP.NET 2.0? The level of detail that I want its that I need to know the internal workings of the control. ...

How to register ASP.NET 2.0 to web server(IIS7)?

Hi., I have a web-page application already created, but when I open it in visual studio 2008, it says there that: ASP.NET 2.0 has not been registered on the Web Server. You need to manually configure you Web server for ASP.NET 2.0 in order for your site to run correctly. I'm using asp.net 2.0, IIS7 and running on vista home prem...

Localization in ASP.NET never worked for me !

I'm facing a strange issue, I'm trying to localize a website, so i converted it to a web application and generated resx file for each aspx and ascx file i have ( pagename.en.resx ..etc) however the localization never worked with me. one thing to mention that when i open the resx files in the designer mode i find "Access Modifier" dropd...

Search engine friendly urls in ASP dot NET

Objective was: To change pages like details.aspx?GUID=903901823908129038 to clean ones like /adrian_seo Achieved: Now using Response.AddHeader("Location", url); I am able to remove all uppercase urls. I use the following function: protected void Page_Load(object sender, EventArgs e) { string url = Request.Url.ToString(); if (...

How to automatically refresh a web-page using ASP.NET?

hello there, I have an asp.net application that would 'simulate' real-time video. I did that acquiring multiple picture from an mysql database. The problem is how would it be displayed on the web-page.? I refresh the page 1 second per picture, the result is the pictures are choppy and flickery. Response.AppendHeader("Refresh", "...

How can I split an mp3 file into several individually playable parts?

How can I break a large mp3 file into one or more mp3 files, and still have each part playable in a media player? ...

Want to thread a request to generate a page in ASP

Hello, I have an ASP.NET page that I want to be able to generate and save. The page takes a really long time to load, so I'd like to do it in a separate thread, while using the session of the user who requested the page (so that the page looks like it would if they viewed it themselves). Opening a new thread from code-behind breaks the...

Refresh Problem

Hi Everyone i am working on chat application in asp.net C#. application work very nice but when anyone press F5 or refresh button of browser that time whole page is refresh that time all thing i get back but if i done file upload that time upload one more time can done. anybody say why it happen. when i press refresh that tim...