I'm doing research for an article on the ASP.NET Pipeline, but none of the resources I've covered so far adequately explain when the machine level, and application level, and possibly even sub-application level, web.config files are read.
Also, most of my reading has mislead me to look for default HTTP handlers etc. in machine.config, w...
The last few days we see this error message in our website too much:
"Timeout expired. The timeout period
elapsed prior to obtaining a
connection from the pool. This may
have occurred because all pooled
connections were in use and max pool
size was reached."
We have not changed anything in our code in a while. I revised ...
i have the following markup code:
<div style="width: 72%; margin: 15px; margin-left: auto; margin-right: auto;">
<center>
<div style="border-top: Solid 1px Black; border-left: Solid 1px Black; border-right: Solid 1px Black;
padding: 5px; background-color: #EEEEEE;">
</div>
<asp:GridView Style="width: ...
I've got some experience with ASP.NET MVC, but only with a web application where the content of the master page doesn't change. I've been wondering how you would handle a site where for example the menu (which is on the master page) is loaded from a database. Where would you load this data?
In WebForms, you would load the menu in the c...
Are there sample ASP.NET projects around using the patterns discussed in the book by Martin Fowler (Patterns of Enterprise Application Architecture)?
I have downloaded the Northwind starters kit and Dinner Now, which are very good. Are there others that use things like Unit of Work, Repository, ...
thx, Lieven Cardoen
...
Where in the page life cycle is it most appropriate to set event handler delegates for events raised by custom User Controls?
I have a ReportFilter user control that raises an ApplyFilterClicked event. Currently I am just using Page_Load to assign a handler method.
reportFilter.ApplyFilterClicked += reportFilter_ApplyFilterClicked;
...
In a little demo application that I'm building I put code to initialize the database in the Global.Session_Start() event. However, I notice that this event does not fire when I'm running through the app in the debugger on the development server (haven't tested it anywhere else yet).
Question 1: What gives? When does Session_Start() ac...
Let me try to ask this question from a different angle.
I noticed that everytime an aspx page gets rendered in the browser using the "web site" model, a random assembly gets created 'on-the-fly' in the Temporary ASP.NET files. Analyzing the assembly in Reflector shows that the class created for any given .aspx file is under the "ASP"...
<script type="text/javascript">
$(document).ready(function() {
$('#pHeader').click(function() {
$('#pBody').slideToggle('fast');
});
});
</script>
<asp:Panel ID="pHeader" runat="server" CssClass="cpHeader">
<asp:Label ID="lblText" runat="server" Text="Header" />
</asp:Panel>
<asp:Panel ID="pBody...
I would like to insert UserName from aspnet_users into my own table called Members. My sqldatasource looks like as follows. At the end in the InsertParameters I have added ProfileParameter but its not working. Just to get the values going, I have hardcoded 'testhere' value in the insertcommand. My SQLDatasource looks as follows.
Please...
Hi,
I have a FDCC compliant workstation with FIPS 140-1 (Level 1) enabled.
Now, i cannot run/debug any VS 2005/2008 applications on my machine
I get the following error message on my browser
Parser Error Message: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.
the Error points to line ...
I have an issue with a long-running page. ASP.NET page takes about 20 minutes to get generated and served to the browser.
Server successfully completes the response (according to logs and ASP.NET web trace) and I assume sends it to the browser. However, browser never recieves the page. It (IE8 & Firefox 3 both) keeps spinning and spinni...
here is a little problem ...
string SQL = @"INSERT INTO [Answers] ([UserID],[QuestionID],[SelectedIndex])
VALUES(@uid,@qid,@sin)";
SqlParameter[] par = new SqlParameter[] {
new SqlParameter("@uid",this.userid),
new SqlParameter("@qid",this.questionid),
new SqlParameter("@sin",this.qOptions.SelectedIndex)
};...
Hello,
Say we data bind GridView to an ObjectDataSource control and then perform a query.
A) I realize displayed GridView fields are of type String, but does GridView also know of what type the underlying data source values are ( for particular GridView column )?
* Thus, if data source will populate GridView with bunch of integers, th...
Hi,
I am using many dropdownlists on my page,and i am migrating my project from .net 2003 to .net 2008.I want to Ajaxify my page and is it logical to use cascading dropdownlists?Can Cascading Dropdownlist give any unexpected problem?By the way,if i use Cascading Dropdownlist,i use pagemethods,not webservices?Do Pagemethods give any p...
hello,
<%@ OutputCache Duration="3600" VaryByParam="none" %>
protected void Page_Load(object sender, EventArgs e)
{Label1.Text = DateTime.Now.ToString();}
If, after I compiled this newly created application, browser B1 is
first to request Cache.aspx, then the time displayed on received page
is 10.16:20.
If, after say 10 seconds,...
I am pretty new in C# and my English is not so good - sorry in advance if I miss a point.
I tried to build an ASP.NET web site with a ReportService control. As you might already know, SSRS 2008 does not allow anonymous login. So, I tried to pass Credentials to SSRS which will be stored inside my web page so that users will be able to se...
I would like to be able to display time based on the user's current time zone. I will be storing times in UTC format in my database, but wish to normalize these to the client's time zone. So far the option that seems most viable is to capture the clients time and then deteremine the difference between that and current UTC and use that ...
Let's say I have a class (MyClass.cs) in App_Code (using a ASP.NET web site, not project). There's no namespace assigned to the class.
How can I get that class to be valid in the web site .aspx pages? WHAT do I need to put in the web.config file and WHERE do I need to put it?
Do I <add assembly tag or do I <add type ??
Since the ass...
In our web project, we have a custom Database Connection class that creates the SqlConnection object and get the DB connection string for us from the web.config.
While this is nice, there's one problem. All projects inside our web project depend on that web.config being there so that this class can work.
There are needs to use this db...