I've seen a number of options for adding GZIP/DEFLATE compression to ASP.Net MVC output, but they all seem to apply the compression on-the-fly.. thus do not take advange of caching the compressed content.
Any solutions for enabling caching of the compressed page output? Preferably in the code, so that the MVC code can check if the page...
Hi,
I am going to create a couple asp.net pages with login page. I am thinking about Forms authentication. The users are around 1000 to 5000. What is the best way to achieve this? I appreciate any help.
Thanks..
...
When I am debugging an application in ASP.NET, after about ~5 minutes I get a NullRefEx coming from global.asax.cs regarding:
protected void Session_Start(Object sender, EventArgs e)
{
WindowsIdentity identity = null;
identity = (WindowsIdentity)(Context.User.Identity);
...
Context is Null at this point...
I am in the planning phases of building a new ASP.NET website. The website is really a transactional web application where the users will log in and perform basic CRUD data operations. For right now this website will be accessible through a traditional desktop browser and a mobile browser. For the mobile browser we will build a separa...
I have two tables (Person and Location)
In the Dynamic Data Site, when adding Location info, I am need to choose a person from the dropdown box which is populated via a FK. That dropdown box defaults to the field in "Person" that is titled "fname" which is first name, so it looks like "Jim" or "Steve".
I'm trying to have that dropdown...
By "how does" I mean "by what mechanism" not "to what effect". Control doesn't return to the calling method after you call Server.Transfer("...");. At the language runtime level, how does this happen? Does it throw an exception or trigger something that aborts the thread? I'm just curious. What are other examples of this pattern (cal...
A deployment package that is generated by our CI build correctly:
(a) prompts for our two connection strings during interactive deployment using IIS Manager.
(b) includes the two connection strings in the generated parameter file to be used with command-line deployment.
(c) creates the proper placeholder strings in the Web.config.
Whe...
I have an empty GridView object on a page that I bind to a LINQ qry result at run time. The GridView has a 'Select" button that fires the SelectedIndexChanged event and it's inside of this event that I'd like to access the data of one of the fields in the selected row.
So far, I can only find one way to do this, and it seems suboptimal...
Hi,
How to save the drawing (contents) on a panel as an image using C# and asp.net.I found Panel1.DrawToBitmap but its not working in the asp.net ,is there any assembly i am missing or the function is all together different ?
int width =Convert.ToInt32(Panel1.Width);
int height = Convert.ToInt32(Panel1.Height);
Bitmap bmp = ne...
Hi,
I have done a publish for my asp.net website through build>publish website option in visual studio 2010 and when deploy it in IIS 6 in staging environment it shows me "[filename].aspx has not been pre-compiled" for every page when i try to browse.
Any help would be much appreciated.
Thanks Guys....
...
It is known that the ListView control can't display both an EmptyDataTemplate and a InsertItemTemplate at the same time.
For my design style I need to be able to show both. I want to be able to show that no data exist and at the same time show a form to add new data.
I've already implemented various solutions, such as putting a PlaceHo...
hi,
in order to find the server spec. i've created a file in the root dir in my website called spec.htm and entered this content as i was offered by another user:
<html>
<head>
<title></title>
</head>
<body>
@ServerInfo.GetHtml()
</body>
</html>
but i only get a copy of the code in my browser and it doesn...
I have a user control with 5 simple radiobuttons, I need ot loop through those in code-behind, but I am drawing a huge blank on how to do this. Can someone help please
...
I understand the order the events occur with page life cycle but it is not helping with my situation. I have a checkboxlist that is populated by a directory filled with forms. When I check a box next to the name of the form I would like it to dynamically create a wizard step and insert the form.
Order of events:
OnInit:
GatherForms() - ...
Hi, guys!
I'm developing an online auction with time limit.
The ending time period is only for one opened auction.
After logging into the site I show the time left for the open auction. The time is calculated in this way:
EndDateTime = Date and Time of end of auction;
DateTime.Now() = current Date and Time
timeLeft= (EndDateTime -...
Hi there,
I have a Questionnaire, which has questions. It's a very simple data model as I'm sure you can image, with a PK - FK join between the Questionnaire (parent) and Question (child) tables.
Modelling this in C#, I have a Questionnaire God-object which has static methods to Create, Get, List, Update, Delete the Questionnaire inst...
I have an ASP.Net webforms application that uses the .Net globalization features to deliver .aspx pages in different locales. I have custom errors defined as
<customErrors mode="RemoteOnly" defaultRedirect="Error.htm">
I prefer using a non-.Net page for the defaultRedirect to prevent the potential for infinite loops, in case the err...
I have an ObjectDataSource on a page that is producing the error "Object does not match target type" when its Insert method is invoked. From Googling this message, I believe this the message is deceptive and I'm actually getting a null reference error on the object that the ObjectDataSource is trying to invoke the method on, but I'm darn...
What advantages does Membership provide in the case when you have to write custom implementation? Is there any sense to implement membership interfaces or it would be easier to make your own UsersService with just things you need?
...
I am trying to develop a plugin architecture in .Net. The application will be a .Net application. There will be directories which holds the plug-ins. Each directory will represent a plugin. Each plugin directory will also contain all the dependency dlls as well. The plugins need to be stored in separate AppDomain as the plugins may ...