<?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'><id>tag:blogger.com,1999:blog-3826986716234513713</id><updated>2009-11-09T11:27:02.119+05:30</updated><title type='text'>C#.NET ASP.NET Articles VB.NET CSHARP code Examples samples tutorials</title><subtitle type='html'>ASP.NET articles,C#.NET,VB.NET tutorials and Examples,AJAX, SQL Server, GridView Articles and code examples</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://csharpdotnetfreak.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3826986716234513713/posts/default'/><link rel='alternate' type='text/html' href='http://csharpdotnetfreak.blogspot.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=26&amp;max-results=25'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>82</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-6622721923550080120</id><published>2009-10-14T18:48:00.005+05:30</published><updated>2009-10-24T11:29:43.624+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://csharpdotnetfreak.blogspot.com/feeds/6622721923550080120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/10/send-email-with-attachment-in-aspnet.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2878620642317239384</id><published>2009-09-12T22:13:00.009+05:30</published><updated>2009-09-19T01:36:11.852+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'>Open PopUp Window Update Refresh Parent  Values From Child ASP.NET</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://csharpdotnetfreak.blogspot.com/feeds/2878620642317239384/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/09/popup-update-refresh-parent-child.html#comment-form' title='0 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://csharpdotnetfreak.blogspot.com/2009/09/popup-update-refresh-parent-child.html' title='Open PopUp Window Update Refresh Parent  Values From Child ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_6FOczBbkX4I/SqvC-r5xvlI/AAAAAAAAAtI/FHRYJW_ma50/s72-c/PopUpWindow.gif' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7483776194534674020</id><published>2009-09-08T19:42:00.007+05:30</published><updated>2009-09-08T20:30:38.039+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='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://csharpdotnetfreak.blogspot.com/feeds/7483776194534674020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/09/ajax-autocompleteextender-textbox-width.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-4524444853128247545</id><published>2009-09-07T19:03:00.000+05:30</published><updated>2009-09-07T19:03:12.987+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://csharpdotnetfreak.blogspot.com/feeds/4524444853128247545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/09/detect-page-refresh-in-aspnet.html#comment-form' title='7 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>7</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://csharpdotnetfreak.blogspot.com/feeds/4215780377071018221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/09/pass-send-gridview-row-data-otherpage.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</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://csharpdotnetfreak.blogspot.com/feeds/1517193310947110494/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/08/handle-gridview-eval-null-itemtemplate.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1601887080936955488</id><published>2009-08-27T00:22:00.005+05:30</published><updated>2009-09-03T10:18:50.018+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://csharpdotnetfreak.blogspot.com/feeds/1601887080936955488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/08/send-email-using-gmail-in-aspnet.html#comment-form' title='16 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>16</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://csharpdotnetfreak.blogspot.com/feeds/8676758237721777051/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/08/radiobuttonlist-dropdown-gridview-edit.html#comment-form' title='6 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>6</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://csharpdotnetfreak.blogspot.com/feeds/7425085184690442215/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/08/cross-page-posting-in-aspnet.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-3519216300533123874</id><published>2009-08-11T00:35:00.010+05:30</published><updated>2009-08-11T01:15:45.152+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'>Check All Checkbox In GridView To Bulk Edit Or Update ASP.NET C# VB.NET</title><summary type='text'>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="GridView1" runat="server" 
              DataSourceID="SqlDataSource1" 
              </summary><link rel='replies' type='application/atom+xml' href='http://csharpdotnetfreak.blogspot.com/feeds/3519216300533123874/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/08/checkall-checkbox-gridview-aspnet.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.com/2009/08/checkall-checkbox-gridview-aspnet.html' title='Check All Checkbox In GridView To Bulk Edit Or Update ASP.NET C# VB.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_6FOczBbkX4I/SoBxHFDyxBI/AAAAAAAAAsI/hfgtiefVkEM/s72-c/GridVIewCheckAll.JPG' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</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://csharpdotnetfreak.blogspot.com/feeds/6269622746250991948/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/07/merge-gridview-cells-columns-aspnet.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-385035213042077455</id><published>2009-07-23T21:58:00.005+05:30</published><updated>2009-07-24T22:36:30.085+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Crystal Reports'/><title type='text'>SubReports in Crystal Reports in ASP.NET</title><summary type='text'>In this example i am going to describe how to create SubReports in Crystal Reports 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 Table.

Schema for both the </summary><link rel='replies' type='application/atom+xml' href='http://csharpdotnetfreak.blogspot.com/feeds/385035213042077455/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/07/subreports-in-crystal-reports-in-aspnet.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.com/2009/07/subreports-in-crystal-reports-in-aspnet.html' title='SubReports in Crystal Reports in ASP.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6FOczBbkX4I/SmnacbCzDbI/AAAAAAAAAos/q6hbUivyKd8/s72-c/db1.JPG' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-8911451725555153350</id><published>2009-07-23T00:28:00.010+05:30</published><updated>2009-07-27T16:27:13.418+05:30</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sql Server'/><title type='text'>Combine Multiple Records Comma Separated In One Column MSSQL</title><summary type='text'>In this example i am going to describe how to combine multiple records in a column in MS SQL into one record comma separated. 

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.

My table schema is shown in the image below


