<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3826986716234513713</id><updated>2012-01-31T10:37:43.673+05:30</updated><category term='Crystal Reports'/><category term='Cross Page Posting'/><category term='jQuery'/><category term='Visual studio'/><category term='ItemTemplate'/><category term='GridView'/><category term='Windows Froms'/><category term='Sql Server'/><category term='AppFabric'/><category term='AJAX'/><category term='Forms Authentication'/><category term='Web.config'/><category term='BloggerTips'/><category term='DetailsView'/><category term='MembershipProvider'/><category term='XML'/><category term='VB.NET'/><category term='EditItemTemplate'/><category term='Update Panel'/><category term='ObjectDataSource'/><category term='DataKeyNames'/><category term='DataList'/><category term='Session'/><category term='IIS'/><category term='FindControl'/><category term='Web Service'/><category term='Submit Form'/><category term='ASP.NET'/><category term='C#'/><category term='Performance Optimization'/><category term='FooterTemplate'/><category term='QueryString'/><category term='Server.Transfer'/><category term='iTextSharp'/><category term='FileUpload'/><category term='Blogger Tricks'/><category term='Progress Template'/><category term='Authentication'/><category term='ModalPopUpExtender'/><category term='AutoComplete Extender'/><category term='Cookies'/><category term='DropDownList'/><category term='JavaScript'/><category term='TraceMobileNumber'/><category term='WinForms'/><category term='LoginControl'/><category term='Excel'/><title type='text'>C#.NET ASP.NET Articles CSHARP VBNET Tutorials Code Examples Samples</title><subtitle type='html'>ASP.NET,C#.NET,VB.NET,AJAX,jQuery SQL GridView Articles And Code Examples</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default?start-index=101&amp;max-results=100'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>143</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-4699211117618737837</id><published>2012-01-30T14:01:00.004+05:30</published><updated>2012-01-30T14:12:54.879+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Reports'/><title type='text'>Export Crystal Reports To PDF Word Excel In Asp.Net</title><summary type='text'>Export or save crystal reports to pdf,ms word,excel programmatically in asp.net

In this post i'm explaining how to export or save crystal reports to pdf,word or excel programmatically in button click event.

For this Example i have used Northwind Database and Employees table.

Read Crystal reports in ASP.NET to know how to create crystal reports in asp.net.

After you have finished creating </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/4699211117618737837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/export-crystalreports-to-pdf-word-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4699211117618737837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4699211117618737837'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/export-crystalreports-to-pdf-word-excel.html' title='Export Crystal Reports To PDF Word Excel In Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-bGPA4odDiMI/TyZRJsQY4sI/AAAAAAAABWU/Bjzy0YCo7J0/s72-c/ExportCrystalReportToPDF.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3760651024464049125</id><published>2012-01-28T16:35:00.003+05:30</published><updated>2012-01-28T16:43:54.179+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><title type='text'>Asp.Net AdRotator With Timer Example To Rotate Ads Without Refresh</title><summary type='text'>AdRotator Control With timer Example to rotate advertisements without refreshing the page in asp.net and Ajax.

AdRotator control in asp.net is used to display advertisements on asp.net website. Ads are rotated when user reload or refresh the page, but using ajax and timer we can rotate ads without refreshing the page.

Create a new website in visual studio and add a new folder named Ads and </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3760651024464049125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/aspnet-adrotator-with-timer-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3760651024464049125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3760651024464049125'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/aspnet-adrotator-with-timer-example.html' title='Asp.Net AdRotator With Timer Example To Rotate Ads Without Refresh'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh5.googleusercontent.com/-Rm3-FDqFFD8/TyPFsW5IqpI/AAAAAAAABV8/Z6wbAdxQ6R8/s72-c/AdRotatorExample.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7768232939513991286</id><published>2012-01-27T14:28:00.003+05:30</published><updated>2012-01-27T14:33:16.967+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Download File From Server In Asp.Net</title><summary type='text'>Download files from server or hyperlink in asp.net

In this post i'm explaining how to download a file from server in asp.net and display Save As dialog box when a link is clicked on the site.

For this example i have created a folder named Files on the server and stored Some sample files to download.

First we need to write code to display names of all the file saved in Files folder as </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7768232939513991286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/download-file-from-server-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7768232939513991286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7768232939513991286'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/download-file-from-server-in-aspnet.html' title='Download File From Server In Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh5.googleusercontent.com/-ARkot_SHGis/TyJkFl2ww1I/AAAAAAAABVY/GPZ-CFrKW3o/s72-c/DownloadFileFromServer.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2383240507114437533</id><published>2012-01-26T16:20:00.005+05:30</published><updated>2012-01-27T09:55:40.962+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>AspNet CompareValidator With Date Example</title><summary type='text'>Asp.Net CompareValidator Example to compare dates or textbox values

In this post i'm going to explain how to use CompareValidator to compare different values or dates.

For example We can use comparevalidator to compare values entered in password and confirm password textboxes which needs to be same, and using comparevalidator we don't need to wtite any code to check whether password in both </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2383240507114437533/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/aspnet-comparevalidator-date-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2383240507114437533'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2383240507114437533'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/aspnet-comparevalidator-date-example.html' title='AspNet CompareValidator With Date Example'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/--nB7JjvcTvI/TyEsg38vZRI/AAAAAAAABVM/ekmJ9pVJNpE/s72-c/CompareValidator.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-9096044618523826995</id><published>2012-01-25T18:33:00.005+05:30</published><updated>2012-01-25T20:01:51.038+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Create User Registration Form In AspNet</title><summary type='text'>Creating user registration form example in asp.net

In this post i am explaining how to create user registration or signup form in asp.net with sql server database using C# and VB.NET.

For this first of all we need to create a table in sql server database to store user registration data.

I have created a table named Users for this example with columns shown in image below.







Place </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/9096044618523826995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/user-registration-form-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/9096044618523826995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/9096044618523826995'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/user-registration-form-aspnet.html' title='Create User Registration Form In AspNet'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh5.googleusercontent.com/-PSjOhxK0X6Q/Tx_3ZTpwIVI/AAAAAAAABUo/k9R2cq5x_rM/s72-c/UserRegistrationForm.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-4393954624170164528</id><published>2012-01-24T11:46:00.000+05:30</published><updated>2012-01-24T11:46:01.727+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Optimization'/><title type='text'>Visual Studio Remove Unused References With Organize Usings</title><summary type='text'>Remove unused references in visual studio by organize usings command

When we create a new website or project in visual studio, several namespace references are added in code behind by default.

It's always advisable to remove all unused usings and references from code behind for better performance.

We can follow steps mentioned below to remove all unused usings and references.

FOR C# </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/4393954624170164528/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/visual-studio-remove-unused-references.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4393954624170164528'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4393954624170164528'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/visual-studio-remove-unused-references.html' title='Visual Studio Remove Unused References With Organize Usings'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-cHj1uBRFrlo/Tx5HC-UV3BI/AAAAAAAABTg/mCeffTxvb7Y/s72-c/RemoveUnusedReferences.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5136890511825281222</id><published>2012-01-20T22:07:00.001+05:30</published><updated>2012-01-20T22:08:58.176+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Get RowIndex In GridView RowCommand Event Using DataKey CommandArgument</title><summary type='text'>Get RowIndex In GridView RowCommand Event Using DataKey or CommandArgument in asp.net

In this post i am showing how to get RowIndex of gridview row in RowCommand Event through DataKey property or commandArgument.

RowCommand event is raised when a button inside gridview is clicked. 

Method 1.
To get gridview rowindex through DataKey property we can use code as mentioned below.

For this we need</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5136890511825281222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/rowindex-gridview-rowcommand-datakey.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5136890511825281222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5136890511825281222'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/rowindex-gridview-rowcommand-datakey.html' title='Get RowIndex In GridView RowCommand Event Using DataKey CommandArgument'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3590715928918119622</id><published>2012-01-20T12:20:00.003+05:30</published><updated>2012-01-20T12:24:13.050+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='FileUpload'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Save Store Files In SqlServer Database AspNet</title><summary type='text'>Upload and Save Or Store Files In Ms Sql Server Database using fileupload control in Asp.Net.

In this post i'm explaining how to save or store and retrieve pdf,word,excel,jpeg,gif,png files in MS sqlserver database using fileupload in asp.net.

I'll also explain how to retrieve files from sql database for users to download.

For this example i have created a sample database with table name </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3590715928918119622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/save-store-files-sqlserver-database.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3590715928918119622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3590715928918119622'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/save-store-files-sqlserver-database.html' title='Save Store Files In SqlServer Database AspNet'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-51VzIiBLL8s/TxkHgmafzgI/AAAAAAAABS8/eIB7fYjrdf4/s72-c/SaveFilesInDatabase.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3754039442499843254</id><published>2012-01-17T18:48:00.003+05:30</published><updated>2012-01-20T09:45:41.141+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Nested GridView In Asp.Net Or GridView Inside GridView(Master Detail)</title><summary type='text'>Gridview inside gridview or nested gridview in Master Detail or Parent Child scenario in asp.net

In this post i am explaining how to create gridview inside gridview or nested gridview to show master detail or Parent Child data in asp.net.

For this i have used northwind database and customers and Orders table to display data.

Drag SqlDataSource1 on page and configure it to fetch data Customers </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3754039442499843254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/nested-gridview-inside-gridview-aspnet.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3754039442499843254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3754039442499843254'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/nested-gridview-inside-gridview-aspnet.html' title='Nested GridView In Asp.Net Or GridView Inside GridView(Master Detail)'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh5.googleusercontent.com/-TlEpRxK4hVs/TxVQ9vO1XhI/AAAAAAAABSk/9Y4ExV-qihY/s72-c/GridviewInsideGridview.gif' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5342706746692906405</id><published>2012-01-16T13:35:00.004+05:30</published><updated>2012-01-16T13:43:59.571+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Add License Agreement In Visual Studio Setup Project</title><summary type='text'>Add License Agreement In Setup Project using Visual Studio

In this post i am explaining steps to add license agreement dialog in visual studio setup project.

Read Create Setup And Deployment Project in Visual Studio 2008/2010 to know how to create setup for your winforms or asp.net applications.









step 1.
First of all we need to create a licence agreement file, for this open wordpad and </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5342706746692906405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/add-license-agreement-setupproject.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5342706746692906405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5342706746692906405'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/add-license-agreement-setupproject.html' title='Add License Agreement In Visual Studio Setup Project'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-4gtFrv2kjvA/TxPVg_F43NI/AAAAAAAABQ4/FhoA2C0e2Yg/s72-c/LicenceAgreementInSetupProject.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-83695687804567494</id><published>2012-01-06T17:25:00.003+05:30</published><updated>2012-01-16T12:58:54.151+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Ajax Asp.Net PasswordStrength Example</title><summary type='text'>PasswordStrength Example using Ajax In Asp.Net.

In this example i'm explaining how to use PasswordStrength Control of AjaxControlToolkit for asp.net 3.5.

For this Add latest version of AjaxControlToolkit.dll in BIN folder of application and place one textbox and passwordstrength control on the aspx page.

Add below mentioned CSS style in stylesheet.css for strength bar to show up.



CSS </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/83695687804567494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/passwordstrength-ajax-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/83695687804567494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/83695687804567494'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/passwordstrength-ajax-aspnet.html' title='Ajax Asp.Net PasswordStrength Example'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-yc1xCjCxasY/TwbgBD9E-nI/AAAAAAAABQg/zyVWFCZmtyA/s72-c/PasswordStrength.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1273672534166245962</id><published>2012-01-05T22:11:00.001+05:30</published><updated>2012-01-05T22:12:06.373+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><title type='text'>Invalid Formatetc Structure Ajax Asp.Net Error</title><summary type='text'>Invalid FORMATETC structure Ajax Asp.Net Error

If you are getting "The operation could not be completed. Invalid Formatetc Structure" error while using Asp.Net Ajax controls in Visual studio 2008 then this error occurs because of version conflict of System.web.extensions assembly installed in GAC.



