asp.net-3.5

Forcing ASP.Net to use TCP/IP to connect to SQL Server in stead of named pipes

How can I force my ASP.Net application to connect to a SQL Server using TCP/IP, not Named Pipes? I read somewhere putting "tcp:" in front of the server name in the connectionstring should do the trick, but it does not seem to change anything. Edit1: TCP/IP is enabled on the SQL Server. I tried Network Library=dbmssocn in the connecti...

DevExpress vs. Telerik grids for ASP.NET web applications

I dropped the trial version of the DevExpress GridView in my ASP.NET project and found it to be very powerful, easy to setup, and flexible. However, I think it only does Default Paging and not Custom Paging (pulling down all of the records per page isntead of just the records of the page). I looked into see if I could figure out how to...

How to make an insert row with ASP.NET 3.5 GridView

How to make an insert row with ASP.NET 3.5 GridView? ...

Table with a lot of columns

If my table has a huge number of columns (over 80) should I split it into several tables with a 1-to-1 relationship or just keep it as it is? Why? My main concern is performance. PS - my table is already in 3rd normal form. PS2 - I am using MS Sql Server 2008. PS3 - I do not need to access all table data at once, but rather have 3 dif...

Need education regarding HttpApplicationState of ASP.net

Today I've got confused with 2 issues related to the HttpApplicationState of ASP.net. My questions are as follows If I use a StateServer for my session management (the out proc session management stuff that I want to use for my web garden deployment), is it safe assuming that the HttpApplicationState (I am accessing via System.Web.UI.P...

Adding a datarow from an existing table to a new table

Hi i want to add a datarow that im getting back from a data table to a new datatable this is the code im using: foreach (DataRow dr1 in dt.Rows) { string AptType = dr1["AppointmentType"].ToString(); if (AptType == "FreeTime") { dt2.ImportRow(dr1); } } RadGrid2.DataSource = dt2; reader.Close(); conn.Close(); the problem i...

ASP.NET - loading grid data with heavy OO structure

Hello, Let's say I have an object that is fairly complex. Since it is so complex, it takes a bit to load from the database. Now let's say my users want a grid that shows all of these objects, and I know if I provide it the performance will not be desirable. I'm trying to put my finger on the best way to handle this. So far I have two...

Change ASP.NET default Culture for date formatting

For some reason, ASP.NET code on my server is now returning a format of dd/MM/yyyy instead of MM/dd/yyyy when I use DateTime.ToString("g"). Rather than replacing all the "g" format strings with a concrete format string or CultureInfo argument, is there a way I can just override, across the application, the default "short date" format? ...

Render a .NET Web Control from a string?

Is it possible in ASP.NET to dynamically load up a WebControl from a string with some tag contents in it (without writing a bunch of custom code)? For instance, I have a string like the following: string controlTag = "<asp:Label ID=\"lblLabel\" runat=\"server\" />"; I then want to do something like the following to load up the contro...

How can I create a subdomain in asp.net?

How can I create a subdomain in an asp.net C# application? I am working with an asp.net portal. In that portal I need to be able to create the subdomain at runtime. The ftp for that subdomain also needs to be the same as the main domain ftp. ...

Session_End Alternatives

I have seen in some other questions that using Session_ End() in Global.asax.cs is not advised. This is because if you're not using the default Session handler, Session_End won't get called, correct? Is there any other cases where it won't get called? The big question is: If you can't depend on Session_End(), what do you do to determin...

I have added the child controls on repeater control. that child control not firing the event.

i have create the wizard control , in side this i have create the repeater control.this repeater control has three radio buttons.all are created with dynamically.I want to fire a radio button checkedchange event. find the code: **Panel objPanel = (Panel)Wizard1.WizardSteps[Wizard1.ActiveStepIndex].Controls[5]; Repeater r...

ASP.net textbox scrolling when disabled

Greetings, I have a form where employees enter comments in a multiline textbox with a limit of 4000 characters. I have the rows set to 8 (obviously an arbitrary number). When a supervisor looks at the comments the textbox is disabled so the employee comments cannot be modified. The problem is when the data extends below row 8. Since th...

Posting HTML within an ASP.NET form

I am using Master Pages in an ASP.NET MVC app that lets you submit HTML data as part of a form. Even when I set <%@ Page ValidateRequest="false" %> Or set <pages validateRequest="false"> ... </pages> in my web.config file i still get the same error: A potentially dangerous Request.Form value was detected from the client... De...

Is there a problem with ADO.NET DataSets in a load balanced environment?

For the last few months we've had a wierd problem with our website. Once in a while various queries to the database, using ADO.NET DataSets, will throw an error... the most common of which is "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints." The data is actually val...

Why can't I change mode with nested FormView?

The short version is that I have nested FormViews. I would like the child FormView to only change modes when the parent does so as well, so I handle the ParentFV.ModeChanging event and call ChildFV.ChangeMode within that... For some reason, the Child FormView's mode doesn't change... nore does the Child's ModeChanging event appear to g...

Why is my viewstate growing between postbacks when using dynamic data?

I'm writing a pretty complex web form using ASP.NET Dynamic Data. Several of the controls on this form post back, since there are dependencies between controls. I'm noticing that the viewstate is growing larger with every postback, until after 5 or so there is a long delay between the Render process and the page actually loading in the...

ASP.NET Login control, how to query user-specific data

Hi, I have installed a Login control in ASP.NET/C# in login.aspx and after the user has logged in, it takes him to the member.aspx page. All works perfectly fine but what should I do if I want to query a database for some user-specific data? How would I do that? ASPNETDB.MDF is the database, I have created another table with some addit...

GWT and .NET

Hi, How can I use GWT together with Visual Studio to create an ASP.NET website? If it is possible. Thanks ...

why am i getting Index was outside the bounds of the array

hi im getting Index was outside the bounds of the array when i go to insert a linq statement > slot_tbl_Schedule slot = new slot_tbl_Schedule { OrderID = int.Parse(lblOut.Text), FromTime = DateTimeValue, ToTime = DateTimeValue.AddMinutes(30), BookedDate = DateTi...