skip to main |
skip to sidebar
RSS Feeds
View State is one of the most important and useful client side state management mechanisms. It can store the page value at the time of post back (Sending and Receiving information from Server) of your page. ASP.NET pages provide the View State property as a built-in structure for automatically storing values between multiple requests for the same page.
we generally used “EnableViewState” Properties for both Page Level and Server Control Level to maintain the view state. Till ASP.NET 3.5 Version, Page Level view state control treat as highest priorities. Which means If we set EnableViewState= “False” in page level that will automatically derived by all the server side control. In that case if we set “EnableViewState=”True”” for any server side control will treat as false, as we have defined them “False” in Page Level.Here is one complete article on ASP.NET 2.0/3.5 View State , which may helpful for you
Now, let’s have a look into the changes in ViewState Control in ASP.NET 4.0. There is a massive change in View State Control in ASP.NET 4.0 which is very much helpful for developer also. Asp.net 4.0 added a new property to Page object and server controls called ViewStateMode.
Abhijit's World of .NET Blog
Showing posts with label My Articles. Show all posts
Showing posts with label My Articles. Show all posts
Saturday, May 15, 2010
ViewState Control in ASP.NET 4.0
View State is one of the most important and useful client side state management mechanisms. It can store the page value at the time of post back (Sending and Receiving information from Server) of your page. ASP.NET pages provide the View State property as a built-in structure for automatically storing values between multiple requests for the same page.
we generally used “EnableViewState” Properties for both Page Level and Server Control Level to maintain the view state. Till ASP.NET 3.5 Version, Page Level view state control treat as highest priorities. Which means If we set EnableViewState= “False” in page level that will automatically derived by all the server side control. In that case if we set “EnableViewState=”True”” for any server side control will treat as false, as we have defined them “False” in Page Level.Here is one complete article on ASP.NET 2.0/3.5 View State , which may helpful for you
Now, let’s have a look into the changes in ViewState Control in ASP.NET 4.0. There is a massive change in View State Control in ASP.NET 4.0 which is very much helpful for developer also. Asp.net 4.0 added a new property to Page object and server controls called ViewStateMode.
Labels:
.NET 4.0,
ASP.NET 4.0,
C#,
code,
codeproject,
My Articles,
View State,
Visual Studio 2010
Friday, May 7, 2010
Mastering in Visual Studio 2010 Debugging
Visual Studio IDE gives us a lot of tools to debug our application. Sometimes debugging activity takes a very long time to identify the root cause. But VS IDE provides a lot of handy tools which help to debug code in a better way. Debugger features include error listing, adding breakpoints, visualize the program flow, control the flow of execution, data tips, watch variables and many more. Many of them are very common for many developers and many are not. In this article, I have discussed all the important features of VS IDE for debugging like Breakpoint, labeling and saving breakpoints, putting conditions and filter on breakpoints, DataTips, Watch windows, Multithreaded debugging, Thread window, overview of parallel debugging and overview of IntelliTrace Debugging
Saturday, October 10, 2009
Using Bookmark in Visual Studio
CodeProject
As name suggests, bookmarking speedup your code navigation in visual studio. There may be some portion of code where we need to move very frequently. Generally we scroll the page and move to that section, but Visual studio provides great features by which we can move to a particular section very quickly using some shortcut keys. This is called Bookmarking of Code.
Below are the set of Icons which are used to navigate the code using Bookmark.

We can place the bookmark by clicking on Bookmark icon or using keys

Now we can easily navigate among those breakpoint using

This is very much easy to use and its give you very fast navigation throughout the code.
Visual Studio provides you Bookmark window where you can get list of all bookmarked section.

Now, by selecting particular bookmark from the Bookmarks list we can easily move to the particular section.

For easy reference we can also rename bookmark so that we can easily identify them. This helps us to easily move to particular code block based on the name given. This is useful when we are having many bookmarks in the bookmark list.

As I have renamed my bookmark list as below

This may not be new to many of us, but it may helpful for some beginners. Using this features we can navingate our code very easily. Please provide your valuable suggestion and feedback.