To fix this problem try any of the following solutions.
1st Method.
Visual studio 2008 uses .NET</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/1273672534166245962/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/invalid-formatetc-structure-ajax-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1273672534166245962'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1273672534166245962'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/invalid-formatetc-structure-ajax-aspnet.html' title='Invalid Formatetc Structure Ajax Asp.Net Error'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-iZMZpLFZSWc/TwXO8guUMjI/AAAAAAAABQI/2FMjXcJ5XFw/s72-c/AspNetAjaxInvalidFORMATETCstructureError.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2034723750622447630</id><published>2012-01-02T19:47:00.003+05:30</published><updated>2012-01-03T14:14:12.908+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='MembershipProvider'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='LoginControl'/><title type='text'>Create User Programmatically Using Membership In Asp.Net</title><summary type='text'>Create User Programmatically using Membership In Asp.Net

To create users or new accounts programmatically using membership provider in asp.net we need to use CreateUser Method of membership class.

For this i have placed textbox controls and requiredFieldValidators to validate respective textboxes.

Read CreateUserWizard Email Verification Or Confirmation In Asp.NET to know how to create user </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2034723750622447630/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/create-user-programmatically-membership.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2034723750622447630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2034723750622447630'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2012/01/create-user-programmatically-membership.html' title='Create User Programmatically Using Membership In Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-pBhdXCZwAuU/TwGr7sNF2II/AAAAAAAABP8/3le9v0mta28/s72-c/CreateUserProgrammatically.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5983460779860645301</id><published>2011-12-31T16:14:00.007+05:30</published><updated>2011-12-31T17:52:37.001+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='MembershipProvider'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='LoginControl'/><title type='text'>CreateUserWizard Email Verification Or Confirmation In Asp.NET</title><summary type='text'>CreateUserWizard Email Verification Or Confirmation In Asp.NET.

In this example i am explaining how to create new user using createnewuserwizard with membership provider and sending verification or confirmation link in Email using C# or VB in ASP.NET.

Read Login Page Using Login Control to know how to create login page in asp.net and setup membership provider to use with login control.


For </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5983460779860645301/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/createuserwizard-email-verification.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5983460779860645301'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5983460779860645301'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/createuserwizard-email-verification.html' title='CreateUserWizard Email Verification Or Confirmation In Asp.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-SkibQ0XmAOk/Tv7hwDjnuXI/AAAAAAAABPI/fRvNl9edWuA/s72-c/CreateUserWizardEmailVerification.PNG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3806890641501558270</id><published>2011-12-27T17:38:00.007+05:30</published><updated>2012-01-23T16:54:59.448+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='MembershipProvider'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='LoginControl'/><title type='text'>Login Page Example Using Login Control In Asp.Net</title><summary type='text'>Creating Login Page In Asp.Net using Login Control And Membership Provider DataBase ASPNETDB.MDF.


In this post i'm explaining how to create login page in asp.net using Login COntrol and membership provider database ASPNETDB.MDF.

Create a new website and add new web form in the solution, name it Login.aspx,






Place a Login control on this Login.aspx page from toolbox in visual studio.

</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3806890641501558270/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/login-page-using-login-control-aspnet.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3806890641501558270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3806890641501558270'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/login-page-using-login-control-aspnet.html' title='Login Page Example Using Login Control In Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-BGIuQMEP144/Tvmt7mbyr0I/AAAAAAAABN0/QFsCYVsYk_Q/s72-c/LoginPage.gif' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3142589988539389025</id><published>2011-12-23T21:34:00.005+05:30</published><updated>2011-12-23T21:39:52.666+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Session'/><title type='text'>Set Session TimeOut In Asp.Net Using WebConfig IIS</title><summary type='text'>Set Or Manage Session TimeOut In Asp.Net Using Web.Config and IIS

In this post i'm explaining how to set or increase session timeout value in web.config or IIS in Asp.Net.

Read Detecting Session Timeout and Redirect to Login Page in ASP.NET to know how to detect Session TimeOut.

1. Set session timeout in IIS.

Open IIS manager by typing inetmgr in Start &gt; run in windows.

Right click on </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3142589988539389025/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/set-session-timeout-in-aspnet-webconfig.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3142589988539389025'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3142589988539389025'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/set-session-timeout-in-aspnet-webconfig.html' title='Set Session TimeOut In Asp.Net Using WebConfig IIS'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-3wteDr4ayvs/TvR6lM0CxaI/AAAAAAAABNc/uPX0BfqS2Gs/s72-c/SetSessionTimeOut.PNG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5655046489776647679</id><published>2011-12-22T10:31:00.005+05:30</published><updated>2011-12-23T14:37:06.257+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Remove Delete Duplicate Rows/Records From DataTable</title><summary type='text'>
Remove/Delete Duplicate Rows/Records From Datatable. 

Here i'm describing how to remove or delete duplicate rows or duplicate records from datatable using C# or VB.NET in Asp.Net.

My table in database contains duplicate records as shown in image and i want to remove those duplicate records temporaryly efore displaying them in gridview.

For this purpose i'm filling records in DataTable and </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5655046489776647679/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/remove-duplicate-rows-datatable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5655046489776647679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5655046489776647679'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/remove-duplicate-rows-datatable.html' title='Remove Delete Duplicate Rows/Records From DataTable'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-PT5DaE-tCEo/TvK25o1erII/AAAAAAAABNE/duRmgsWIHxQ/s72-c/RemoveDuplicateFromDataTable.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2830102355570823818</id><published>2011-12-21T11:20:00.006+05:30</published><updated>2011-12-21T11:38:17.978+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='EditItemTemplate'/><category scheme='http://www.blogger.com/atom/ns#' term='DetailsView'/><title type='text'>DropDownList In DetailsView EditItemTemplate</title><summary type='text'>
DropDownList And RadioButtonList In EditItemTemplate Of DetailsView In Asp.Net.

In This Example i'm going to explain how to put dropdownlist and radiobutton control in EditItemTemplate of DetailsView and Edit or Update Records of DetailsView in asp.net.

For this i have used SqlDataSource To fetch records from database and populate and update detailsview.





HTML SOURCE OF ASPX PAGE&lt;asp:</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2830102355570823818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/detailsview-edititemtemplate-dropdown.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2830102355570823818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2830102355570823818'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/detailsview-edititemtemplate-dropdown.html' title='DropDownList In DetailsView EditItemTemplate'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-uJawobHYouM/TvF3h4PeTOI/AAAAAAAABMo/zQc68helzuQ/s72-c/DropDownListInEditItemTemplateDetailsView.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3376020935691493802</id><published>2011-12-19T20:19:00.002+05:30</published><updated>2011-12-19T20:22:49.583+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>A Potentially Dangerous Request.Form Value Was Detected From Client</title><summary type='text'>
A potentially dangerous Request.Form value was detected from the client.

This A potentially dangerous Request.Form value was detected from the client error occurs when user enter any script tag &lt;&gt; like 
or any html &lt;&gt; tag like  etc in taxtbox.

Reason for this is asp.net prevent any attempt to compromise the security of application by script injection like cross site scriptiong etc through </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3376020935691493802/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/potentially-dangerous-requestform-value.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3376020935691493802'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3376020935691493802'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/potentially-dangerous-requestform-value.html' title='A Potentially Dangerous Request.Form Value Was Detected From Client'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-BPtAT96Rjlk/Tu9JzL5_QoI/AAAAAAAABMQ/KPCrjRS8BBo/s72-c/potentiallydengerousrequest.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7599748070695380637</id><published>2011-12-19T14:49:00.004+05:30</published><updated>2011-12-19T15:37:09.531+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Web.config'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Write Modify Web.Config Programmatically At Run Time</title><summary type='text'>Write or Modify Web.Config ConnectionString Programmatically At Run Time In Asp.Net

In this post I'm going to explain how to write or modify CnnectionStrings and AppSettings programmatically at run time in Web.Config file in Asp.Net.

To write or modify web.config programmatically we need to use ebConfigurationManager Class in System.Web.Configuration namespace.



We can add write or modify any</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7599748070695380637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/write-modify-webconfig-programmatically.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7599748070695380637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7599748070695380637'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/write-modify-webconfig-programmatically.html' title='Write Modify Web.Config Programmatically At Run Time'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-qi2nvIUOM7w/Tu7979ONrwI/AAAAAAAABME/uC_vtTQiUXI/s72-c/WriteConnectionString.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3956531130731567819</id><published>2011-12-15T13:29:00.000+05:30</published><updated>2011-12-15T19:03:52.844+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='FindControl'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='FooterTemplate'/><category scheme='http://www.blogger.com/atom/ns#' term='EditItemTemplate'/><title type='text'>GridView XML Edit Delete Insert Update</title><summary type='text'>GridView XML Edit Delete Insert Update. 

In this post i'm explaining how to Edit Delete Insert and update XML file data in GridView using C# and VB.Net in Asp.Net.

Read GridView XMLDataSource Example to know how to use XMLDataSource in GridView with XSLT schema.

For this example i have created a XML file with three fields Firstname,LastName and Location and XML file looks like mentioned below.</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3956531130731567819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/gridview-xml-edit-delete-insert-update.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3956531130731567819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3956531130731567819'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/gridview-xml-edit-delete-insert-update.html' title='GridView XML Edit Delete Insert Update'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh4.googleusercontent.com/-CuwFB5vZveU/TumfN4f_YXI/AAAAAAAABK8/KhiwzslrJNY/s72-c/GridViewXMLEditDeleteInsert.gif' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-8753207581883225462</id><published>2011-12-12T21:28:00.004+05:30</published><updated>2011-12-17T17:12:37.409+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='FileUpload'/><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Upload And Read Excel File In Asp.Net</title><summary type='text'>Upload and Read Excel File In Asp.Net

In this post i'm explaining how to upload and read excel file data using fileUpload and dispplay in gridview using C# and VB.NET in asp.net.

First of all put a fileUpload control, and a GridView in design view of aspx page to upload and display excel file data.

Now place a button on the page, in click even of this button we will be uploading the excel file</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/8753207581883225462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/upload-and-read-excel-file-in-aspnet.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8753207581883225462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8753207581883225462'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/upload-and-read-excel-file-in-aspnet.html' title='Upload And Read Excel File In Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh5.googleusercontent.com/-LlJ0qNcA3Lg/TuYjJOCmoEI/AAAAAAAABKk/a8it5IS6bO0/s72-c/UploadAndReadExcelFileAspNet.gif' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-793615906218215854</id><published>2011-12-08T16:19:00.001+05:30</published><updated>2011-12-08T16:21:35.320+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>VisualStudio SetupProject Updates Version Already Installed Error</title><summary type='text'>Visual Studio WindowsForms or WinForms Setup Project Updates Another Version Of This Product Is Already Installed Error.

When we make changes or update in windows forms or winforms application and create setup project to reinstall the application, we get below mentioned error.

Another version of this product is already installed. Installation of this version can not continue. 
To configure or </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/793615906218215854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/visual-studio-setupproject-updates.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/793615906218215854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/793615906218215854'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/visual-studio-setupproject-updates.html' title='VisualStudio SetupProject Updates Version Already Installed Error'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-SPv5UAbVblc/TuCSp8qt1sI/AAAAAAAABJY/AwVSFYQpKGA/s72-c/SetupProjectUpdatesError.PNG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3151566750518217729</id><published>2011-12-07T20:09:00.003+05:30</published><updated>2011-12-07T20:20:51.267+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Read CSV File And Save To SQL Server In ASP.NET C# VB.NET</title><summary type='text'>Read CSV File or Data In ASP.NET using C# VB.NET And save to MS SQL Server.

In this post i'm going to explain how to read CSV file and save the data to sql server In ASP.NET using C# or VB.NET.

My sql table has 3 columns FirstName,LastName and Department. and i m using datatable to read Data from CSV file and temporarily storing in datatable.

First of all you need to add reference to </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3151566750518217729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/read-csv-file-data-in-aspnet-c-vbnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3151566750518217729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3151566750518217729'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/read-csv-file-data-in-aspnet-c-vbnet.html' title='Read CSV File And Save To SQL Server In ASP.NET C# VB.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7801512219054818228</id><published>2011-12-06T18:31:00.003+05:30</published><updated>2011-12-15T19:02:16.736+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='XML'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>GridView XMLDataSource Example</title><summary type='text'>GridView XMLDataSource Example

