asp.net

Why is my page loading slow

I am working on a asp.net website. There are a lot of javascript plug-ins that site uses including the bookmark button(addthis), Google adsense, Admanager tags, Social Bookmarking buttons and so on. The page loads slow and even though I have been using tools like FireBug, I haven't been able to make out why does my page load so slow. ...

Tab Control In Asp.net

I use ajax tab control in my website but the problem is when I fire a poastback event go back to first tab not in the current tab index how i can solve this problem? thanks for your time. ...

ASP.NET File Download problem

In our application we often have a button that will perform a post back, get data, convert it into excel/PDF, and stream it to the client via Response.Write or Response.BinaryWrite. This works perfectly fine when we are in a popup or not. We just implemented a new feature that creates a msg file. However, we are getting an error when ...

Weird AJAX/JS bug in ASP.NET and Infragistics NetAdvantage.

I have a quite simple data capture web app. In the main capture window, when you save a row in a UltraWebGrid, depending on certain flags two more windows open (with a ScriptManager.RegisterStartupScript). One of the windows, works perfectly fine. The other one, when it gets closed (by means of its own ScriptManager.RegisterStartupScr...

Master Page Error in Asp.net

Hi, When i create a new page in asp.net and try to include the master page,i cannot view the designer part as it shows an error :- "Master Page Error". Although the page runs without any errors,Designing the page becomes difficult as i cant see the design.i can only view the source part of the page.this is very difficult for me to des...

Textbox with alphanumeric check in javascript.

I have a textbox and it need the user not allow to enter any specialcharecters He can enter A-Z a-z 0-9 Space. One more condition is the first letter should be alphabetic. How can I do a javascript verification on each keypress? ...

Passing dataset to different layers(design related)

Hi everyone, i read in one article that its not a good practice to pass dataset between different layers of .net web application.(DAL->BAL->Pages vice versa).Is that correct? please give your suggestions. Thanks SNA ...

Cannot select from a datagrid using javascript in Morzilla,IE8

hi.... In a form(File.aspx) i am generating another popup window (Lookup.aspx including a DataGrid). From that datagrid i can fill the textbox in File.aspx using javascript.It works in InternetExplorer7 & InternetExplorer8 .But in Morzilla the popup & datagrid is appearing,but i can't select from datagrid . In same manner a calendar ...

replacement for asp .net session objects

hi, Is there any way to preserve data throughout web application session without using session object or database? Thanks SNA ...

How to generate blank favicon programatically?

Hello. I have no favicon on my web site so there are numerous of failed log entry and I decided to rewrite favicon.ico get request to a page that will generate blank file and return it to a browser? How do you think, is it possible? Could you please help me a bit how to do that? ...

looking for some ASP session management tutorials

Hello everyone, I need some tutorials or samples which cover the following topics, does anyone have any recommendations? For ASP.Net, how to manage session and especially manage correctly when there is large number of concurrent user requests, access session and various ways to manage session expire; For old ASP, how to manage session...

In Visual Studio 2008 - how long before a web.config change "takes"?

I have some settings in a web.config file that I want to override when I'm testing the ASP.NET app locally on my machine. The main part looks like this: <appSettings file="WebAppSettings.config"> <add key="DEBUG" value ="False"/> <add key="PROD" value="TrueInMainConfigFile"/> </appSettings> Now, in my local "WebAppSetting...

asp.net connection pooling: automatically testing & validating connections?

I know with some connection pools, you can specify a test query the pool manager can use to validate a connection. Is there anything similar to that for asp.net? I'm having a problem where there's a firewall between the web app and the database, and it's closing idle connections - the result is that the user gets an "ORA-03135: connect...

Edit (through data binding) XML in ASP.NET form

here's my scenario. XML is stored in SQL DB. I need to allow user to edit different parts of that XML (no insertion, just updates), get notified if something changed (so that I could save the last date file or node was edited) and then save updated XML to DB. What is the best & quickest approach in this scenario? I was hoping to use dat...

SQL Reporting Services - Print Button not shown in Mozilla

I am using SQL Reporting services, it's working perfectly and shows a print button in IE, but not shown in Mozilla Firefox. Does anyone have any idea? I have checked out this solution, but it's not working: http://social.msdn.microsoft.com/Forums/en-US/vsreportcontrols/thread/7bdf431d-70db-419d-8e98-ef41cad8e2d8 ...

Background Threading in ASP.NET and Impact on Performance

My current site is set up to leave messages for certain people the first time anyone logs into the app. The number of messages left could be anywhere from 1000 to 10000, with each being a query, and all queries in a transaction statement. Yes, I know this seems like poor design, that is not my question. Currently, when a user logs in,...

Check if Javascript is enabled server side ASP.NET

Is it possible to check if the client browser has javascript enabled from ASP.NET code? I was hoping to ideally do this on PreRender of controls, or PageLoad, so that I can change how they look. Any suggestions, work arounds etc would be much appreciated. ...

ASP.Net session life time issue

Hello everyone, I am confused about ASP or ASP.Net session life time (or life cycle) concepts. More specifically, my confusions are, how did IIS magically knows a new session starts and an existing session ends? Especially how IIS treats whether a session continues or ends when we call redirect code; how many differnet ways to set ses...

How do I filter a strongly typed list with List<String> variables

I need to filter a strongly typed list of type StaffingPositionsDataContract, with another list of filter names and values. I have these two lists: List<SerializedForm> deserializedObject = JsonConvert.DeserializeObject<List<SerializedForm>>(searchFilters).Where(x => !string.IsNullOrEmpty(x.value) && !string.Equals(x.value.ToUpper...

calling a web service using WCF over Http and Https

I know little about WCF so please bear with me! In our project we have a java web service that runs over http and https. We want to use http internally and https for the external version of our web app. So we've created the proxy class in our application and we have setup the binding for http in the web/app.config and all works fine. ...