asp.net

"Timeout Obtaining a Connection from the Pool"

Hi Can any one help to get rid of this error "Time Out expired.The time out elapsed prior to obtaining a connection from the pool .This have occurred because all pooled connections were in use and max pool size was reached" Thank You ...

How to learn/understand ASPX or ASCX pages

I am in the process of learning ASP.NET MVC and I am learning it by walking through nerd dinner application. I am having trouble understanding the ASPX and ASCX files. The way of writing the code in ASPX files seems pretty weird (code is split in multiple lines). Please can you suggest any online tutorial/guide/article which can expla...

QueryString checking

How to check if the web page contains any string queries at the page load? ...

Redirect after refreshing update panel

Hello, Do you think it's possible to refresh an update panel and immediately after redirecting the response (for instance a download) ? I tried this: an invisible button -> as an asyncpostbacktrigger a download button -> when it is clicked the onclientclick clicks the invisible button the click event on the invisible button re...

Paging large amounts of Data in a Gridview

Ok, please bear with me as I can be a bit of a wood duck at times... I have a gridview in asp.net that will be pulling back many thousand of records. This is all well and good apart from the performance aspect of things. I am binding my Gridview to a dataset and this pulls back every record in the query. I want to change this so that th...

Implementing own Session Management in ASP.NET

What options are there to implement an own session management in ASP.NET? I just found one older solution about "highjacking" the built-in session management. Is there a nice way to implement a component which performs all session tasks? How can i include a class which receives the HTTP Request and Response during one request process? ...

Prevent to save as web page and .js file

I want to prevent my web site from save As functionalily of browser. My site have some javascript file too. Is there any source code to prevent from save as the web site from browser or source code for encryption of site. Thank you ...

Loading a different web.config file at runtime fo ASP.NET

I have a web application which I want to use for multiple business areas. I do not want to have multiple instance of the web app code on the web server. So as an example: I have //MyWebSite/Virtual_Directory_1 refers to c:\Inetpub\wwwroot\MyWebApp pointing to Database_A What I want is to setup another Virtual Directory as follows: //My...

Using ASP.NET WebService with javascript

Hi evrery one! I have this code in my project: var UI = { Layouts: { ShowLayoutSettings: function(pid, lid) { My.PageServices.GetPageLayout(lid, pid, UI.Layouts._onShowLayoutSettings); }, _onShowLayoutSettings: function(obj) { alert(obj.ID); } } } and in my asp.net project a web service named PageSer...

Prioritise ASP.NET requests

Hello I would be surprised if this is possible, but you never know. Is there a way in which I could prioritise ASP.NET requests? For example, if the request is a NEW request (coming from Location X) I would like it to take priority over a request coming from a known location. This will be running under IIS 7 so can I make use of the ...

How can I prevent/make it hard to download my flash video?

I want to at least prevent normal users to download my flash video. What's the best way to do it? Create a httphandler, add a token (e.g. timeid), set the cache control to no-cache so that only the users with correct token can view the correct video. Is that feasible? It is the requirement from client that the video should not be down...

checkbox data binding

How to add a check box in a .aspx page. I had used a database. and i read data from the database successfully. And now the readed data is in data table "dt". And i added this statement if (dt.Rows[0]["IsActive"].ToString() == "True") if the condition is true, Then the check box will be checked? but i didn't get. How it will get? ...

Asp.net AjaxToolkit TabContainter Active Tab changed - previous tab

Is there any way I can find what the previous active was when the active tab changed event is fired? ...

Can you switch off the schema check performed by ASPNET providers

We have created a custom membership provider, but we have inherited the Role and Profile providers. The problem we are having is there appears to be calls being made to aspnet_CheckSchemaVersion by the providers - I assume its the Role or Profile provider as our membership provider isnt inherited and we don't call the db. Is there a way...

How do I find out if a user has cookies disabled in ASP.NET

I need to display a message if the user has cookies disabled. How would I go about doing this? ...

How can I "Go Back" without using Response.Redirect

I have a html form that I process with a aspx page. I want to be able to go back to my html form if the validation on the aspx page returns false (I cannot use javascript to validate the html form). I can't use Response.Redirect as I will lose the data initially entered on the html form. The set-up is: form.html (set action attribute ...

What are the best blogs for staying up to date on C#, ASP.NET, LINQ, SQL, C++, Ruby, Java, Python?

Apologies if this repeats another - but I couldn't fine one like it. My day to day programming spans a fair number of technologies: C#, ASP.NET, LINQ / SQL, C++, Ruby, Java, Python in approximately that order. It's a struggle to keep up to date on any of best practices, new ideas, innovation and improvements, let alone all. Therefore,...

.NET Client Application Services production settings

Hi there, I am creating a desktop/client application that will be installed on +/- 5 PCs, that will be transacting with a database on a central server machine. This app requires login authentication which I've in past rolled my own (messy, but it worked). Then I thought it would be great to leverage ASP.NET Membership,Roles,Profile...e...

GridView thead, tbody, tfoot render order

Is there any way to control the order of which the GridView control renders it's thead, tbody and tfoot child elements? According to W3C, the correct order is: thead tfoot tbody The GridView control renders out: thead tbody tfoot I am extending the GridView control, and I'm using the "first column controls the width of all col...

System.ArgumentNullException: Value cannot be null. Parameter name: ownerType

Hi, We keep getting this exception "Application_Error: Unhandled exception has been occured while requesting:/~/media/Flash Movies/nameoftheItem.ashx System.ArgumentNullException: Value cannot be null. Parameter name: ownerType while requesting a media item." We've lots of media items and they're all working fine. We get this exceptio...