asp.net

ASP.Net SessionState using SQL Server - is the data encrypted?

When using Sql Server to store and manage the SessionState, is the session data stored in the database using encryption? When I look at the data in the ASPNet database, the data in the "SessionItemLong" in the ASPStateTempSessions columns appears to be hexadecimal data. Is this data being encrypted before being stored in the database? ...

Event doesn't fire for an item that is added to the update panel through code behind after post back

There is an edit button on the page upon landing in an updatepanel. User clicks edit button, the event that fires removes this button from the container and adds a save button (in the updatepanel). This function also attaches an event to the new button. New button shows up on the page but clicking on it does not fire the event. Obviousl...

Can an ASP.NET application access the standard ASP.NET UserId guid without access to the parent applications provider?

I have written a application which resides in a subdirectory of the parent, or root application. The root application uses a custom membership provider, but all the code for it is in the App_Code directory, and it's compiled deep into the Temp files for ASP.NET. Therefore, it complains that it's missing a reference to the provider when...

Sort columns with a jQuery Flexigrid

Is there a way I can mark JQuery Flexigrid columns as sortable if I don't define them in-line? i.e. I know I can do this $("#flex1").flexigrid( { colModel: [ { display: 'Col1', name: 'Col1', sortable: true }, { display: 'Col2', name: 'Col2', sortable: true } }); But I construct the grid jus...

Write-behind cache for .NET (free and simple) ?

I need simple and free write-behind cache for .NET. Does not have to be 100% reliable or fast. I have a growing website and I need something till Microsoft finally releases Velocity which should have write-behind in the near future. Do we have a simple write behind cache implementation for .NET? Do we have any .NET code samples on writ...

ASP.NET can't cache null value

Can anyone explain why you cannot insert a null object into the ASP.NET cache? string exampleItem = null; HttpRuntime.Cache.Insert("EXAMPLE_KEY", exampleItem, Nothing, DateTime.Now.AddHours(1), System.Web.Caching...

Next/Prev (CTRL->/<-CTRL) keyboard shortcuts in javascript in ASP.NET

I have a simple ASP.NET page with a paging support. Basically just a hyperlinks which looks like a report.aspx&page=1 report.aspx&page=2 etc How could I implemente a keyboard shortcuts so I could go forward to next page and to previos page by just holding CTRL and pressing either left arrow or right arrow. I have seen a same functio...

ViewState and Web Load Testing

I'm trying to do load testing against an ASP.NET web site and I need to be able to parametertise field value of a page to test different code paths. I had great success with JMeter when load testing a JSP web site before. However, because ASP.NET encodes all form values in the ViewState, changing control values does not really work. I...

Add filter to FileUpload Control.

How to add filter to the fileupload control in asp.net? I want a filter for Word Template File (.dot). ...

Retain value in fileupload control.

I am writing a file upload application. So it contains a keyname in textbox and a fileupload control. A save button is used to save the keyname and the file. My issue is when I select a file in fileupload control and I donot enter any value in keyname textbox and click on save button, a message is shown 'enter a keyname' but the fileuplo...

asp.net mvc+subsonic

hi all i am making an application with subsonic+asp.net mvc on northwind and i want to edit in the records,,i have followed what the videos said but every time i get an error that it is a syntax error near the name of the table i edited in eg:syntax error near employee so if any one know the answer plz send thnx in advance ...

ASP.Net rich text edit control

Hello everyone, I am looking for control which could be used in ASP.Net, providing rich text editing function, like Office Live, Google Docs which could work on line. Another function needed is download into Microsoft Word format. Any recommended ASP.Net built-in controls or samples/documents? thanks in advance, George ...

Can anyone suggest good Guidelines for asp .net UI design ?

Hi , I am a c# developer. Recently I had to design a web UI in asp .net 2.0 .I had strange problems with aligning controls in Visual studio UI. I have used Div, table tags to align asp .net controls(labels, textbox, grid etc). But the problem was what I saw in design surface of visual studio was entirely different (most of the time) ...

Using Windsor containers on web farms

I'm developing a web application using ASP.NET MVC and I'm using Windsor Castle as an IoC container (both WindsorControllerFactory and for my internal components). Currently I'm creating and storing the container into the Application (HttpApplicationState) like this: protected void Application_Start() { ... IWind...

Temporary ASP.NET Files - duplicate file problem

I get an error when ever I replace a user control, or dll on th website. The solution is to stop iis and delete the contents of the folder, obviously not ideal to stop the site. I read that this might be caused by class names being reused, as in when you make a copy of a control and add it to the solution. Is it typical for this folder...

Full trust in ASP.NET web application - is it OK?

Is there really a problem running a application under full trust as long as it is possible to control the configuration of the machine? ...

asp.net mvc+subsonic

look i am making application with subsonic to create data access layer for my asp.net mvc application i am making a demo using northwind data base i am working on employee table i have created 3 views(create,edit,list) while editing any employee i always get these error msg in my browser syntax error near employee==syntax error near tab...

HttpModules

Hi, In my application's Web.Config, i have 3 custom HttpModules configured <httpModules> <add name="1" /> <add name="2" /> <add name="3" /> </httpModules> As part of my application tuning exercise, i have to get rid of these modules. So What are the best ways to replace it or any other solution? Built - in modules like Form...

Code in VS 2008 will work on VS 2005?

Does the ASP.NET code developed on VS 2008 can be used on VS 2005 ?? ...

Linq2SQL and Duplicate records

Hi What would be the best way to check if a record exists in a table. What happens is the user types the same name and I need to see if it is in the database. The thing is that I would like to do it on the Repository base class that uses generics. So I can not go Entity.Name. public void Save(T item) { Table<T> tab...