Introduction
As name suggests, bookmarking speedup your code navigation in visual studio. There may be some portion of code where we need to move very frequently. Generally we scroll the page and move to that section, but Visual studio provides great features by which we can move to a particular section very quickly using some shortcut keys. This is called Bookmarking of Code.
Below are the set of Icons which are used to navigate the code using Bookmark.
How To Use
We can place the bookmark by clicking on Bookmark icon or using keys
Ctrl + K, Ctrl + K. Below is the sample code where I have putted two bookmarks in different section of code.Now we can easily navigate among those breakpoint using
Ctrl + K, Ctrl + N for Next Bookmark and Ctrl + K , Ctrl + p for Previous mark. We can achieve the same using following toolbar icon.This is very much easy to use and its give you very fast navigation throughout the code.
Using Bookmark Window:
Visual Studio provides you Bookmark window where you can get list of all bookmarked section.
Now, by selecting particular bookmark from the Bookmarks list we can easily move to the particular section.
Renaming BookMarks
For easy reference we can also rename bookmark so that we can easily identify them. This helps us to easily move to particular code block based on the name given. This is useful when we are having many bookmarks in the bookmark list.
As I have renamed my bookmark list as below
Summary
This may not be new to many of us, but it may helpful for some beginners. Using this features we can navingate our code very easily. Please provide your valuable suggestion and feedback.
Labels:
General,
My Articles
Tuesday, September 29, 2009
My New Article : Beginner's Guide : Exploring IIS 6.0 With ASP.NET
Today, I have published another article on IIS 6.0 at codeproject. This article is for the beginners who are trying to learn something on IIS. This article gives a complete coverage of IIS, Hosting sites on IIS, Application pool creation, and IIS Request Processing for ASP.NET Web Application .

I have also mentioned few Tips which are very commonly used in dealing with IIS. Hope this will help the beginners who are struggling with site hosting on IIS and configure it. Please read full article @ Beginner's Guide : Exploring IIS 6.0 With ASP.NET
Please give your valuable suggestion and feedback to improve this article.
I have also mentioned few Tips which are very commonly used in dealing with IIS. Hope this will help the beginners who are struggling with site hosting on IIS and configure it. Please read full article @ Beginner's Guide : Exploring IIS 6.0 With ASP.NET
Please give your valuable suggestion and feedback to improve this article.
Labels:
ASP.NET,
My Articles
Tuesday, September 22, 2009
My New Article : Quick Overview: Temporary Tables in SQL Server 2005
Just finished up with publising a new articles on SQL Server and its 4.30 am over here :) . This article is based on the temporary tables in SQL Server 2005. I have explained how to use them, where they stores, when to use etc.

