I have a large ASP.NET website on a hosted platform. It shares the machine with a lot of other applications. We do not have access to the machine itself (only an FTP account).
Our client is complaining that it is starting to perform rather badly, particularly around peak hours. I've run some remote measurements (using a JMeter-like tool...
i am using URL rewriting in my asp.net application using regx
virtual URL is
/ProductDatabaseCMS/(?<category>\w*)/Product/(?<product>\w*)\.aspx
original URL is
/ProductDatabaseCMS/Product.aspx?PROD_ID=${product}
application path is ~/ProductDatabaseCMS
my application has master page that uses style sheet and the path is
~/App_Th...
Can I call HttpContext.Current from within a static class and Method?
I want to store a value on a per-user basis but want to be able to access it in a static manner.
e.g. Will this work?
public static class StatClass
{
public static string SomeThing
{
get { return HttpContext.Current.Items["SomeItem"].ToString(); }
...
I'm looking for a way to present excel documents on the web either by :
converting Excel documents to html, css and javascript or by,
using silverlight control
I'm not looking for a way to program the conversion by my self. What I'm after is a control or library (open source or third - party ) which will enable me to present excel file...
I'm suddenly getting an intermittent error with break points for my website.
I'll get the solution from svn work for a ~ a day on it and then the next day I'll insert a break point and all of a sudden I get the "no symbols message".
I've tried
deleting all obj and bin folders.
verfiying all pdb files are in datetime sync with .dlls
...
Whats the earliest point I can programatically get to the name of the masterpage that will be used in an asp.net MVC application?
The idea being changing the viewdata used depending on the master page. I want to be able to set something as early as possible so that individual developers don't need to know to populate it. Ideally it woul...
Is there any way to take a StreamWriter and output the file (in this case a .txt file) to the user with the option to open/save without actually writing the file to disk? If it is not saved it will basically go away.
I am looking for the same functionality of
HttpContext.Current.Response.TransmitFile(file);
but without having to sav...
Is there an API to clear anonymous cookie?
...
I have a project that need to sends notification for employees by local email. I use SmtpClient class to send email but didn't work! here is the code:
MailMessage message = new MailMessage();
message.From = new MailAddress("[email protected]");
message.To.Add(new MailAddress("[email protected]"));
message.Su...
I am using the Microsoft Ajax Template DataView to bind values to a template. I can do this and it works as you'd expect:
<h3>{{ID}}</h3>
<p>{{Address}}</p>
However I am trying to build an action link that has the ID in it.
<h2><%= Html.ActionLink(Html.AttributeEncode("{{Name}}"), "Index", "Restaurant", new { Id = Html.AttributeEncod...
We are writing a feature to send a reminder email to customers in x number of days and just wondered if it was possible to delay the sending of the emails similar to how you can in Outlook (New Mail > Options button > Do not deliver before) in C#.
Does anyone know of a way of doing this?
Thanks for your help.
...
Hello
I have a weird problem with the CalandarExtender on my web project.
When someone click on the little calandar icon IE6 crash!
I think i properly implemented it
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
[...]
<asp:TextBox ID="txtDateDebut" runat="server" CssClass="TextBox"><...
I am creating a checklist, where "checklistitems" are added to a "checklist". Each of the items has a button next to it to launch a modal popup that will contain additional information about the item.
Because there are so many items, I've put the actual panel that will pop up on the "checklist", so it will only be on the web page once....
Hello,
I have blank pre-printed Certificate that I want to print data on top of my certificate on the respected places from my asp.net application. i m using asp.net 2.0 & Report Viewer. can you please guide me how to achive this. The positioning of the data on the blank certificate is important.
regards
...
I am trying to create a instance of a user web control from the code behind of another user web control.
using ASP.NET;
placeholder1.Controls.Clear();
module_userWebControl_ascx slModule = (module_userWebControl_ascx)LoadControl("~/module/module_userWebControl.ascx");
placeholder1.Controls.Add(slModule);
Are...
Hi,
I have a main website here: www.blah.com
Then a virtual directory www.blah.com/subApplication/
The main application uses .net forms authentication.
If I make sure both web.config's share the same authentication keys, I can rest assured when someone browses to the virtual directory application the user will remained signed in righ...
I have an aspx page that get copied in the layouts directory of a Project Server instalation. The aspx is a web part page that has a web part zone. How can I add a web part in the markup of the page, within the web part zone?
...
Hi,
I am trying to build a slide show with jQuery cycle plug in.
In the slide show there are contents and inside the contents there is basic image gallery.
Timeout of cycle which image gallery uses is fewer than the contents timeout. So content waits for 15 second and the image gallery will have 5 pics with 3 seconds timeout which make...
I'm developing a web page in Asp.Net 1.1 and have a DataGrid which allows users to add, edit, and delete database records. The footer row contains textboxes to allow the adding of new records.
For each column I've defined <ItemTemplate>, <EditItemTemplate> and <FooterItemTemplate> elements. The FooterItemTemplate and EditItemTemplate e...
I know that if I add the page app___offline.htm to the websites root it will act as the site is down and will show the content of app___offline.htm to new users visiting the site.
But what happends to the existing active sessions on the site, are those also redirected to the app___offline.htm or can they finnish their work and exit nice...