asp.net

How to process events from Buttons inside Repeaters? And what's this EnableEventValidation thing?

I have a Repeater with a Button inside the ItemTemplate. I added the CommandName property to the button and registered and event handler for the ItemCommand event on the Repeater. My problem is that when I click the button, I get an ArgumentException with a message saying something about EnableEventValidation being set to true. (By the...

Is Postback considered as a pageview by google ads or CPM ads?

Hi, I would like to know if a postback (asp.net) is considered as a pageview by google ads or CPM ads or it is ignored. How does google ads differentiate between a postback and a pageview? Any inputs will be highly appreciated. Thanks ...

Unable to deploy .NET 2.0 web app to a Plesk VPS - "The ~/ directory does not exist."

I've set up an ASP.NET 2.0 web app in VS 2008 (it's 2.0 as it contains some legacy code) and I'm now trying to deploy it to my new VPS. I've created the domain in Plesk and set up the FTP account. I can FTP the server using the command line and all works well, however, if I try to use the "copy website" option in VS 2008 I get "The ~/ d...

Pass to javascript a dictionary of a dictionary (.NET)

I'm trying to solve the problem of passing a 2-dimensional table into JavaScript AJAX application through SOAP web services. I'm trying to pass data into JavaScript web page through ASP.NET web service declared with following attributes: [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.Web.Script.Services.ScriptServ...

ASP.NET Show Error Details

I recently deployed my ASP.NET 3.5 application to my test server, a newly installed copy of Windows Server 2003 Standard on which is IIS 6.0 and .NET 3.5 SP1. When I view the application (even from a web browser on the server) I get: Server Error in '/' Application. Runtime Error Description: An application error occurred...

Progress Bar

Is there a way to make a progress bar like that in gmail in ASP.net ...

FormsAuthentication.SignOut() does not log the user out.

Smashed my head against this a bit too long. How do I prevent a user from browsing a site's pages after they have been logged out using FormsAuthentication.SignOut? I would expect this to do it: FormsAuthentication.SignOut(); Session.Abandon(); FormsAuthentication.RedirectToLoginPage(); But it doesn't. If I type in a URL directly, I c...

What are the practical uses of resx file?

What are the practical uses of resx file? I am using .net 1.1. ...

ASP.Net Session Timeout: Why 20 minutes used as default?

In ASP.Net the default Session Timeout is set to 20 minutes. Why so? Is there any specific reason behind it? Thanking you. ...

what is an invalid request in HTTP.sys?

what is an invalid request in HTTP.sys? ...

Frameworks available to .NET

I would like to build an application that will run on a web, this is for an enterprise solution, but I don't know what kind of framework that I'll be using, does anyone out there could recommend a framework that is best suited in .NET/ASP.NET application that could handle DAL, BLL and GUI, other than CSLA.NET? ...

Image Uploading in ASP.NET with C#

I created 2 pages: page1.aspx and page2.aspx. I defined 5 fileuploader controls in page 2 but I want to save Page1.aspx on save button. Actually, the page contains a Back Button in which I store all Uploading file in a string object and it populate on Page1.aspx as a session. How can I save a file on server? ...

ajax method

I am using: [ajax.ajaxmethod()] public void fnName() containing: response.redirect("sample.aspx"); or: server.transfer("sample.aspx"); both are not working... what is the solution? in that block, I tried to call javascript function as scriptmanager.registerstartupscript(page,gettype(),"sample","javascriptfunction()",true);...

Dynamically Generating RadioButtonList

Hi All I'm going to generate an asp:CheckBoxList using this code <% System.Collections.Generic.List<QuizzEngine.Common.Question> qList = (System.Collections.Generic.List<QuizzEngine.Common.Question>)Session[QuizzEngine.Common.SessionKeys.QuesionsList]; int navigator = (int)Session[QuizzEngine.Common.SessionKeys.Navigator]; if (**Tru...

what is difference with WCF and other web services ?

I'm confused with WCF and other web services (such as asp.net ASMX,.net Remoting),can anybody tell me what is difference with WCF and the others and when should I use it, thanks! ...

Convert Windows Forms application into Asp.net

I am asking about the best tool that you used before to convert a c# windows forms application into asp.net? I already googled about this topic and found alot of tools but I want someone to recommend the best one based on his usage. ...

asp.net observer pattern

I'm working on a project where a central class (the subject), will contain alot of data. There will be an aspx page that displays this data, using .net ajax. When the subject is updated from any page, I want all the open pages to update. I will be using the observer pattern for this. THe question is, do I make the actual aspx page the ob...

Asp.net and windows authentication

My application needs to be designed so that an administrator can, via a web interface select if their users login via windows authentication or forms authentication. This means I cant specify the authentication mode in the web.config i.e.: <system.web> <authentication mode="Windows"/> </system.web> How do I approach this? ...

Windows authentication and webservices

I have an authentication webservice which I pass a username and password to. This returns a bespoke credentials object to the requesting application. This credentials object is then used throughout the application (its passed to other service methods). public Credentials login (string username, string password) { } I have been asked t...

Caching database data in Session - getting the balance right

If you cache data from your database in ASP.NET Session then you will speed up subsequent requests for that data (note: depending on the serialization/deserialization cost of the data concerned), at the expense of memory load in IIS. (OK, this is probably a simplification of the reality of the situaiton - feel free to correct or refine ...