And </summary><link rel='replies' type='application/atom+xml' href='http://csharpdotnetfreak.blogspot.com/feeds/8911451725555153350/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/07/mssql-combine-columns-comma-separated.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.com/2009/07/mssql-combine-columns-comma-separated.html' title='Combine Multiple Records Comma Separated In One Column MSSQL'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>1</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://csharpdotnetfreak.blogspot.com/feeds/4161441072642839738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/07/display-total-in-gridview-footer.html#comment-form' title='3 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-1158048183248133346</id><published>2009-07-14T23:56:00.017+05:30</published><updated>2009-07-27T16:21:20.425+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 C#.NET VB.NET</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://csharpdotnetfreak.blogspot.com/feeds/1158048183248133346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/07/crystal-reports-in-winforms-parameter.html#comment-form' title='7 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://csharpdotnetfreak.blogspot.com/2009/07/crystal-reports-in-winforms-parameter.html' title='Crystal Reports in Winforms Windows Forms with Parameters C#.NET VB.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_6FOczBbkX4I/Sl7JiKZ7sAI/AAAAAAAAAms/fRxlj76weVI/s72-c/1.JPG' height='72' width='72'/><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-509773940143873267</id><published>2009-07-13T19:30:00.016+05:30</published><updated>2009-09-08T21:19:45.650+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 in asp.net C# vb.net</title><summary type='text'>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 aspx page from thetoolbox. Set height to 200px and width to 200px
</summary><link rel='replies' type='application/atom+xml' href='http://csharpdotnetfreak.blogspot.com/feeds/509773940143873267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/07/scrollable-gridview-fixed-headers-asp.html#comment-form' title='7 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://csharpdotnetfreak.blogspot.com/2009/07/scrollable-gridview-fixed-headers-asp.html' title='Scrollable GridView with fixed headers 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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-5262088961722979375</id><published>2009-07-12T14:37:00.016+05:30</published><updated>2009-07-20T12:46:39.391+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'/><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 Database in ASP.NET C# VB.NET</title><summary type='text'>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 Image.
3. Image Image to store image in binary format.  

After uploading and saving images in database,</summary><link rel='replies' type='application/atom+xml' href='http://csharpdotnetfreak.blogspot.com/feeds/5262088961722979375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/07/fileupload-control-save-images-database.html#comment-form' title='6 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://csharpdotnetfreak.blogspot.com/2009/07/fileupload-control-save-images-database.html' title='FileUpload Save Images in Database 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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-2979599565774074538</id><published>2009-07-10T18:56:00.023+05:30</published><updated>2009-08-25T00:52:28.517+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 DataBase C# VB.NET</title><summary type='text'>In this example i am showing how to display images in GridView from DataBase in ASP.NET using C#.NET and VB.NET or showing images stored 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 or store Images in DataBase visit </summary><link rel='replies' type='application/atom+xml' href='http://csharpdotnetfreak.blogspot.com/feeds/2979599565774074538/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/07/display-images-gridview-from-database.html#comment-form' title='35 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://csharpdotnetfreak.blogspot.com/2009/07/display-images-gridview-from-database.html' title='Display Images In GridView From DataBase C# VB.NET'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>35</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://csharpdotnetfreak.blogspot.com/feeds/4991287677642826164/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/07/pagemethods-is-undefined.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</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://csharpdotnetfreak.blogspot.com/feeds/3304641470364942633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/07/creating-crystal-reports-in-aspnet.html#comment-form' title='7 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>7</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://csharpdotnetfreak.blogspot.com/feeds/5530556646560248303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/06/images-in-gridview-objectdatasource.html#comment-form' title='3 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>3</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://csharpdotnetfreak.blogspot.com/feeds/3549354752511199797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/06/read-write-word-filestream-streamwriter.html#comment-form' title='9 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3826986716234513713.post-7516448804951817141</id><published>2009-06-12T14:45:00.003+05:30</published><updated>2009-06-12T14:47:51.981+05:30</updated><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 Login Control with custom membership provider database</title><summary type='text'>If you want to use Login Control of ASP.NET with Custom DataBase and custom membership Provider 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 create DataBase schema for membership.
For this create a DataBase in sql server with any name you want.
Now open Visual </summary><link rel='replies' type='application/atom+xml' href='http://csharpdotnetfreak.blogspot.com/feeds/7516448804951817141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/06/custom-membership-provider-database.html#comment-form' title='8 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://csharpdotnetfreak.blogspot.com/2009/06/custom-membership-provider-database.html' title='ASP.NET Login Control with custom membership provider database'/><author><name>amiT jaiN</name><uri>http://www.blogger.com/profile/10629107305544485629</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>8</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>2009-08-25T12:15:01.153+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'>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://csharpdotnetfreak.blogspot.com/feeds/7496919561786662186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/06/gridview-objectdatasource-insert-update.html#comment-form' title='1 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></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 xmlns:thr='http://purl.org/syndication/thread/1.0'>1</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://csharpdotnetfreak.blogspot.com/feeds/7804012512219809095/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://csharpdotnetfreak.blogspot.com/2009/06/aspnet-send-email-using-gmail.html#comment-form' title='36 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://csharpdotnetfreak.blogspot.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:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='12396541282547113451'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>36</thr:total></entry></feed>