In this post i'm going to explain how to use XML file or XML data as XMLDataSource to populate GridView in Asp.Net 2.0,3.5,4.0.

For this example i have created a simple xml file and added it in App_Data Folder of Asp.Net application.


The data in XML file look like shown below.

&lt;?xml version="1.0" encoding="utf-8" ?&gt;

  
  Amit
  Jain
  Mumbai
  
  
    user
</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7801512219054818228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/gridview-xmldatasource-example.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7801512219054818228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7801512219054818228'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/gridview-xmldatasource-example.html' title='GridView XMLDataSource Example'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-44bX1P0vPRA/Tt4QGmIrxwI/AAAAAAAABI0/4GWauJ0xn-g/s72-c/XmlDataSourceExample.PNG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-748402642852026747</id><published>2011-12-05T17:58:00.004+05:30</published><updated>2011-12-05T18:09:25.610+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows Froms'/><category scheme='http://www.blogger.com/atom/ns#' term='WinForms'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Add Controls Dynamically WinForms WindowsFroms C# VB.NET</title><summary type='text'>
Add controls dynamically In winforms Or windows froms Using C# And VB.NET

In this post i'm going to explain how to add controls dynamically in winforms and windows forms using C# and VB.NET.

For this i have used northwind database and Employees table to populate combobox and dataGridView.

First of all place two buttons on the form to add combobox and datagridview on button click and write </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/748402642852026747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/add-controls-dynamically-winforms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/748402642852026747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/748402642852026747'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/12/add-controls-dynamically-winforms.html' title='Add Controls Dynamically WinForms WindowsFroms C# VB.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh5.googleusercontent.com/-sD_al0bZDOM/Tty1xthKqoI/AAAAAAAABIc/_2FZVyuusqk/s72-c/AddControlsDynamically.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7659400329421734718</id><published>2011-11-20T11:47:00.004+05:30</published><updated>2011-11-20T11:55:08.043+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Optimization'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>DataBinder.Eval Container.DataItem Performance Asp.Net</title><summary type='text'>DataBinder.Eval Container.DataItem Method Performance In Asp.Net.

Using DataBinder.Eval method Slow down the performance of Asp.Net website or application noticeably.

It is mentioned in MSDN site as -

"Because this method performs late-bound evaluation, using reflection at run time, it can cause performance to noticeably slow compared to standard ASP.NET data-binding syntax."
So one should </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7659400329421734718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/11/databinder-eval-container-performance.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7659400329421734718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7659400329421734718'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/11/databinder-eval-container-performance.html' title='DataBinder.Eval Container.DataItem Performance Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-s7Pus-8IA2Q/TsicuBLpujI/AAAAAAAABIQ/xjMhi6sLx8Q/s72-c/DataBinderEval.PNG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1785548349932838809</id><published>2011-11-16T01:00:00.006+05:30</published><updated>2011-11-17T00:15:22.532+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='IIS'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>AllowDefinition MachineToApplication Beyond Application Level Error</title><summary type='text'>It is an error to use a section registered as allowDefinition ='MachineToApplication' beyond application level.

This error can be caused by a virtual directory not being configured as an application in IIS.

This error is caused mainly for two reasons.







1. Virtual directory not configured in IIS. 
If you have not Configured your application to run on IIS then Create a virtual directory and</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/1785548349932838809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/11/allowdefinition-machinetoapplication.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1785548349932838809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1785548349932838809'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/11/allowdefinition-machinetoapplication.html' title='AllowDefinition MachineToApplication Beyond Application Level Error'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-0lbpJjuVBWI/TsK5MswrjaI/AAAAAAAABHc/NXM3_ALIPCs/s72-c/allowDefinitionMachineToApplicationError.PNG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-98368844831790544</id><published>2011-11-14T20:04:00.005+05:30</published><updated>2011-11-15T01:40:32.264+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>Remove Delete Duplicate Records Or Rows - Sql Server</title><summary type='text'>Remove or Delete duplicate records or rows from ms sql server database table.

In this post i am going to describe different methods of deleting duplicate records or rows from sql server database table.

I am using Employees table with FirstName and Department columns.







First Method.
Delete duplicate records/rows by creating identity column.
duplicate records in table looks like shown in </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/98368844831790544/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/11/remove-delete-duplicate-records-rowssql.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/98368844831790544'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/98368844831790544'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/11/remove-delete-duplicate-records-rowssql.html' title='Remove Delete Duplicate Records Or Rows - Sql Server'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-rZ1JhBhH-mE/TsEfCvNaXEI/AAAAAAAABF8/udKTQGJdj68/s72-c/DeleteDuplicateRecordsInSql.PNG' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1591363905368536182</id><published>2011-11-12T12:50:00.007+05:30</published><updated>2011-11-19T17:42:14.569+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>jQuery Fixed Header Scrollable GridView</title><summary type='text'>Fixed Header Scrollable Gridview Using jQuery in ASP.NET.

In this example im going to describe how to create fixed header scrollable gridview using jquery.

I have used northwind database to populate gridview and jquery fixed header plugin.



Read Scrollable GridView With Fixed Headers Using CSS if you want to create   scrollable fixed header gridview without using jQuery or JavaScript.   

</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/1591363905368536182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/11/jquery-fixed-header-scrollable-gridview.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1591363905368536182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1591363905368536182'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/11/jquery-fixed-header-scrollable-gridview.html' title='jQuery Fixed Header Scrollable GridView'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh6.googleusercontent.com/-5DqlBLamF2s/Tr4RL7N4d5I/AAAAAAAABFk/N4tcXwmqdXY/s72-c/JqueryFixedHeaderScrollableGridview.gif' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-8440810755904855510</id><published>2011-11-06T14:00:00.002+05:30</published><updated>2011-12-12T21:35:07.445+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='FindControl'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Export Selected GridView Rows To Excel</title><summary type='text'>Export Selected GridView Rows To Excel in asp.net 2.0,3.5,4.0 using C# and VB.NET.

In this post i am going to explain how to export selected gridview rows to ms excel in asp.net. 

I have used northwind database and customers table to populate gridview.



read how to install northwind database for northwind database installation in sql server 2008.

in one of my previous posts Export Gridview </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/8440810755904855510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/11/export-selected-gridview-rows-to-excel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8440810755904855510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8440810755904855510'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/11/export-selected-gridview-rows-to-excel.html' title='Export Selected GridView Rows To Excel'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-UzsuyXMZLg0/TrZLqARDQPI/AAAAAAAABEs/qUn29q5Yp-U/s72-c/ExportSelectedGridViewRowsToExcel.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5663974788959605295</id><published>2011-10-23T12:35:00.006+05:30</published><updated>2011-10-23T19:03:31.535+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Numeric Number Only TextBox JavaScript RegularExpression Validator</title><summary type='text'>
Numeric or Number Only TextBox Using JavaScript or RegularExpressionValidator. 

In this example i am going to decsribe how create Numeric or Number only textbox using javascript or regular expression Validator which accept only numbers in asp.net web page.



1. Number only textbox using javascript.

Go to html source of aspx page and write below mentioned script in head section of page.


</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5663974788959605295/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/numeric-number-only-textbox-javascript.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5663974788959605295'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5663974788959605295'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/numeric-number-only-textbox-javascript.html' title='Numeric Number Only TextBox JavaScript RegularExpression Validator'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-UoofFmOlJlQ/TqO4Dws2ldI/AAAAAAAABEc/LP2SUwJPTcU/s72-c/NumberOnlyTextBoxExample.PNG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-4820509024396044394</id><published>2011-10-22T03:59:00.005+05:30</published><updated>2011-10-22T04:30:52.021+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows Froms'/><category scheme='http://www.blogger.com/atom/ns#' term='WinForms'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>ErrorProvider In WinForms And Windows Forms</title><summary type='text'>ErrorProvider In WinForms or Windows Forms application using C# and VB.NET


In this post i am going to describe how to use error provider control in winforms or windows forms application using C# and VB.NET.



I am using error provider control to display warning or tick icon depending on data entered in textbox so that user can find out text entered is correct or incorrect. 

in first textbox i</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/4820509024396044394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/errorprovider-in-winforms-windows-forms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4820509024396044394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4820509024396044394'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/errorprovider-in-winforms-windows-forms.html' title='ErrorProvider In WinForms And Windows Forms'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-D5nMK0eXWgg/TqHwCYeMWsI/AAAAAAAABEQ/Ru-PckIM_uQ/s72-c/ErrorProviderInWinforms.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-8885313097377080608</id><published>2011-10-19T03:30:00.007+05:30</published><updated>2011-11-19T17:45:16.986+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Optimization'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Web.config'/><category scheme='http://www.blogger.com/atom/ns#' term='AppFabric'/><title type='text'>Windows AppFabric Caching for SessionState Provider ASP.NET</title><summary type='text'>
Using Windows Server AppFabric Caching for Asp.NET Session state provider.


In ASP.NET 4 we have following options to choose and use for managing session state,

1. In-Proc 

2. SQL Server Mode

3. Custom

We can use custom session state mode to store session state in  AppFabric cache.

To use AppFabric cache for session state we need to configure our application's web.config file according to </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/8885313097377080608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/appfabric-caching-sessionstate-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8885313097377080608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8885313097377080608'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/appfabric-caching-sessionstate-aspnet.html' title='Windows AppFabric Caching for SessionState Provider ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-EB9KBPYjkDQ/Tp30V-nPnoI/AAAAAAAABD4/PDPfV2_WbMA/s72-c/AppFabric.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-6648422999237869852</id><published>2011-10-17T13:50:00.008+05:30</published><updated>2011-11-19T17:45:16.987+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Performance Optimization'/><title type='text'>Sql Query Optimization</title><summary type='text'>
Sql Query Optimization in MS SQL Server To Improve Performance of ASP.NET web applications.

Data retrieval FROM database in asp.net applications is a most common task and writing optimized queries can have a huge impact on perfirmance of application if database is huge or containing thousands of records in table. 






Here i am mentioning few tips to remeber while writing sql queries for </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/6648422999237869852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/sql-query-optimization.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6648422999237869852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6648422999237869852'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/sql-query-optimization.html' title='Sql Query Optimization'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-4785225157920714728</id><published>2011-10-15T14:06:00.005+05:30</published><updated>2011-11-19T17:47:26.852+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Optimization'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='AppFabric'/><title type='text'>Install Configure Windows Server AppFabric</title><summary type='text'>


Install,Configure Windows Server AppFabric cache services in asp.net 3.5 and 4.0.

Here i am explaining steps to install and configure windows server appfabric cache services in asp.net 3.5 and 4.0.

1. Download and run windows server appfabric from this link 

Select the features you want to install, Confirm the next screen and finish the installation.



After installation is finished, Go </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/4785225157920714728/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/install-configure-windows-appfabric.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4785225157920714728'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4785225157920714728'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/install-configure-windows-appfabric.html' title='Install Configure Windows Server AppFabric'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-ndC0qGQfpqc/Tpk2-fHIiDI/AAAAAAAABCY/ixDmcKCx1eU/s72-c/AppFabric.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5488126780141086875</id><published>2011-10-12T02:45:00.017+05:30</published><updated>2011-12-12T21:35:07.446+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Export GridView To Excel ASP.NET</title><summary type='text'>Export GridView to Excel in asp.net 2.0,3.5 using C# and VB.NET

In this post i am going to explian how to export gridview to ms excel using C# and VB.NET.

For this i have used northwind database to populate gridview. To learn how to populate gridview read this.





Read this post If you want to export gridview to pdf using iText.

After populating gridview we have to export gridview to excel </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5488126780141086875/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/export-gridview-to-excel.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5488126780141086875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5488126780141086875'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/10/export-gridview-to-excel.html' title='Export GridView To Excel ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-wCVFCvApdQA/TpSrZSfQH_I/AAAAAAAABBo/QBcKYG8luN8/s72-c/ExportGridViewToExcel.PNG' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-6781900832570029438</id><published>2011-09-27T17:02:00.014+05:30</published><updated>2011-11-17T00:32:06.945+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='jQuery'/><title type='text'>Hide Show Div Using JQuery Asp.Net</title><summary type='text'>
Show hide div using jquery example in asp.net.