If you are really intereseted, then please read my article complete here, Quick Overview: Temporary Tables in SQL Server 2005
Please give your feedback and valuable suggestion to improve this article.
If you are really intereseted, then please read my article complete here, Quick Overview: Temporary Tables in SQL Server 2005
Please give your feedback and valuable suggestion to improve this article.
Labels:
My Articles,
SQL Server 2005
Sunday, August 16, 2009
Most Commonly Used Functions in SQL Server 2005/2008
Lastnight I have published an article on Most Commonly Used Functions in SQL Server 2005/2008. This is quite different article than I used to published.
Objective of this article is to put all mostly used function related in SQL Server 2005/2008 under a sinlge article. There are several function that we are used regularly in SQL Server 2005/2008. This article is will a common place for all those function with proper example.
But, I need your help. This Table of Contents and Article is editable by all CodeProject Silver members and above. What I want you to do is replace the entries in the Table of Contents below add as many as function you aware on SQL Server 2005 or above. This will really help beginners to find out all of them under a single article.
Please Visit here, Most Commonly Used Functions in SQL Server 2005/2008.
Thanks for your support.
Objective of this article is to put all mostly used function related in SQL Server 2005/2008 under a sinlge article. There are several function that we are used regularly in SQL Server 2005/2008. This article is will a common place for all those function with proper example.
But, I need your help. This Table of Contents and Article is editable by all CodeProject Silver members and above. What I want you to do is replace the entries in the Table of Contents below add as many as function you aware on SQL Server 2005 or above. This will really help beginners to find out all of them under a single article.
Please Visit here, Most Commonly Used Functions in SQL Server 2005/2008.
Thanks for your support.
Labels:
My Articles,
SQL Server 2005
Saturday, August 15, 2009
My New Article : A Closer Look Inside RAISERROR - SQLServer 2005
Today, I have published another article on fundamental of RAISERROR in SQL Server 2005. Its all about internal of RAISERROR, how to use it, sp_addmessage, use them inside TRY-CATCH etc. If you really interesed, Here is my complete article
A Closer Look Inside RAISERROR - SQLServer 2005
A Closer Look Inside RAISERROR - SQLServer 2005
Labels:
My Articles,
SQL Server 2005
Saturday, August 8, 2009
My New Article : Test Your ASP.NET WebServices using SOAP UI
Today I have published another article on Web Service Testing- Using SOAP UI. This is very important to test our web service before we moved it to production. Soap UI is one of the best tool for test any SOAP Request and Response. If have described the basick overview of that tool so that any one can start from scratch. If you are really intereseted, then please read my article complete here, Test You Web Service Using Soap UI
Please give your suggestion and feedback .
Please give your suggestion and feedback .
Labels:
ASP.NET,
C#,
My Articles,
Web Services
Saturday, August 1, 2009
My New Article : Overview of Error in SQL Server 2005 Handling
Today I have published another article on Error Handling in SQL Server 2005. This is all about how we are going to handled errors and exception in T-SQL. I have described basic of @@ERROR and TRY-CATCH Block with proper example. If you are really intereseted, then please read my article here, Overview of Error Handling in SQL Server 2005
Please give your suggestion and feedback .
Please give your suggestion and feedback .
Labels:
My Articles,
SQL Server 2005
Wednesday, July 29, 2009
My New Article : Overview of VIEW in SQL Server 2005
Lastnight I have published another article on fundamental of SQL Server VIEW. Its all about View Creation, Use of View, Description of System View, Schema Binding with view and Encryption of View. If you really interesed, Here is my complete article Overview of View in SQL Server 2005 .
This is the Part 1. In the next part I will write on Parameterized View and Indexing of View
Please give your valuable suggestion and feedback.
This is the Part 1. In the next part I will write on Parameterized View and Indexing of View
Please give your valuable suggestion and feedback.
Labels:
ASP.NET,
My Articles,
SQL Server 2005
Monday, July 20, 2009
Prize winner in Competition "Best ASP.NET article of June 2009"
I have own the first prize in the article competition for my article Debug Your ASP.NET Application that Hosted on IIS : Process Attach and Identify which process to attach.. This is second time in this year I have received the prizes from codeproject. Thanks to all of you who read my articles and vote for it.
I have published another article on Remote IIS Debugging in this month. Hope this will also help you.
Please give your suggestion and feedback to improve my articles. Thanks again.
I have published another article on Remote IIS Debugging in this month. Hope this will also help you.
Please give your suggestion and feedback to improve my articles. Thanks again.
Labels:
ASP.NET,
My Articles
Wednesday, July 15, 2009
My New Article : Debug your web application Hosted on Remote IIS
Lastnight I have published another article on debugging of ASP.NET article which hosted on Remote IIS Server. Its all about the how to msvsmon.exe and its configuration. If you really interesed, Here is my complete article Remote IIS Debugging : Debug your ASP.NET Application which is hosted on "Remote IIS Server"
Please give your valuable suggestion and feedback.
Please give your valuable suggestion and feedback.
Labels:
ASP.NET,
C#,
My Articles
Tuesday, July 7, 2009
XSL Transformation : Rendering XML using XSL - HTML Output
Overview
Some times we need to display the XML data in our web application in specific format. XSLT provides the ability to display the XML document in some specific format like HTML, PDF etc. We can select a a XML file or a portion of XML File and using XSL Transformation we can display in some specific format.

