asp.net

Jquery: Jquery not working in onunload event

Hi, I am trying to send an ajax request in the onunload event of a page. I am using the $.post function of jquery, but when the event actually fires i get this error: "Microsoft JScript runtime error: '$' is undefined" Does this mean that the jquery library has been deferenced before the $.post function was called and so i will not lon...

ASP.NET MVC model binding an IList<> parameter

[I solved this myself, see my answer for cause] I'm having trouble getting form values for a IList<> argument in a controller method set properly. My controller class looks like this: public class ShoppingBasketController : Controller { public ActionResult Index() { return View(); } [AcceptVerbs(HttpVerbs.Post)] ...

Implementing Gridview paging in asp.net 2008

i am using asp.net 2008 and i have implemented the in-build Gridview Paging.But it didn't work.then how can i implement Gridview Paging?i am using sql server 2005. ...

How to redirect to LogIn page when Session is expired (ASP.NET 3.5 FormsAuthen)

Hi, I'm using FormsAuthentication and ASP.Net SqlMembership Provider. I would like to provide a functionality to redirect to LogIn page when the underlying Session is expired. I put the following block of codes in my BasePage OnInit. As far as I tested, it always keeps on redirecting to LogIn page even though I supplied...

How do I fix a "Request format is unrecognized for URL..." error in a web service running in IIS?

I am get the following error while running web service in IIS: Server Error in '/Inbox Sevice' Application. Request format is unrecognized for URL unexpectedly ending in '/GetMailsInfo'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more i...

I have to integrate an existing asp.net web app into another page by using jquery's load() method...

I'm a bit stumped... I have to integrate an existing, simple asp.net web forms app including postbacks etc. into another external site with a jquery load() call., an app that was intended to be integrated through an iframe. I doubt that's possible without a rewrite of the app. The app is a basic questionnaire that leads the user to a p...

Button in update panel is doing a full postback?

I'm following a simple example of how to use the update panel from here (http://www.asp.net/Ajax/Documentation/Live/tutorials/IntroductionUpdatePanel.aspx). Outside the update panel i've another html input control which calls a javascript function which displays an count to the user in an alert box. simple stuff. My problem is that the ...

browserCaps in an External Config File

The BrowserCaps setting is rather quite long. Is there a way to factor it into an external config file. does anyone know the markup? ...

Managing connection to database in an asp.net application

I would like to know, what would be the best way to manage a connection to a database in asp.net. My application is built using an N-Tier architecture. The DAL consists of static classes with methods such as Public Shared Sub Delete( _ ByVal connection As MyConnectionClass, _ ByVal contact_id As Integer, _ ByVal contact_tim...

I need to build a very light weight Ajax Engine using C# and ASP.Net. What do you suggest?

I have before created a quick Ajax Framework for one of my projects. It was an ASP.Net Website (C#). There was not a lot of Ajax type functions so I just made a new Page with nothing in it and in the code behind file I put some code in the Page_Load method which would look for an action in the request and then call the appropriate method...

ASP.NET GridView format cells

Hi, I have a class called SpecialGridView that inherits from GridView. For other hand I have report pages that are using this SpecialGridView to show data. The property autogeneratedcolumns was set to true, and I would like to keep this option. To put the data format, I overrided the "CreateAutoGeneratedColumn" to parse if the data ...

Multiple 'development servers' started by Visual Studio

Occasionally, when performing certain actions in Visual Studio, things seem to go 'haywire' - Visual Studio launches many, many instances of the 'Development Server' - multiple icons appear in the notification area, multiple successive 'toast' notifications pop up etc etc. Both of the solutions I have this problem with contain two web p...

Making Variable Sized form tables in ASP.Net (there has to be a better way...)

currently I'm writing code to make variable sized tables with asp:controls in them that look something like this: TableRow tableHeader = new TableRow(); tableHeader.ID = "tableHeader"; userTable.Rows.Add(tableHeader); TableCell tableHeaderCell_1 = new TableCell(); tableHeader.Cells.Add(tableHeaderCell_1); TableCell tableHeader...

How can i find out what version of IIS i need to deploy ASP.NET+VB App?

I just got application written in ASP.NET and VB, can i deploy it on any IIS? Are there any files in project with that kind of information? ...

stack overflow exception using template asp.net

We are using FW2.0 web application which is developed using VS2005. Our win2003 server had Windows update on last week with FW3.5 SP1, after that we struck-up in web application login issue. Basically our application works with both windows authentication as well anonyms But after install the FW3.5 SP1, the windows integrated authenti...

Why is the UpdatePanel Response size changing on alternate requests?

We are using UpdatePanel in a small portion of a large page and have noticed a performance problem where IE7 becomes CPU bound and the control within the UpdatePanel takes a long time (upwards of 30 seconds) to render. We also noticed that Firefox does not seem to suffer from these delays. We ran both Fiddler (for IE) and Firebug (for ...

Linq to SQL - double quote issue

I have a problem wherein if I have a text area in ASP.NET and enter 2 double quotes at the very end of the sentence, I get a error in my sql statement. I have traced thru the sql profiler but with no luck. eg. The lazy fox jump over the dog"". This fails.... ""The "lazy" fox jumps over the dog. This seems fine Any pointers most welcom...

PostBack event not firing in WebBrowser Control

In our client application making use of the .NET WebBrowser control, about 1% of our users are reporting no-action when clicking on an ImageButton, LinkButton, or any ASP.NET control that submits its request via DoPostBack(). When the same users access the page directly in IE, the controls behave normally. What could be causing the dis...

Databound FormView linked to DropDown, How to set initial item?

I have a dropdown bound to a datasource, this dropdown is also used to select the index for the FormView on the same page. As per ASPNET examples How do I set the initial item, so when the EditPage containing the DDL and Formview is displayed it is displaying a certain item? ...

Deserialize session object without type reference?

I have a POCO (plain old clr object) stored in session, and would like to be able to reference properties from that object from within another process (B). I don't want the stand-alone process (B) to require a reference to the dll in which the poco's class is defined. Is it possible to convert the saved object (in session) to something...