So many times while developing web application we need to show or hide div or other html elements based on user interaction as shown in picture.

we can do this with ease using JQuery.








for this first of all we need to add jquery in head section of page.






Now write some css for the div and show hide button

.button, .button:visited {
 </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/6781900832570029438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/hide-show-div-using-jquery.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6781900832570029438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6781900832570029438'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/hide-show-div-using-jquery.html' title='Hide Show Div Using JQuery Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-dthzjftL3L4/ToGxmG1J5tI/AAAAAAAABA4/8P4dk-JJ7LE/s72-c/ShowHideDivUsingJquery.gif' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-6396574786446241844</id><published>2011-09-24T03:04:00.014+05:30</published><updated>2011-12-01T18:29:23.613+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows Froms'/><category scheme='http://www.blogger.com/atom/ns#' term='WinForms'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Dynamic Buttons Controls Event Handling WinForms Windows Forms</title><summary type='text'>
Dynamic buttons controls Event Handling In windows forms or Winforms applications in .net 2.0,3,5. using C# and VB.NET

many times we need to create controls at runtime or through code behind depending on the real time scenario. 

In this post i am going to explain how to add dynamic buttons at runtime and handle the Button Click event in winforms or windows forms applications.

I am creating 3 </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/6396574786446241844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/dynamic-buttons-controls-event-handling.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6396574786446241844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6396574786446241844'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/dynamic-buttons-controls-event-handling.html' title='Dynamic Buttons Controls Event Handling WinForms Windows Forms'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='https://lh3.googleusercontent.com/-MRRwz5qyaE8/Tn0EKfJ8E9I/AAAAAAAABAY/16jDCAKW4cs/s72-c/DynamicButtonsInWinforms.gif' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-6026028688496960119</id><published>2011-09-23T19:30:00.006+05:30</published><updated>2011-10-15T20:52:19.355+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Forms Authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Web.config'/><title type='text'>Context.User.Identity.Name Is Empty Blank</title><summary type='text'>
Context.user.identity.name is empty,blank or Null.

If you have set the forms authentication and trying to display logged in user name in your asp.net web application by getting the user name using user.identity.name and this is blank or empty as displayed in image above.

Then u might have missed few configuration settings.


If yor are getting user identity name null or emplty when u try to </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/6026028688496960119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/contextuser-identity-name-empty-blank.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6026028688496960119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6026028688496960119'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/contextuser-identity-name-empty-blank.html' title='Context.User.Identity.Name Is Empty Blank'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Vs03EBDx10k/TnyNp4G73wI/AAAAAAAABAA/tcIeUdYAmEM/s72-c/useridentitynameempty.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3603822784651534297</id><published>2011-09-22T18:50:00.004+05:30</published><updated>2011-10-15T20:52:41.000+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Reports'/><title type='text'>Pass Crystal Report Parameters Programmatically</title><summary type='text'>
Pass crystal report parameters programmatically in Asp.Net 2.0,3.5.

In this post i am explaining how to pass parameters to crystal reports programmatically in code behind of asp.net web page.

For this i am using northwind database and products table.

I have put one text box on the page and report will display details of product based on product id entered by user.




To know how to create </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3603822784651534297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/pass-crystalreport-parameters.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3603822784651534297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3603822784651534297'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/pass-crystalreport-parameters.html' title='Pass Crystal Report Parameters Programmatically'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-0ds9gcjhiv0/TnsxYEkdMlI/AAAAAAAAA_I/UaM95OTCi0o/s72-c/PassParametersToCrystalReport.gif' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2532265164820453171</id><published>2011-09-20T00:45:00.006+05:30</published><updated>2011-10-15T20:53:07.508+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='QueryString'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Asp.Net QueryString Example</title><summary type='text'>Using QueryStrings in Asp.Net 2.0, 3.5 and 4.0

Several time in ASP.NET applications we need to transfer data or information provided by user from one aspx page to another. 

We can achieve this using several methods like Cookies,Session  or Crosspage posting

In this post i am explaining how to use querystrings.






Example url with querystring can be something similar like this

http://</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2532265164820453171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/querystring-in-aspnet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2532265164820453171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2532265164820453171'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/querystring-in-aspnet.html' title='Asp.Net QueryString Example'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1299093900188000406</id><published>2011-09-15T00:41:00.013+05:30</published><updated>2011-10-15T20:54:10.879+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Select Find Nth Highest Salary Record In Sql Server</title><summary type='text'>Find or Select nth highest salary record in ms sql

This is most frequentky asked question how to select or get nth highest record or nth row/record from any column of sql table.

for example select get or fetch 2nd (second highest) or nth highest salary of employee or 10th highest record from the table. 

There are various ways to achieve this result, i've mentioned few here.













I have</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/1299093900188000406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/select-nth-highest-record-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1299093900188000406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1299093900188000406'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/09/select-nth-highest-record-sql-server.html' title='Select Find Nth Highest Salary Record In Sql Server'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-Bih767HkYA4/TnD7N-XZo2I/AAAAAAAAA9w/M0tNGZQ5AIE/s72-c/2.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-12209761656602902</id><published>2011-08-29T14:14:00.005+05:30</published><updated>2011-11-11T03:15:48.789+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='Forms Authentication'/><title type='text'>Forms Authentication In Asp.Net</title><summary type='text'>

In examples below i'm explaining how to use forms authentication in Asp.Net and forms authentication tickets in Asp.net.












Forms Authentication In Asp.Net 2.0 and 3.5
Forms Authentication in ASP.NET is technique to decide how users can access your web application.

Using froms authentication we can decide certain users can access only certain pages or we can control the anonymous </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/12209761656602902/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/08/forms-authentication-in-aspnet.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/12209761656602902'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/12209761656602902'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/08/forms-authentication-in-aspnet.html' title='Forms Authentication In Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-nAe6c5Yrm9c/TltPQbiY6XI/AAAAAAAAA9o/t8YVpN3MxcY/s72-c/FormsAuthenticationTicketInAspnet.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-987297684255965676</id><published>2011-08-23T01:43:00.009+05:30</published><updated>2011-10-15T20:55:12.141+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Web.config'/><title type='text'>Maintain Scroll Position On After Postback in Asp.Net 2.0 3.5</title><summary type='text'>Maintain Scroll Position on or After Postback in Asp.Net 2.0 3.5.

In this example i'm explaining different methods of maintaining scroll position on/after postback in asp.net 2.0,3.5 web pages or applications.
















Method 1 .

Write below mention directive in page directive section of html source of aspx page to maintain scroll position of only one page or selected pages rather then </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/987297684255965676/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/08/maintain-scroll-position-postback.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/987297684255965676'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/987297684255965676'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/08/maintain-scroll-position-postback.html' title='Maintain Scroll Position On After Postback in Asp.Net 2.0 3.5'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.googleusercontent.com/-6K26dRxcVnU/TlNi0LH_4UI/AAAAAAAAA8Q/pw5ONBKuSp8/s72-c/MaintainScrollPosition.gif' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-199148894410914092</id><published>2011-08-16T18:25:00.010+05:30</published><updated>2011-12-08T16:29:23.207+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual studio'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows Froms'/><category scheme='http://www.blogger.com/atom/ns#' term='WinForms'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>Create Setup And Deployment Project in Visual Studio 2008/2010</title><summary type='text'>
In this example i am going to explain how to create setup and deployment project for winforms windows application using visual studio 2005/2008/2010. 

Similar approach can be applied for creating setup project for web application as well.











First of all create any sample windows/web application.

Create setup project 
right click on solution explorer root and select Add &gt; New project 
</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/199148894410914092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/08/create-setup-project-visual-studio.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/199148894410914092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/199148894410914092'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/08/create-setup-project-visual-studio.html' title='Create Setup And Deployment Project in Visual Studio 2008/2010'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-MjSJQ9iW3Kw/TkpqjAh7zOI/AAAAAAAAA64/YfG4VwqiENY/s72-c/CreateSetupProjectInVisualStudio.PNG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1417634958877777213</id><published>2011-07-21T20:35:00.010+05:30</published><updated>2011-10-15T20:55:49.873+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogger Tricks'/><title type='text'>Move Export Facebook Photos Albums To Picasa Or Google Plus</title><summary type='text'>
If you want to move or export your FaceBook photos and albums to Google Plus + or Picasa, 

then you can do this easily using web utility called MoveYourPhotos available in Chrome web store.






Move Your Photos to Google Plus or Picasa
Move Your Photos is available as Chrome browser add on, so you need to have Google Chrome browser to use this application.

If you have joined Google's newly </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/1417634958877777213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/07/move-facebook-photos-picasa-googleplus.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1417634958877777213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1417634958877777213'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/07/move-facebook-photos-picasa-googleplus.html' title='Move Export Facebook Photos Albums To Picasa Or Google Plus'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-xHhuA9JzDzE/TihBLXhQHmI/AAAAAAAAA6w/04freRVnkuM/s72-c/MoveYourFacebookPhotosToGooglePlus.png' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5263779579398457968</id><published>2011-07-08T12:54:00.006+05:30</published><updated>2011-10-15T20:56:06.049+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Blogger Tricks'/><title type='text'>Google Plus + Facebook Feeds Integration Extension</title><summary type='text'>
.
Integrate,Combine or fetch Facebook feeds in google plus with google+facebook extension.


Recently google has launched it's new social networking platform google Plus(google +),
and if you want to Integrate your facebook feeds inside it then this extension is for you.


.

Google+Facebook allows you to see or integrate your Facebook stream inside Google Plus(Google+).

Simply Connect to </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5263779579398457968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/07/google-plus-facebook-feeds-extension.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5263779579398457968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5263779579398457968'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/07/google-plus-facebook-feeds-extension.html' title='Google Plus + Facebook Feeds Integration Extension'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-k6ZWt2YAujo/ThavJdvoX2I/AAAAAAAAA6k/dDGmTauaAaw/s72-c/Google%252BfacebookExtension.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2582639132153415736</id><published>2011-07-05T16:48:00.008+05:30</published><updated>2011-11-19T17:47:26.853+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance Optimization'/><category scheme='http://www.blogger.com/atom/ns#' term='IIS'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Web.config'/><title type='text'>Add Expires Headers In Asp.NET</title><summary type='text'>In this example i am Explaining how to add or set expires headers for static files or images in asp.net 2.0, 3.5

Performance is the main concern for any asp.net web application and bit of this can be achieved by setting expires headers for static files and images which doesn't change too often.






when expires headers are set for a future date or to never expires then browser fetch these </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2582639132153415736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/07/add-expires-headers-in-aspnet.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2582639132153415736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2582639132153415736'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/07/add-expires-headers-in-aspnet.html' title='Add Expires Headers In Asp.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-18weK38NKXY/ThLvZC6Y_qI/AAAAAAAAA6c/n_OKFvJxzv4/s72-c/AddExpiresHeadersInAsp.Net.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3831093609157760117</id><published>2011-06-17T11:25:00.013+05:30</published><updated>2011-06-22T13:54:02.707+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='BloggerTips'/><category scheme='http://www.blogger.com/atom/ns#' term='Blogger Tricks'/><title type='text'>No Edit Html Option In New Blogspot/Blogger In Draft</title><summary type='text'>
.
If you are a blogspot/blogger user, then u may have noticed the blogger have removed the Edit Html Link from new blogger in draft dashboard. 

This is quite frustrating as u can't not edit html of ur page.

But there are still 2 options to go to HTML code of ur template. 







Please use This FeedBack Form to let blogger team know that you want Edit Html Option in New blogger 


1st Option

</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3831093609157760117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/06/no-edit-html-option-in-new-blogger.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3831093609157760117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3831093609157760117'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/06/no-edit-html-option-in-new-blogger.html' title='No Edit Html Option In New Blogspot/Blogger In Draft'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-dBfR8ed_L5w/TfrtmAOB7jI/AAAAAAAAA5k/8HHtxpR5rbQ/s72-c/3.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2179460463425786336</id><published>2011-04-29T00:57:00.004+05:30</published><updated>2011-04-29T01:12:16.269+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Web Service'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='AutoComplete Extender'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>AutoCompleteExtender Example Ajax</title><summary type='text'>


In this post i m showing some Ajax AutoComplete Extender Examples using ASP.NET C# and VB.NET with Database and WebService.



Ajax autocomplete extender textbox in GridView
In this example i am implementing the AutoComplete functionality to  textbox in the EditItemTemaplate of GridView using AJAX autocomplete  extender, for this we need to create a web service which calls the  method to fetch</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2179460463425786336/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/autocompleteextender-example-aspnet.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2179460463425786336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2179460463425786336'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/autocompleteextender-example-aspnet.html' title='AutoCompleteExtender Example Ajax'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-X9op2RweCss/Tbm9CSi66cI/AAAAAAAAAxo/d2S9CIIwHs4/s72-c/ProgressImageInAutoCompleteTextBox.gif' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-841511051305592700</id><published>2011-04-25T22:05:00.003+05:30</published><updated>2011-04-25T22:12:32.691+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='ItemTemplate'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='EditItemTemplate'/><title type='text'>GridView EditItemTemplate Example</title><summary type='text'>



In this post i am listing some GridView EditItemTemplate examples in Asp.Net 2.0,3.5 with Csharp and VB.NET.




Ajax autocomplete extender textbox in GridView

Example of Ajax Autocomplete Extender TextBox in EditItemTemplate of GridView.







Insert Update Edit Delete record in GridView

Insert Update Edit and Delete Records In GridView using ItemTemplate and EditItemTemplate.





Search</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/841511051305592700/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/gridview-edititemtemplate-example.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/841511051305592700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/841511051305592700'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/gridview-edititemtemplate-example.html' title='GridView EditItemTemplate Example'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-jK5iida5Dhg/TbWc-WKwIdI/AAAAAAAAAxU/2jMHs6SsHYs/s72-c/autocompletetextbox.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7735136232026388487</id><published>2011-04-24T15:25:00.003+05:30</published><updated>2011-04-24T15:27:49.561+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='ObjectDataSource'/><title type='text'>ObjectDataSource Examples With GridView In ASP.NET</title><summary type='text'>

Examples of ObjectDataSource With GridView in Asp.Net 2.0 and 3.5 with ObjectDataSource UpdateMethod, InsertMethod and Select Method  using C# csharp and VB.NET.

Here i have compiled list of few examples of GridView/DataList with ObjectDataSource i posted earlier in this blog.








Hide GridView Columns In ASP.NET







Display Images in Gridview/DataList using Objectdatasource






</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7735136232026388487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/objectdatasource-examples-with-gridview.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7735136232026388487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7735136232026388487'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/objectdatasource-examples-with-gridview.html' title='ObjectDataSource Examples With GridView In ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-GQP_Azb-wfw/TbPwZbYYJiI/AAAAAAAAAxE/Jb0-bLBexu8/s72-c/HideGridViewColumns.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1410311562642306600</id><published>2011-04-14T03:04:00.020+05:30</published><updated>2011-04-14T12:31:09.823+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='iTextSharp'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='QueryString'/><category scheme='http://www.blogger.com/atom/ns#' term='FindControl'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='DataList'/><category scheme='http://www.blogger.com/atom/ns#' term='ItemTemplate'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='ModalPopUpExtender'/><category scheme='http://www.blogger.com/atom/ns#' term='Update Panel'/><title type='text'>GridView Examples in ASP.NET 2.0 3.5</title><summary type='text'>






Here is the list of some Gridview examples in asp.net 2.0 and 3.5 using c# and vb.net.











Merge GridView Header Columns or multiple Headers




Search Records In GridView And Highlight Results Using AJAX




Export GridView To PDF In ASP.NET







Ajax ModalPop Extender In Master Detail Gridview





Export paging enabled GridView to pdf using iTextSharp





Delete Multiple Rows </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/1410311562642306600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/gridview-examples-in-aspnet-20-35.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1410311562642306600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1410311562642306600'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/gridview-examples-in-aspnet-20-35.html' title='GridView Examples in ASP.NET 2.0 3.5'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/--8MUVhvkT_w/TaYLpNBzSPI/AAAAAAAAAwA/hqvBXISkp38/s72-c/GridHeader.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-8264254656279188225</id><published>2011-04-08T15:36:00.015+05:30</published><updated>2011-08-16T21:55:46.403+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DropDownList'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>GridView Filter Expression with DropDownList ASP.NET</title><summary type='text'>This example describes how to use GridView Filtering or Filter Gridview with DropDownList FilterExpression and filter paramaters in asp.net 2.0,3.5 with sql server 2008 and SqlDataSource.

I m using northwind database and customers table to show data and filter gridview with dropdownlist.

First of all open aspx page in design view and place 2 dropdownlist, 1 gridview and 3 SqlDatasource on the </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/8264254656279188225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/gridview-filterexpression-dropdownlist.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8264254656279188225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8264254656279188225'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/gridview-filterexpression-dropdownlist.html' title='GridView Filter Expression with DropDownList ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.googleusercontent.com/_6FOczBbkX4I/TdpjY5-rAlI/AAAAAAAAAz0/wqh1ZQO6Ylw/s72-c/GridviewWithFilter.gif' height='72' width='72'/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3572996441161925754</id><published>2011-04-04T14:28:00.036+05:30</published><updated>2011-12-01T19:01:28.941+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='ModalPopUpExtender'/><title type='text'>ModalPopUpExtender In Gridview</title><summary type='text'>
Ajax ModalPopUpExtender in master detail grdiview to open popup.

In this sample code example i am going to describe how to use Ajax ModalPopUp Extender in Gridview to display master detail or parent child data using sqlDataSource, AjaxControlToolkit,Sql Server 2008 and visual studio 2008.


I have used "Orders" and "Customers" table of Northwind database for this example.

Read install </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3572996441161925754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/ajax-modalpopextender-gridview-master.html#comment-form' title='13 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3572996441161925754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3572996441161925754'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/ajax-modalpopextender-gridview-master.html' title='ModalPopUpExtender In Gridview'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh5.googleusercontent.com/_6FOczBbkX4I/Tdph3P3iEMI/AAAAAAAAAzk/rol9VosBH8I/s72-c/ModalPopExtenderInGridView.gif' height='72' width='72'/><thr:total>13</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1888091143899385863</id><published>2011-04-02T17:46:00.008+05:30</published><updated>2011-04-05T00:36:29.358+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>Install Northwind pubs database on sql server 2008</title><summary type='text'>In this post i am going to describe how to install northwind or pubs sample database on sql server 2008. 

Follow steps mentioned below 

1. Download and install SQL2000SampleDb.msi from Microsoft Download center 

It will be installed in "C:\SQL Server 2000 Sample Databases" folder.

Move Northwind and Pubs database files (MDF and LDF files) to your default database file location (C:\Program </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/1888091143899385863/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/install-northwind-pubs-sql-server-2008.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1888091143899385863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1888091143899385863'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/04/install-northwind-pubs-sql-server-2008.html' title='Install Northwind pubs database on sql server 2008'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-iuIKYCvsF_Y/TZcWCGT91VI/AAAAAAAAAuc/2v1Z4fOrOmo/s72-c/1.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-8021783584607057471</id><published>2011-03-30T09:41:00.016+05:30</published><updated>2012-01-25T12:10:17.457+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='ModalPopUpExtender'/><title type='text'>Ajax ModalPopUpExtender Example</title><summary type='text'>In this example i'm going to describe how to implement Ajax Modal PopUp Extender on Mouse Over in ASP.NET using C# and VB.NET 

For this to work u need to download and install ajaxcontroltoolkit

Read ModalPopUpExtender In Gridview To know how to use modalpopup Extender in master detail gridview

Create a new website in visual studio and write html markup of aspx page as shown below.


Put </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/8021783584607057471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/03/ajax-modalpopupextender-example-aspnet.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8021783584607057471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8021783584607057471'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/03/ajax-modalpopupextender-example-aspnet.html' title='Ajax ModalPopUpExtender Example'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh6.googleusercontent.com/_6FOczBbkX4I/TdpOLS2-UfI/AAAAAAAAAzU/7LfIcPl-GX4/s72-c/ajaxModalPopUp.gif' height='72' width='72'/><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7662698620196126598</id><published>2011-01-12T20:19:00.024+05:30</published><updated>2011-08-16T22:01:18.517+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Import Gmail Contacts In Asp.Net</title><summary type='text'>

Several times we need to develop web applications which require to import or fetch Gmail Contacts or address book.

In this example i'm explaining how to fetch or import Gmail contacts in Asp.net web applications using C# and VB.NET.

For getting started we need to download Google Data API and install on the system to get the desired dlls.

Create a new website and visual studio and put these 3</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7662698620196126598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2011/01/import-gmail-contacts-in-aspnet.html#comment-form' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7662698620196126598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7662698620196126598'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2011/01/import-gmail-contacts-in-aspnet.html' title='Import Gmail Contacts In Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.googleusercontent.com/_6FOczBbkX4I/TdpkhNg1ukI/AAAAAAAAA0E/WWENrqIyE6Q/s72-c/GmailContacts.gif' height='72' width='72'/><thr:total>17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5867119484111402304</id><published>2010-02-27T00:55:00.017+05:30</published><updated>2011-12-12T21:35:40.785+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='FileUpload'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Resize Image Before/And Upload To Databse ASP.NET</title><summary type='text'>


In this example i am going to describe how to resize image in ASP.NET before/and upload to ms sql database using C# and Vb.NET.

For this i am using FileUpload control to upload the image in datbase after resizing.
I am also displaying the Image in Gridviw after uploading to database.

To know how to display images in gridview read Display Images In GridView From DataBase













ASPX </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5867119484111402304/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2010/02/resize-image-upload-ms-sql-database.html#comment-form' title='40 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5867119484111402304'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5867119484111402304'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2010/02/resize-image-upload-ms-sql-database.html' title='Resize Image Before/And Upload To Databse ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6FOczBbkX4I/S4gd64037II/AAAAAAAAAtg/Y3yhm7VFG5g/s72-c/ResizeImage.JPG' height='72' width='72'/><thr:total>40</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7705501886171449319</id><published>2010-01-21T13:44:00.002+05:30</published><updated>2010-01-21T14:20:40.896+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>Sql Server Shared Memory Provider error  233 No process is on the other end of the pipe</title><summary type='text'>Cannot connect to SQLEXPRESS.
A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233)

If you are getting this erro while connecting to sql express server then you need to make changes mentioned below.







1. Click</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7705501886171449319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2010/01/sql-server-shared-memory-provider-error.html#comment-form' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7705501886171449319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7705501886171449319'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2010/01/sql-server-shared-memory-provider-error.html' title='Sql Server Shared Memory Provider error  233 No process is on the other end of the pipe'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-6622721923550080120</id><published>2009-10-14T18:48:00.007+05:30</published><updated>2010-01-14T02:17:48.106+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='VB.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Send Email With Attachment in asp.net</title><summary type='text'>In this example i am going to describe how to send email with attachment in ASP.NET using fileUpload Control.
I am saving the uploaded file into memory stream rather then saving it on server.



And for this example i m using Gmail SMTP server to send mail, this code also works fine with any SMTP Server. 

For sending Email in ASP.NET , first of all we need to add Syatem.Net.Mail namespace in </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/6622721923550080120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/10/send-email-with-attachment-in-aspnet.html#comment-form' title='52 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6622721923550080120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6622721923550080120'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/10/send-email-with-attachment-in-aspnet.html' title='Send Email With Attachment in asp.net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_6FOczBbkX4I/StXMFGDxFUI/AAAAAAAAAtQ/zN3DpQVLI0Y/s72-c/SendEmailWithAttachment.JPG' height='72' width='72'/><thr:total>52</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2878620642317239384</id><published>2009-09-12T22:13:00.010+05:30</published><updated>2011-12-19T19:51:17.461+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>ASP.NET Open PopUp Window Update Refresh Values</title><summary type='text'>In this example i am going to describe how to open popup window from aspx page with values from parent page, and update or refresh values in parent window from child or popup window using javascript and ClientScript.RegisterStartupScript method in ASP.NET 

I have added to labels in Default.aspx page and one button to open popup window.

I've also added a PopUp.aspx page which is having two </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2878620642317239384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/09/popup-update-refresh-parent-child.html#comment-form' title='26 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2878620642317239384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2878620642317239384'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/09/popup-update-refresh-parent-child.html' title='ASP.NET Open PopUp Window Update Refresh Values'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i543.photobucket.com/albums/gg462/amitjain/csharpBlog/th_PopUpWindow.gif' height='72' width='72'/><thr:total>26</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7483776194534674020</id><published>2009-09-08T19:42:00.008+05:30</published><updated>2011-04-29T01:09:43.540+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='AutoComplete Extender'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>AutoCompleteExtender TextBox CompletionList Width  Ajax ASP.NET</title><summary type='text'>In this example i am going to describe how to set Width of Completion List in Ajax AutoComplete Extender TextBox.
The default behavior of completion list takes width equal to the width of textbox. we can change this behavior by applying some CSS style to set the width we want. default width is as shown below in the Image.

To read how to implement AutoComplete extender TextBox in GridView , go </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7483776194534674020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/09/ajax-autocompleteextender-textbox-width.html#comment-form' title='28 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7483776194534674020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7483776194534674020'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/09/ajax-autocompleteextender-textbox-width.html' title='AutoCompleteExtender TextBox CompletionList Width  Ajax ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6FOczBbkX4I/SqZn8UjthxI/AAAAAAAAAs4/fHLuU4VbCuI/s72-c/autocompletetextbox.JPG' height='72' width='72'/><thr:total>28</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-4524444853128247545</id><published>2009-09-07T19:03:00.010+05:30</published><updated>2011-01-13T19:00:18.402+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Session'/><title type='text'>Detect Page Refresh In ASP.NET</title><summary type='text'>If you have created a aspx page using C# and ASP.NET and have put a button on it. And in the Click event of this button if you are inserting some data in database , after click if user refresh the page than click event gets fired again resulting data insertion to database again, to stop events on the page getting fired on browser refresh we need to write bit of code to avoid it

In this example </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/4524444853128247545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/09/detect-page-refresh-in-aspnet.html#comment-form' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4524444853128247545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4524444853128247545'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/09/detect-page-refresh-in-aspnet.html' title='Detect Page Refresh In ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6FOczBbkX4I/STQSiL_5cbI/AAAAAAAAANk/NxJz3qIi1j0/s72-c/download.jpg' height='72' width='72'/><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-4215780377071018221</id><published>2009-09-01T11:13:00.013+05:30</published><updated>2009-09-07T14:44:03.625+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='QueryString'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Pass Send GridView Row Value/Data Using Hyperlink in ASP.NET</title><summary type='text'>In this example i am going to describe how to pass transfer or send GridView data or values from GridView row to Other asp.net page using hyperlink in GridView.

I've put a hyperlink column in gridview to pass values through querystring, and using request.querystring on the second page to retrieve values.

You would also like to read 
LinkButton in GridView and QueryString in ASP.NET to pass data</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/4215780377071018221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/09/pass-send-gridview-row-data-otherpage.html#comment-form' title='28 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4215780377071018221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4215780377071018221'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/09/pass-send-gridview-row-data-otherpage.html' title='Pass Send GridView Row Value/Data Using Hyperlink in ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i543.photobucket.com/albums/gg462/amitjain/asp/th_PassGridData.gif' height='72' width='72'/><thr:total>28</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1517193310947110494</id><published>2009-08-29T15:28:00.005+05:30</published><updated>2009-09-03T10:39:55.509+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='ItemTemplate'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>NULL In GridView EVAL Calling Serverside Method In ItemTemplate</title><summary type='text'>In this example i am going to describe how to handle NULL values from DataBase in Eval method of GridView ItemTemplate or How to call Server side method written in code behind in ItemTemplate of GridView.


My Table in database look like as shown in image below, some columns contains NULL values and i'll be showing "No Records Found" instead of NULL values in GridView.

To achieve this i've </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/1517193310947110494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/08/handle-gridview-eval-null-itemtemplate.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1517193310947110494'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1517193310947110494'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/08/handle-gridview-eval-null-itemtemplate.html' title='NULL In GridView EVAL Calling Serverside Method In ItemTemplate'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6FOczBbkX4I/Spj_vBioGuI/AAAAAAAAAsg/YQ_GgkMkvgM/s72-c/1.JPG' height='72' width='72'/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1601887080936955488</id><published>2009-08-27T00:22:00.006+05:30</published><updated>2012-01-18T17:00:36.236+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Send Email Using Gmail in ASP.NET</title><summary type='text'>If you want to send email using your Gmail account or using Gmail's smtp server in ASP.NET application or if you don't have a working smtp server to send mails using your ASP.NET application or aspx page than sending e-mail using Gmail is best option.

you need to write code like this 

First of all add below mentioned namespace in code behind of aspx page from which you want to send the mail.
</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/1601887080936955488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/08/send-email-using-gmail-in-aspnet.html#comment-form' title='71 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1601887080936955488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1601887080936955488'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/08/send-email-using-gmail-in-aspnet.html' title='Send Email Using Gmail in ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>71</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-8676758237721777051</id><published>2009-08-26T11:08:00.011+05:30</published><updated>2009-08-26T19:00:26.349+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DropDownList'/><category scheme='http://www.blogger.com/atom/ns#' term='FindControl'/><category scheme='http://www.blogger.com/atom/ns#' term='ItemTemplate'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>RadioButtonList DropDownList In GridView Edit Mode In ASP.NET</title><summary type='text'>In this example i am going to describe how to implement RadioButtonList and DropDOwnList in Edit mode of GridVIew using EditItemTemaplate in ASP.NET C# and VB.NET.

RadioButton and DropDOwnList are selected in edit mode based on value saved in DataBase



HTML markup of aspx page is mentioned below 
&lt;asp:GridView ID="GridView1" runat="server" DataKeyNames="ID" 
              AutoGenerateColumns="</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/8676758237721777051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/08/radiobuttonlist-dropdown-gridview-edit.html#comment-form' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8676758237721777051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8676758237721777051'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/08/radiobuttonlist-dropdown-gridview-edit.html' title='RadioButtonList DropDownList In GridView Edit Mode In ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i543.photobucket.com/albums/gg462/amitjain/csharpBlog/th_RadioBUttonListInGrid.gif' height='72' width='72'/><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7425085184690442215</id><published>2009-08-19T00:44:00.010+05:30</published><updated>2009-08-27T10:33:13.153+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Cross Page Posting In ASP.NET Or Cross Page Postback</title><summary type='text'>In this example i am going to describe Cross Page Posting or postback in ASP.NET 2.0 / 3.5 using C# and VB.NET.

Cross Page posting or cross page postback is used to submit a form on one page (say default.aspx) and retrieve values of controls of this page on another page (say Default2.aspx)

There are two ways we can use cross page postsbacks in ASP.NET 

1st method  
In this i've created a </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7425085184690442215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/08/cross-page-posting-in-aspnet.html#comment-form' title='22 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7425085184690442215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7425085184690442215'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/08/cross-page-posting-in-aspnet.html' title='Cross Page Posting In ASP.NET Or Cross Page Postback'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>22</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3519216300533123874</id><published>2009-08-11T00:35:00.014+05:30</published><updated>2011-10-20T19:10:18.540+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><category scheme='http://www.blogger.com/atom/ns#' term='EditItemTemplate'/><title type='text'>Check All Checkbox In GridView To Bulk Edit Or Update ASP.NET</title><summary type='text'>
Check All Checkbox In GridView To Bulk Edit Or Update in ASP.NET with C# and VB.NET.
In this example i am going to describe how to implement CheckAll CheckBox in GridView to check all the rows in gridView.

For this i have put a checkBox in header Template of gridview which on checking will check all the rows in gridview using server side code.



Html Source of gridView 
&lt;asp:GridView ID="</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3519216300533123874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/08/checkall-checkbox-gridview-aspnet.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3519216300533123874'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3519216300533123874'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/08/checkall-checkbox-gridview-aspnet.html' title='Check All Checkbox In GridView To Bulk Edit Or Update ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-xuDWPnOdjK4/TqAkYT81WNI/AAAAAAAABEE/b_NAv1yQmBY/s72-c/GridVIewCheckAllCheckBox.png' height='72' width='72'/><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-6269622746250991948</id><published>2009-07-31T22:11:00.017+05:30</published><updated>2009-08-01T15:05:03.763+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Merge GridView Cells Or Columns in Row ASP.NET C# VB.NET</title><summary type='text'>In this example i am going to describe how to merge GridView cells or Columns in gridview rows containing same data or content using C# and VB.NET in ASP.NET 

For this i m using DataBound Event of gridview, counting total rows and then checking each cells value against value of same cell in previous row and then setting the RowSpan of cells.


For this i have created a table containing Counties </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/6269622746250991948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/merge-gridview-cells-columns-aspnet.html#comment-form' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6269622746250991948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6269622746250991948'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/merge-gridview-cells-columns-aspnet.html' title='Merge GridView Cells Or Columns in Row ASP.NET C# VB.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6FOczBbkX4I/SnQD1O0wsNI/AAAAAAAAAsA/ReVRQDKM32k/s72-c/1.JPG' height='72' width='72'/><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-385035213042077455</id><published>2009-07-23T21:58:00.006+05:30</published><updated>2011-09-15T19:23:03.098+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Reports'/><title type='text'>SubReports in Crystal Reports SubReport</title><summary type='text'>In this example i am going to describe how to create SubReports in Crystal Reports or Crystal Reports SubReport in ASP.NET.

For this i have used two tables from MS SQL database named Employees and Projects.
Main Crystal Report is fetching data from both the tables and is grouped by Project Name

SubReport is used to display information about respective project and fetching data from Projects </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/385035213042077455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/subreports-in-crystal-reports-in-aspnet.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/385035213042077455'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/385035213042077455'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/subreports-in-crystal-reports-in-aspnet.html' title='SubReports in Crystal Reports SubReport'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i543.photobucket.com/albums/gg462/amitjain/csharpBlog/th_21.gif' height='72' width='72'/><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-8911451725555153350</id><published>2009-07-23T00:28:00.015+05:30</published><updated>2011-10-18T18:52:28.836+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>Combine Multiple Columns And Records In MSSQL</title><summary type='text'>Combine Multiple Columns And Records Into one column in MSSQL Server

In this example i am going to describe how to combine multiple columns and records in one column in MS SQL. 

Here is the scenario 

I have a table having Employees names and their respective Department names, 
now i want to show Employees names separated by comma into one column and respective Department name in another column</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/8911451725555153350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/mssql-combine-columns-comma-separated.html#comment-form' title='18 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8911451725555153350'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/8911451725555153350'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/mssql-combine-columns-comma-separated.html' title='Combine Multiple Columns And Records In MSSQL'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6FOczBbkX4I/SmdikTWRmAI/AAAAAAAAAoM/BBa6IVc-QW4/s72-c/1.JPG' height='72' width='72'/><thr:total>18</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-4161441072642839738</id><published>2009-07-21T10:32:00.008+05:30</published><updated>2009-07-26T01:57:29.808+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ItemTemplate'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Running Total In Gridview Footer in ASP.NET C# VB.NET</title><summary type='text'>In this example i am going to demonstrate how to display running total in footer row or footer template of GridView in ASP.NET using C# and VB.NET. This method works with paging enabled gridview as well.


For demo purpose gridview is populated using sqldatasource having table with columns ID ,Name,Amount

I m showing total of amount column is gridview footer. for this we need to sum the the </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/4161441072642839738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/display-total-in-gridview-footer.html#comment-form' title='23 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4161441072642839738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4161441072642839738'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/display-total-in-gridview-footer.html' title='Running Total In Gridview Footer in ASP.NET C# VB.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6FOczBbkX4I/SmVJv4HxqgI/AAAAAAAAAoE/6IeATis2pzU/s72-c/TotalInGridViewFooter.gif' height='72' width='72'/><thr:total>23</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1158048183248133346</id><published>2009-07-14T23:56:00.018+05:30</published><updated>2011-09-22T19:27:14.239+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows Froms'/><category scheme='http://www.blogger.com/atom/ns#' term='WinForms'/><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Reports'/><title type='text'>Crystal Reports in Winforms Windows Forms with Parameters</title><summary type='text'>In this example i am explaining how to create crystal reports in winforms or windows forms windows application with parameters from user to filter report using C#.NET and VB.NET 

For this i have created two tables in database named Employees and Projects and fetching data from both tables

I've grouped results by Department name using group expert in crystal reports and put a dropdown on the </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/1158048183248133346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/crystal-reports-in-winforms-parameter.html#comment-form' title='19 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1158048183248133346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/1158048183248133346'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/crystal-reports-in-winforms-parameter.html' title='Crystal Reports in Winforms Windows Forms with Parameters'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i543.photobucket.com/albums/gg462/amitjain/csharpBlog/th_demo.gif' height='72' width='72'/><thr:total>19</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-509773940143873267</id><published>2009-07-13T19:30:00.019+05:30</published><updated>2011-10-13T11:00:26.270+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>Scrollable GridView With Fixed Headers Asp.Net</title><summary type='text'>Scrollable gridview with fixed headers in asp.net 2.0 and 3.5.

In this example i am going to show how to create scrollable GridView with fixed headers which don't get scrolled with records and stay on the top in asp.net using css, I've tested this code on IE7 and Firefox 2.0 , 3.5.


For this we need to add css to headers of gridview to keep them on the top.

First of all place a Panel on the </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/509773940143873267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/scrollable-gridview-fixed-headers-asp.html#comment-form' title='35 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/509773940143873267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/509773940143873267'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/scrollable-gridview-fixed-headers-asp.html' title='Scrollable GridView With Fixed Headers Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_6FOczBbkX4I/SltWEkfVdzI/AAAAAAAAAmU/rJmLsWC514Q/s72-c/Scroll.gif' height='72' width='72'/><thr:total>35</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5262088961722979375</id><published>2009-07-12T14:37:00.017+05:30</published><updated>2012-01-18T16:39:21.834+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='FileUpload'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>FileUpload Save Images In SqlServer Database in ASP.NET</title><summary type='text'>Upload Save or store image or images in ms sql server database using file upload control in asp.net.
In this example i am Uploading Images using FileUpload Control and saving or storing them in SQL Server database in ASP.NET with C# and VB.NET.


Database is having a table named Images with three columns.
1. ID Numeric Primary key with Identity Increment.
2. ImageName Varchar to store Name of </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5262088961722979375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/fileupload-control-save-images-database.html#comment-form' title='55 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5262088961722979375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5262088961722979375'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/fileupload-control-save-images-database.html' title='FileUpload Save Images In SqlServer Database in ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6FOczBbkX4I/SlmrMBaD3WI/AAAAAAAAAmM/_i8djT2k3ws/s72-c/1.JPG' height='72' width='72'/><thr:total>55</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2979599565774074538</id><published>2009-07-10T18:56:00.025+05:30</published><updated>2012-01-18T19:10:55.961+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Display Images In GridView From SqlServer DataBase Asp.Net</title><summary type='text'>In this example i am showing how to display or retrieve images in GridView from Ms Sql Server DataBase in ASP.NET using C#.NET and VB.NET or showing images stored or saved in SQL Server database in gridview,For this i've already stored images in Database.

Table schema is shown below, ID column is primary key with Identity increment,datatype of Image column is Image.










To know how to save</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2979599565774074538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/display-images-gridview-from-database.html#comment-form' title='111 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2979599565774074538'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2979599565774074538'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/display-images-gridview-from-database.html' title='Display Images In GridView From SqlServer DataBase Asp.Net'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6FOczBbkX4I/SljmX-WRUkI/AAAAAAAAAl8/smVN2WsOfnM/s72-c/1.JPG' height='72' width='72'/><thr:total>111</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-4991287677642826164</id><published>2009-07-09T20:39:00.010+05:30</published><updated>2009-07-20T22:14:27.778+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>PageMethods is undefined ASP.NET AJAX</title><summary type='text'>Well If you are getting PageMethods undefined error while using AJAX in ASP.NET or while using a webservice than you need to check these things to resolve the issue 

1. PageMethods needs to be static 
[WebMethod]
public static int MethodName()
{
}

2. Enable pageMethods in scriptManager 

&lt;asp:ScriptManager ID="ScriptManager1" runat="server" 
                   EnablePageMethods="true"&gt;
&lt;/asp:</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/4991287677642826164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/pagemethods-is-undefined.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4991287677642826164'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/4991287677642826164'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/pagemethods-is-undefined.html' title='PageMethods is undefined ASP.NET AJAX'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3304641470364942633</id><published>2009-07-08T23:20:00.016+05:30</published><updated>2009-07-31T12:35:29.332+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Reports'/><title type='text'>Crystal reports in ASP.NET</title><summary type='text'>In this example i m going to describe how to create crystal reports in ASP.NET.

In this i am generating report by fetching data from two tables and grouping them based on Project Name. Database tables are just for demo purpose you can create your own tables with whatever schema you want 
Two tables are as shown below.


Create a new website and right click on solution explorer &gt; add new Item &gt; </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3304641470364942633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/creating-crystal-reports-in-aspnet.html#comment-form' title='62 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3304641470364942633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3304641470364942633'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/07/creating-crystal-reports-in-aspnet.html' title='Crystal reports in ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6FOczBbkX4I/SlV1UpEK-gI/AAAAAAAAAjM/JYNLf4qXrDU/s72-c/1.JPG' height='72' width='72'/><thr:total>62</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5530556646560248303</id><published>2009-06-29T11:40:00.012+05:30</published><updated>2009-06-29T19:41:23.943+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='ObjectDataSource'/><title type='text'>ASP.NET Images in Gridview/DataList using objectdatasource</title><summary type='text'>In this example i am going to explain how to display Images in GridView or DataList using ObjectDataSource.

For this first of all we need to create a Object to populate gridview or DataList.
Right click on solution explorer and add new class, name it whatever you want to.



In this class write a method to populate GridView, i'm creating a DataTable and adding some records. 

The C# code behind</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5530556646560248303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/images-in-gridview-objectdatasource.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5530556646560248303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5530556646560248303'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/images-in-gridview-objectdatasource.html' title='ASP.NET Images in Gridview/DataList using objectdatasource'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_6FOczBbkX4I/Skhc7AqKmnI/AAAAAAAAAiE/YZ9VZfaPkvM/s72-c/ImagesInGridView.JPG' height='72' width='72'/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3549354752511199797</id><published>2009-06-17T19:00:00.008+05:30</published><updated>2009-09-14T20:08:10.254+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Read Write Edit Word Document With FileStream StreamWriter ASP.NET</title><summary type='text'>In this article i am going to describe how to read and write to ms word file or document in ASP.NET using FileStream, StreamReader and StreamWriter.

For this i've added a textbox for input text to be written in word document and a button to write, same for reading text from word file.

The word file created is saved in a folder named document in root of application. which can be changed to </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3549354752511199797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/read-write-word-filestream-streamwriter.html#comment-form' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3549354752511199797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3549354752511199797'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/read-write-word-filestream-streamwriter.html' title='Read Write Edit Word Document With FileStream StreamWriter ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_6FOczBbkX4I/SjkOGiJoH6I/AAAAAAAAAh4/RPSx3TpkjHE/s72-c/ReadWriteWord.gif' height='72' width='72'/><thr:total>17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7516448804951817141</id><published>2009-06-12T14:45:00.004+05:30</published><updated>2011-12-31T16:31:20.695+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='MembershipProvider'/><category scheme='http://www.blogger.com/atom/ns#' term='Authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><title type='text'>ASP.NET Custom MemberShip Provider Database</title><summary type='text'>Creating or Using Custom MemberShip Provider Database in ASP.NET

If you want to use Custom or your own DataBase as membership Provider instead of ASPNETDB.MDF database provided by asp.net membership provider class, than follow the steps mentioned in this article.

In this example i m going to describe how to change and use custom Database with Login Control in ASP.NET.

First of all you need to </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7516448804951817141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/custom-membership-provider-database.html#comment-form' title='37 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7516448804951817141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7516448804951817141'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/custom-membership-provider-database.html' title='ASP.NET Custom MemberShip Provider Database'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6FOczBbkX4I/SjIYM5zgGII/AAAAAAAAAg4/_o0TbDCu61w/s72-c/1.JPG' height='72' width='72'/><thr:total>37</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7496919561786662186</id><published>2009-06-09T16:41:00.004+05:30</published><updated>2011-04-25T22:14:04.496+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='EditItemTemplate'/><category scheme='http://www.blogger.com/atom/ns#' term='ObjectDataSource'/><title type='text'>Insert Edit Update GridView with ObjectDataSource</title><summary type='text'>In this example i am going to describe how to edit and update GridView using ObjectDataSource
For this i've created a simple database with a table named Details having 3 columns ID,Name and Location.

Open Visual studio and create a new website. Now right click on solution explorer and select add new Item &gt; Sql Database &gt; name it DataBase.mdf

Create a table with columns i mentioned above in this</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7496919561786662186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/gridview-objectdatasource-insert-update.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7496919561786662186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7496919561786662186'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/gridview-objectdatasource-insert-update.html' title='Insert Edit Update GridView with ObjectDataSource'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_6FOczBbkX4I/Si46kUhHHYI/AAAAAAAAAfs/0FwSqcNDsjE/s72-c/1.JPG' height='72' width='72'/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7804012512219809095</id><published>2009-06-06T00:01:00.011+05:30</published><updated>2009-08-27T00:32:35.071+05:30</updated><title type='text'>Send Email using Gmail Or SMTP ASP.NET C# VB.NET</title><summary type='text'>If you want to send email using your Gmail account or using Gmail's smtp server in ASP.NET application or if you don't have a working smtp server to send mails using your ASP.NET application or aspx page than sending e-mail using Gmail is best option.

you need to write code like this 

First of all add below mentioned namespace in code behind of aspx page from which you want to send the mail.
</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7804012512219809095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/aspnet-send-email-using-gmail.html#comment-form' title='52 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7804012512219809095'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7804012512219809095'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/aspnet-send-email-using-gmail.html' title='Send Email using Gmail Or SMTP ASP.NET C# VB.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>52</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7242852042941149009</id><published>2009-06-05T00:02:00.006+05:30</published><updated>2011-11-03T19:06:46.733+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='TraceMobileNumber'/><title type='text'>Trace Mobile Number In India</title><summary type='text'>


Trace mobile number in india

Enter phone number in textbox and Use the trace button below to trace mobile phone number in india. 


You can also track operator name and Circle of mobile number.




ch_client = "jainamit";
ch_width = 500;
ch_height = 250;
ch_type = "mpu";
ch_sid = "Chitika Default";
ch_backfill = 1;
ch_color_site_link = "#560E00 ";
ch_color_title = "#560E00 ";
ch_color_border </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7242852042941149009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/trace-mobile-phone-number-in-india.html#comment-form' title='38 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7242852042941149009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7242852042941149009'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/06/trace-mobile-phone-number-in-india.html' title='Trace Mobile Number In India'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>38</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-9095624144686063133</id><published>2009-05-30T02:39:00.003+05:30</published><updated>2009-05-30T02:46:06.055+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Visual studio'/><title type='text'>Unable to debug The binding handle is invalid VS2005</title><summary type='text'>If you are trying to debug in Visual Studio 2005 and and not able to use breakpoints and getting unable to debug - the binding handle is invalid error in VS 2005 than follow these steps to fix this error.


Go control panel of your windows OS 

Double click on Administrative tools &gt; services 

Now in services window &gt; look for Terminal Services 

Right click on it ans select properties &gt; check </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/9095624144686063133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/unable-to-debug-binding-handle-invalid.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/9095624144686063133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/9095624144686063133'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/unable-to-debug-binding-handle-invalid.html' title='Unable to debug The binding handle is invalid VS2005'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5424446160434527819</id><published>2009-05-22T22:56:00.005+05:30</published><updated>2009-09-15T12:32:02.858+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DataList'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><title type='text'>AutoNumber Column or Auto Number in GridView or DataList ASP.NET</title><summary type='text'>Several times we need to display Auto Number or serial number for displaying records in gridview or other similar controls in ASp.NET.

We can add AutoNumber column by using Container.DataItemIndex property in html markup of the Gridview. 



Here's the sample html markup for the page 
&lt;title&gt;Auto Number Cloumn in GridView &lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id="form1" runat="server"&gt;
&lt;asp:GridView ID=</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5424446160434527819/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/add-autonumber-column-in-gridview-or.html#comment-form' title='17 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5424446160434527819'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5424446160434527819'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/add-autonumber-column-in-gridview-or.html' title='AutoNumber Column or Auto Number in GridView or DataList ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_6FOczBbkX4I/ShbyM5-Zl6I/AAAAAAAAAeQ/m4sQ1oZfYcg/s72-c/AutoNumberingInGridView.gif' height='72' width='72'/><thr:total>17</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5291987538933165210</id><published>2009-05-20T20:50:00.012+05:30</published><updated>2011-10-02T02:51:58.540+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='AJAX'/><category scheme='http://www.blogger.com/atom/ns#' term='AutoComplete Extender'/><title type='text'>AutocompleteExtender Textbox Loading Progress Image</title><summary type='text'>Add or show Animated Loading or progress GIF Image in Ajax AutoCompleteExtender textbox using asp.net 2.0 and 3.5. 

In this example i m going to describe how to add animated Progress Image inside Ajax Auto complete extender textbox to represent loading of data.

For achieving this functionality i am using two different approaches for different versions of AjaxControlToolkit.dll 



If you are </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/5291987538933165210/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/autocomplete-textbox-progress-image-gif.html#comment-form' title='16 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5291987538933165210'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/5291987538933165210'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/autocomplete-textbox-progress-image-gif.html' title='AutocompleteExtender Textbox Loading Progress Image'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_6FOczBbkX4I/ShfF1L_lSuI/AAAAAAAAAeo/Sx6YTmmQJU4/s72-c/ProgressImageInAutoCompleteTextBox.gif' height='72' width='72'/><thr:total>16</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3587374584362895115</id><published>2009-05-18T15:08:00.008+05:30</published><updated>2011-12-31T22:42:42.056+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Add Dynamic CheckBox Handle CheckedChanged Event ASP.NET</title><summary type='text'>Add Dynamic CheckBox And Handle CheckedChanged Event In ASP.NET
Several times we need to add dynamic controls in asp.net application using code behind.

In this post i am going to describe how to add dynamic CheckBox and assign CheckChanged event in asp.net using C# and VB.NET 


To add a checkbox when page is loaded we need to write this code in page_Load Event 

C# Code Behind
public partial </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/3587374584362895115/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/dynamic-checkbox-checkedchanged-event.html#comment-form' title='11 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3587374584362895115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/3587374584362895115'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/dynamic-checkbox-checkedchanged-event.html' title='Add Dynamic CheckBox Handle CheckedChanged Event ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7527115528039125975</id><published>2009-05-16T11:33:00.030+05:30</published><updated>2011-09-30T22:39:52.312+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='DataList'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='C#'/><title type='text'>Shopping Cart Example Code In ASP.NET GridView DataList</title><summary type='text'>Creating Shopping cart example source code using asp.net 2.0,3.5 with gridview and datalist C#.NET,VB.NET 
In this example i'm using GridView and DataList controls to create Products page and Product Details page in online shopping cart example 










First of all we need to create a ShoppingCart class, for this right click on solution explorer and add new class, name it ShoppingCart.cs
Write</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7527115528039125975/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/aspnet-creating-shopping-cart-example.html#comment-form' title='182 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7527115528039125975'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7527115528039125975'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/aspnet-creating-shopping-cart-example.html' title='Shopping Cart Example Code In ASP.NET GridView DataList'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.googleusercontent.com/_6FOczBbkX4I/TdpooXNAHQI/AAAAAAAAA00/uHcezXF_dXs/s72-c/ShoppingCart.gif' height='72' width='72'/><thr:total>182</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2730629361477640223</id><published>2009-05-13T19:33:00.013+05:30</published><updated>2011-04-25T22:14:04.498+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='DataKeyNames'/><category scheme='http://www.blogger.com/atom/ns#' term='FindControl'/><category scheme='http://www.blogger.com/atom/ns#' term='ItemTemplate'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='EditItemTemplate'/><title type='text'>Insert Update Edit Delete record in GridView</title><summary type='text'>In this example i am going to describe how to Insert record or edit or delete record in GridView using SqlDataSource.

For inserting record, i've put textboxes in footer row of GridView using ItemTemplate and FooterTemaplete.

Go to design view of aspx page and drag a GridView control from toolbox, click on smart tag of GridView and choose new datasource 
Select Database and click Ok
 In next </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2730629361477640223/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/gridview-sqldatasource-insert-edit.html#comment-form' title='58 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2730629361477640223'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2730629361477640223'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/gridview-sqldatasource-insert-edit.html' title='Insert Update Edit Delete record in GridView'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6FOczBbkX4I/SgsYR8u_qcI/AAAAAAAAAcI/ATqRxpyBaCI/s72-c/0.JPG' height='72' width='72'/><thr:total>58</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2665449164171691895</id><published>2009-05-05T20:51:00.025+05:30</published><updated>2011-05-23T19:36:48.693+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='FindControl'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='EditItemTemplate'/><title type='text'>Edit Update Multiple Records/Rows In Gridview With Checkbox ASP.NET</title><summary type='text'>In this example i am going to explain 2 different approaches to Edit update and delete multiple records or rows in Gridiew with checkboxes to select rows to be edited with delete confirmation using JavaScript.

In my previous post i explained how to Delete multiple rows in Gridview with checkbox and delete confirmation Javascript









First Method 

In this GridView is getting populated from </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2665449164171691895/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/edit-multiple-records-gridview-checkbox.html#comment-form' title='52 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2665449164171691895'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2665449164171691895'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/05/edit-multiple-records-gridview-checkbox.html' title='Edit Update Multiple Records/Rows In Gridview With Checkbox ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh4.googleusercontent.com/_6FOczBbkX4I/TdppkZNMmcI/AAAAAAAAA1A/BFDVh-phjVg/s72-c/GridVIewMultipleEditing.gif' height='72' width='72'/><thr:total>52</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2723481059659502057</id><published>2009-04-30T22:15:00.018+05:30</published><updated>2011-04-25T22:14:04.503+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='JavaScript'/><category scheme='http://www.blogger.com/atom/ns#' term='FindControl'/><category scheme='http://www.blogger.com/atom/ns#' term='GridView'/><category scheme='http://www.blogger.com/atom/ns#' term='EditItemTemplate'/><title type='text'>Delete Multiple Rows Records Gridview CheckBox Confirmation</title><summary type='text'>Several times while developing web applications we need to implement functionality to delete bulk / multiple rows or records in Gridview using checkbox to select rows / records to be deleted with confirmation dialog box. 

In this example i am showing how to achieve it. 



You can also read how to Edit or update multiple records/rows in gridview with checkbox using C#
I've put a Delete Button in</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/2723481059659502057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/delete-multiple-rows-gridview-checkbox.html#comment-form' title='29 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2723481059659502057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/2723481059659502057'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/delete-multiple-rows-gridview-checkbox.html' title='Delete Multiple Rows Records Gridview CheckBox Confirmation'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://i543.photobucket.com/albums/gg462/amitjain/csharpBlog/th_GridViewMultipleDelete.gif' height='72' width='72'/><thr:total>29</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7952886470301649443</id><published>2009-04-25T20:50:00.015+05:30</published><updated>2011-12-12T21:35:07.449+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><category scheme='http://www.blogger.com/atom/ns#' term='Excel'/><title type='text'>Export Import Excel Data into Sql Server Using SqlBulkCopy-ASP.NET</title><summary type='text'>In this example i am going to describe how to Import or insert data into Sql server from Excel spreadsheet using sqlbulkcopy method.

First of all create a Excel workbook as shown in image below and insert some data into it.


Create a table in SQL database as shown in image 


Now write this code to insert data into SQL table
public partial class _Default : System.Web.UI.Page
{
string </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/7952886470301649443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/export-excel-data-sqlbulkcopy-aspnet.html#comment-form' title='39 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7952886470301649443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/7952886470301649443'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/export-excel-data-sqlbulkcopy-aspnet.html' title='Export Import Excel Data into Sql Server Using SqlBulkCopy-ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_6FOczBbkX4I/SfQWI5j0mHI/AAAAAAAAAbg/AE8qH2OFqwg/s72-c/excel.JPG' height='72' width='72'/><thr:total>39</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-6031984601059391835</id><published>2009-04-22T10:35:00.010+05:30</published><updated>2011-10-22T16:48:49.124+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='TraceMobileNumber'/><title type='text'>Find Track mobile phone number location in india</title><summary type='text'>If you want to find or trace mobile phone number location in India operator or circle name than simple go to link mentioned below 

Click this link to trace mobile phone location and operator in India

Just enter 10 digits phone number in the search box and click on Trace


Have fun



Related posts:
Track Mobile Phone number location and operator in India

</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/6031984601059391835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/trace-mobile-phone-location-operator.html#comment-form' title='10 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6031984601059391835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6031984601059391835'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/trace-mobile-phone-location-operator.html' title='Find Track mobile phone number location in india'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-714856570771410614</id><published>2009-04-21T21:40:00.042+05:30</published><updated>2011-11-03T19:07:53.628+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='TraceMobileNumber'/><title type='text'>Trace Mobile Number Location Operator in India</title><summary type='text'>

Trace Mobile Number in India with Location and Operator 


Several times we feel the need to trace or track any mobile phone number , it's location and Operator name , for various reasons.

If you are one of them then this will definitely help you to find any mobile phone number location and operator in India








Enter mobile phone number in the search box and click on Trace.


Enter 10 </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/714856570771410614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/trace-mobile-location-operator-number.html#comment-form' title='272 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/714856570771410614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/714856570771410614'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/trace-mobile-location-operator-number.html' title='Trace Mobile Number Location Operator in India'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>272</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-134533465685299141</id><published>2009-04-17T14:17:00.010+05:30</published><updated>2011-08-29T14:20:04.566+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='Forms Authentication'/><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Session'/><title type='text'>ASP.NET Bypass Forms Authentication Or Skip Authorization</title><summary type='text'>In my previous articles i explained how to use forms authentication in asp.net
1. C# Forms Authentication using ticket and managing user roles in asp.net

2. ASP.NET 2.0 - Forms Authentication with C# and managing folder lavel access with multiple web.config files

And i also explained about how to validate use across pages using session and redirect to login page if user is not logged in

User </summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/134533465685299141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/aspnet-bypass-forms-authentication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/134533465685299141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/134533465685299141'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/aspnet-bypass-forms-authentication.html' title='ASP.NET Bypass Forms Authentication Or Skip Authorization'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6FOczBbkX4I/SehVT9Jyr5I/AAAAAAAAAbY/lP2lrmwW6lg/s72-c/download.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-6843914454101735941</id><published>2009-04-17T00:49:00.006+05:30</published><updated>2009-07-27T16:54:41.258+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>The backup set holds a backup of a database other than the existing database-Sql Server Error 3154</title><summary type='text'>If you are getting Error 3154 or The backup set holds a backup of a database other than the existing database error while restoring backup of sql server from one system to another, 

Than you need use following command to get rid of this error and restore the Sql server database 

RESTORE DATABASE DataBaseName
FROM DISK = 'C:\BackupFileName.bak'
WITH REPLACE

This will hopefully fix the error and</summary><link rel='replies' type='application/atom+xml' href='http://www.csharpaspnetarticles.com/feeds/6843914454101735941/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/backupset-holds-backup-ofdatabase-other.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6843914454101735941'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default/6843914454101735941'/><link rel='alternate' type='text/html' href='http://www.csharpaspnetarticles.com/2009/04/backupset-holds-backup-ofdatabase-other.html' title='The backup set holds a backup of a database other than the existing database-Sql Server Error 3154'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://4.bp.blogspot.com/-OGfHF6xTV-g/TWO5Hk0ku6I/AAAAAAAAAt8/uTQyrSIpgnE/s220/amit2.jpg'/></author><thr:total>4</thr:total></entry></feed>
