|
|
Browse by Tags
All Tags » .NET » ASP.NET
-
It is a common technique in ASP.NET to generate JavaScript code from the web page's code behind file (.aspx.cs, .aspx.vb). Unfortunately it is a problem to read and sustain rendered JavaScript code because it usually renders all JavaScript code in one line. So, to have it readable developer tries to break those lines to have code a little bit more ...
-
I wrote simple code which is showing order of execution of events and protected methods related to the page life cycle.
I simply added output messages into the each event and protected method of Page and Control (UserControl which is located on that page). This is an example of how I did it:
...
protected void ...
-
Most of programmers who are dealing with ASP.NET know how to access files on the server. The common way how to do this is to use HttpContext.Current.Server.MapPath static method and get physical path of the file by passing virtual. But what if we need for instance to read some data from text file which located in our project in Design Time ...
-
During creating of Custom Controls sometimes programmers are dealing with implementation of code which should run only in Design Time mode. And the main question is, how to determine in ASP.NET whether your code is running in Design Time mode or not? I can offer several approaches for checking that. DesignMode ...
-
If you are planning to create WebControlLibrary you will certainly need to debug the code not only in normal runtime but also in Design Time mode. In case of error in a code in design time usually you see rectangle with an exception message. But of course you need to step thru the code to fined the bug. But how to do that ? Is there a way ...
-
“What is the difference between ID, ClientID, UniqueID and AssosiatedControlID identifiers of the control?” -
I’ve heard this question a lot of times from .Net developers . That is why I decided to start my blogs with the simple but common subject, about the difference between identifiers of web control in ASP.NET.
Web controls contain ...
|
|
|