The only thing I keep in the session is the current user ID. I'm getting ready to farm the servers and switching to NTLM authentication so I thought that I could just get rid of the session alltogether and get a performance bump. But is the hit I take from doing NTLM on each page worth it?
Masterpage works as template page where content page can get the look and feel of the masterpage. The same can be attained even in 1.1 by creating an aspx page as a template and derving other aspx pages from this. then what is the use and advantage of using masterpage.
I am using StateServer Session but I want to write a code on
Session_End and as Session_End event is not fired for StateServer I am
stuck with some problem.
My problem is if user close the browser without logout then I want to
make some operations and Session_End was one option but as I am using
StateServer that option is of no use. Is there any other option ?
I haven't really tried it, but something I would try if I were in your situation is call an Ajax function on the onunload event of the body. I'm not sure but may be this event is fired when the window is closed. You'd need to make some tests.
I observed that siteMapNodes without a URL are not rendered on the screen anymore after the securityTrimmingEnabled attribute is set to true. Does anyone know how to create menu items that are not tied to a URL, while the securityTrimmingEnabled attribute is set to True?
I have an existing ASP.NET/C# web application which I would like to replicate for use on another project. The other project will need slight modifications to the existing site, e.g. some different site text, some different logic in code-behind, the odd extra page here and there etc., but 95% of the site will remain the same.
My question is, what is the best practice for sharing code/pages between these two sites? I am using Visual Studio 2005, and cannot see an easy way of sharing .aspx pages, .ascx web controls, etc. between different web projects.
Naturally I don't want to simply create a copy of every page for each site, as this leads to twice the maintenance cost of having all the shared pages in the same place.
<code>string body = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">";
body += "<HTML><HEAD><META http-equiv=Content-Type content=\"text/html; charset=iso-8859-1\">";
body += "</HEAD><BODY><DIV><FONT face=Arial color=#ff0000 size=2>this is some HTML text";
body += "</FONT></DIV></BODY></HTML>";
AlternateView alternate = new AlternateView(body, MediaTypeNames.Text.Html);
I'm trying to send an email with html format but I get "illegal character in path error" when I create the alternative object.
I get this code from the .NET Framework Class Library, can somebody help me please? I tried to create an html string myself but the errore is the same.
I would like to build a Webapplication usin ASP.net through VisualStudio Express.
However my host does not support the .mdf database files.
Basically i have three options:
Set up an ODBC to an Access Database file for free,
Order a Fullblown MS SQL-Server 2005 wich (beeing a Student with little money) would cost money id rather not spend.
I could also use a MySQL Database for free, but it does not integrate into the VS IDE at all (as far as i know)
This new site will replace an old one, wich over the course of the last few years got an average of about 850page views per day.
Why not use SQL 2005 Express? It integrates with the express studios just fine and it doesn't limit you in your programming capabilities. The limitations with SQL 2005 Express are some advanced Database server features, concurrent database access and database size limitation (4GB if I'm not mistaken, I'm certain that on MSDE it was 2GB, but not sure with SQL 2005 Express).
MySql is a good option. I've used it and works great with the .net connector found in www.mysql.com.
MySql is just a bit different compared to MS SQL (Sql queries change a bit), there are some differences in data types, but they all translate fine to .net through the connector.
Last Visit: 31-Dec-99 18:00 Last Update: 22-Sep-23 16:09