I am using a modified version of the code here. The difference is that I log it to a database and only if it is longer that 5000ms. The results have me worried. Several pages will occasionally log an execution time of minutes. Never will they consistently under perform, but according to log table, it is happening often enough that I ...
I'm currently using an Open Session in View pattern in an ASP.NET WebForms application (adapted quite a bit from Billy McCafferty's http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx). To oversimply state what goes on here:
Open NHibernate transaction at beginning of request
Commit at end of request (rolling back o...
I am saving a cookie using a value from a database and then accessing that cookie on another page. i noticed that if the cookie has a ; in it's value, it is cut off at that ;. How do I fix this other than changing the data so it does not include ;?
...
I've got a particularly large form in an page. When the form is validated and a field is invalid, I want to scroll the window to that control. Calling the control's Focus() doesn't seem to do this. I've found a JavaScript workaround to scroll the window to the control, but is there anything built into ASP.NET?
...
I've created some Web User Controls (.ascx files) and dropped them into Pages. The user controls have some TextBoxes in them that I'd like the Page to be able to access directly.
What's the easiest (read: least time) way to expose these TextBoxes in the user controls to the Pages containing the user controls?
The two options I know are...
I have been writing some Web services to be used by a few different client apps and i was trying to write a web service method that simply outputs an RSS XML Feed.
I can create the XML using an XmlTextWriter Object
Then i have tryed outputing to the Response (like i have done in the past when its an aspx page) but this only works it th...
I tried to setup KIGG on my server, but always had a permission problem and i knew that its because the trust level, and godaddy always says that http://help.godaddy.com/article/1039
if someone faced the same problem before please advice.
Note: I can't currently move to another hosting
...
how can i get id's of all current session.
...
In the excellent Secret Geek’s Building a Micro-ISV series, Leon Bambrick admits that he prefers to host his sites in the US because of the prices and proximity to his target market.
For Australian companies and start-ups, what’s the best ASP.NET web hosting in the country? Should a company consider hosting its website overseas even if ...
What is the Correct(TM) way to handle checkboxes with asp.net MVC and strongly typed views. I have a class 'Bar' that has a member 'foo'. 'foo' is type 'byte'.
Now what I would like do, is have something like this in controller:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Page( Bar bar )
{
if (ModelState.IsValid)
{
...
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' b...
So Visual Studio offers MVC content in context menus for "Add View", etc...
Sure, i can create a new MVC Web Application project type and move the files from the non-MVC one there, but is there a way to change the project type without doing that step?
...
The idea is to produce utility class , so that whenever the guys hack the best currently known algorithms and new one comes to the market the only think that the Developer would have to do is to add the NewHighTechEncryptingAlgorithm_Encryptor class and change a global application setting for NewHighTechEncryptingAlgorithm_As_String
so ...
I like jQuery and am using ASP.NET. I know you can get round ID mashing a bit using the ClientID but this dosn't work well when are farming you script out to sepearte js files.
The only way I have used round this is to store the ClientID in a javascript variable on the page then use this id in the seperate js file. But this is less than...
Hi All,
I am working on a LoginPage.Everything related to database or C# code is working fine but after successul login I am unable to redirect to Home.aspx,am I missing Something? Pls help.
Code:
Web.Config:
</authentication>
<authorization>
<deny users="*"/>
</authorization>
C# Code:
protected void Button1_Click(o...
I have some arraylists in a page which I need to access in a Class file. How can I get these Arraylists in the class file??
...
Hi,
is any way to cache a whole folder with resources in ASP.NET without write own HttpModule?
e.g.: folder with Wysiwyg editor javascript and styles
...
I want use ajax.net to do some js. like below:
ScriptManager.RegisterStartupScript(Submit, typeof(Button), "alert", "location.href='test.aspx';", true);
If user turn off the javascript, it will not redirect to another page.
I want to know how to set <noscript></noscript>.
Thanks a lot!!
...
Hi,
By default the WCSF uses the web site model but I would like to change it to use the web application model. How can I achieve this?
...
Hallo,
Recently I have read a couple of posts on varous sites and blogs that ASP.NET Repeater one of the most commonly used and accepted between experienced programmers.
Someone actually wrote that he consider the asp.net programmer better if he mentions that he often use this control in a job interview.
The fact that I used it rarely ...