An XSL transformation need an XML document to transform and an XSL style sheet describing how the transformation will take place. An XSLT engine then transforms the XML document via the XSL style sheet and will produce the output in the format specified by the style sheet.
1. Create Data Base :
Rather than reading the data from xml, I have read the data from database. First of all I have create an DB Student with table name "StudentDetails" . Table contain some dummy data like,

3. Desing XSL
Now, Designing XSL is one of the important task, and there are many things that related with XSL . In my case, this is very simple XSL, but if you need to learn in details, I will suggest you to read from W3School. First of all have a look into the XML data which I have got from the dataset.

And based on that we need to desing the XSL File. Below is the StudentDetails XSL
[sourcecode language='xml']
style="background-color:#123456;font-family:verdana;font-size:10pt;border:1">
Roll
Name
Address
style="font-family:verdana;font-size:10pt;border:1">
[/sourcecode]
Now, have a look into the code,
Read the data from database and put it into dataset. We can easily get the XML from dataset using.
[sourcecode language='csharp']
string XMLString=ds.GetXml();
[/sourcecode]
Below code is used to read data from database
[sourcecode language='csharp']
public string strstudentDetails = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
string _strConnectionString = "Data Source=.\\sqlexpress;Initial Catalog=Student;Integrated Security=True";
string _strquery = "select * from studentDetails";
SqlConnection con = new SqlConnection(_strConnectionString);
DataSet ds = new DataSet("Students");
SqlDataAdapter da = new SqlDataAdapter(_strquery, con);
da.Fill(ds);
//Get the XML From DataSet
string strXML = ds.GetXml();
strstudentDetails=GetHtml(Server.MapPath("~/xsl/studentDetails.xsl"), strXML);
}
[/sourcecode]
GetHtml function actually doing the job. Its taking XSL Stylesheet and XML data as parameter and returning the html output
[sourcecode language='csharp']
///
/// Get HTML From XML and XSL
///
///
XSL File Path
///
XML String
///HTML Output
public static string GetHtml(string xsltPath, string xml)
{
MemoryStream stream = new MemoryStream(ASCIIEncoding.Default.GetBytes(xml));
XPathDocument document = new XPathDocument(stream);
StringWriter writer = new StringWriter();
XslCompiledTransform transform = new XslCompiledTransform();
transform.Load(xsltPath);
transform.Transform(document, null, writer);
return writer.ToString();
}
}
[/sourcecode]
Now for displaying the result, we have to put following line in the aspx page,
[sourcecode language='html']
Student Page
[/sourcecode]
and the output like,

Hope this will help you to move ahead with XSL Transformation.
Thankyou
Some times we need to display the XML data in our web application in specific format. XSLT provides the ability to display the XML document in some specific format like HTML, PDF etc. We can select a a XML file or a portion of XML File and using XSL Transformation we can display in some specific format.
An XSL transformation need an XML document to transform and an XSL style sheet describing how the transformation will take place. An XSLT engine then transforms the XML document via the XSL style sheet and will produce the output in the format specified by the style sheet.
Here I am just going to show you how we can display a XML data using XSL in our web page and which will help beginners to start with. This is an sample application. The XSL, which I have used over here is very simple. If you want to learn details on XSL please read tutorials from W3School.
How to Implement ?
1. Create Data Base :
Rather than reading the data from xml, I have read the data from database. First of all I have create an DB Student with table name "StudentDetails" . Table contain some dummy data like,
2. Add XSL File
Before, reading the data from database, we have to create the XSL file, We can add XSL file by just right click on the project > Add New Item >Select XSLT File
I have put the xsl file in a specific folder called XSL .
3. Desing XSL
Now, Designing XSL is one of the important task, and there are many things that related with XSL . In my case, this is very simple XSL, but if you need to learn in details, I will suggest you to read from W3School. First of all have a look into the XML data which I have got from the dataset.
And based on that we need to desing the XSL File. Below is the StudentDetails XSL
[sourcecode language='xml']
Roll
Name
Address
[/sourcecode]
Now, have a look into the code,
Read the data from database and put it into dataset. We can easily get the XML from dataset using.
[sourcecode language='csharp']
string XMLString=ds.GetXml();
[/sourcecode]
Below code is used to read data from database
[sourcecode language='csharp']
public string strstudentDetails = string.Empty;
protected void Page_Load(object sender, EventArgs e)
{
string _strConnectionString = "Data Source=.\\sqlexpress;Initial Catalog=Student;Integrated Security=True";
string _strquery = "select * from studentDetails";
SqlConnection con = new SqlConnection(_strConnectionString);
DataSet ds = new DataSet("Students");
SqlDataAdapter da = new SqlDataAdapter(_strquery, con);
da.Fill(ds);
//Get the XML From DataSet
string strXML = ds.GetXml();
strstudentDetails=GetHtml(Server.MapPath("~/xsl/studentDetails.xsl"), strXML);
}
[/sourcecode]
GetHtml function actually doing the job. Its taking XSL Stylesheet and XML data as parameter and returning the html output
[sourcecode language='csharp']
///
/// Get HTML From XML and XSL
///
///
XSL File Path
///
XML String
///
public static string GetHtml(string xsltPath, string xml)
{
MemoryStream stream = new MemoryStream(ASCIIEncoding.Default.GetBytes(xml));
XPathDocument document = new XPathDocument(stream);
StringWriter writer = new StringWriter();
XslCompiledTransform transform = new XslCompiledTransform();
transform.Load(xsltPath);
transform.Transform(document, null, writer);
return writer.ToString();
}
}
[/sourcecode]
Now for displaying the result, we have to put following line in the aspx page,
[sourcecode language='html']
[/sourcecode]
and the output like,
Hope this will help you to move ahead with XSL Transformation.
Thankyou
Labels:
ASP.NET,
C#,
My Articles
Thursday, June 11, 2009
My Recent Article :Debug Your ASP.NET Application that Hosted on IIS : Process Attach and Identify which process to attach
Ahh... After a long time, I have a published an article on Codeproject.
This article describe how to debug a web application which is hosted on IIS. It also describe how to select a particular process to attach with your application when multiple worker process are running. Please read details over here and give your suggestions and feedback
Thank you.
This article describe how to debug a web application which is hosted on IIS. It also describe how to select a particular process to attach with your application when multiple worker process are running. Please read details over here and give your suggestions and feedback
Thank you.
Labels:
ASP.NET,
C#,
My Articles
Tuesday, March 24, 2009
First Prize winner in Competition "Best ASP.NET article of January 2009"
I have won the first prize for my "Exploring Session in ASP.NET" article in the month of January . Thanks to all for voting.
Labels:
ASP.NET,
C#,
My Articles,
SQL Server 2005
Labels
- .NET (1)
- .NET 4.0 (10)
- ASP.Net (2)
- ASP.NET (12)
- asp.net 4.0 (2)
- ASP.NET 4.0 (1)
- Awards (2)
- C# (8)
- C# 4.0 (3)
- code (1)
- codeproject (5)
- Debugging (2)
- Enterprise Library 4.1 (1)
- General (21)
- IIS (1)
- IntelliTrace (2)
- Microsoft ASP.NET Web Site (4)
- MSDN (1)
- Multithreaded Debugging (1)
- MVC (1)
- MVC Framework (1)
- MVP (3)
- My Articles (15)
- Parallel Debugging (1)
- RenderingMode (1)
- SQL Server 2005 (6)
- VideoTutorial (1)
- View State (1)
- Visual Studio 2010 (9)
- VS 2010 (1)
- VSX (1)
- Web Services (1)
- WPF (1)
ASP.NET Books
Copyright 2009
Abhijit's Blog. Powered by Blogger
Blogger Showcase - Submit Your Blog Blogger Templates created by Deluxe Templates
Wordpress theme by Site5
Blogger Showcase - Submit Your Blog Blogger Templates created by Deluxe Templates
Wordpress theme by Site5