<?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-4287798456033767607</id><updated>2011-10-20T05:19:12.496-07:00</updated><category term='How to add a page in Dotnetnuke portal'/><category term='Java Script in ASP.Net RadioButtonList'/><category term='query Builder'/><category term='Gettting Column Value Using Checkbox in GridView Autopostback = true'/><category term='Databound checkboxlist aggravation'/><category term='stored procedure'/><category term='How to add FCK editor in ASP.NET Application'/><category term='Templates Available for the controls'/><category term='CheckBox in gridview with autopostback true'/><category term='Code to Send message on mobile in asp.net'/><category term='How to add a module in dotnetnuke'/><category term='DOTNETNUKE HELP'/><category term='ASP.NET BASIC'/><category term='Code to Send SMS on mobile in asp.net'/><category term='Sending SMS In ASP.NET'/><category term='Checkbox in a Gridview'/><category term='maintaining the tabindex on postback'/><category term='maintaining the tab order on page postback'/><category term='Controls in ASP.NET'/><category term='maintaining the tab Index on page postback'/><title type='text'>ASP.NET USING C# AND VB</title><subtitle type='html'>ASP.NET using C#,ASP.NET USING VB,TIPS AND TRICKS IN ASP.NET,JAVASCRIPT VALIDATION IN ASP.NET,Ajax</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>16</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-2725570046288802255</id><published>2008-08-11T00:31:00.001-07:00</published><updated>2009-06-20T10:53:17.147-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASP.NET BASIC'/><title type='text'>ASP.NET BASIC</title><content type='html'>&lt;h3 class="post-title entry-title"&gt; &lt;a href="http://dotnetfaqcurry.blogspot.com/2008/08/aspnet-basic_09.html"&gt;&lt;br /&gt;&lt;/a&gt; &lt;/h3&gt;   &lt;a style="color: rgb(153, 0, 0);" href="http://dotnetfaqcurry.blogspot.com/"&gt;&lt;span style="font-weight: bold;"&gt;ASP.NET&lt;/span&gt;&lt;/a&gt; is a web application framework developed and marketed by &lt;span style="color: rgb(0, 204, 204);"&gt;Microsoft&lt;/span&gt;, that programmers can use to build dynamic web sites, web applications and web services. It was first released in January 2002 with version 1.0 of the &lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;.NET&lt;/a&gt; Framework, and is the successor to Microsoft's Active Server (ASP) technology. &lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;ASP.NET&lt;/a&gt; is built on the Common Language Runtime (CLR), allowing programmers to write&lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt; ASP.NET&lt;/a&gt; code using any supported .NET language.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;FIRSTLY I WOULD LIKE TO MENTION THE&lt;br /&gt;&lt;/h3&gt;&lt;span id="intelliTXT"&gt;&lt;h3&gt;Advantages of ASP.NET&lt;br /&gt;&lt;/h3&gt; &lt;ol&gt;&lt;li&gt;&lt;b&gt;Separation of Code from HTML&lt;/b&gt;&lt;br /&gt;To make a clean sweep, with &lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;ASP.NET&lt;/a&gt; you have the ability to completely separate layout and business logic. This makes it much easier for teams of programmers and designers to collaborate efficiently. This makes it much easier for teams of programmers and designers to collaborate efficiently.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Support for compiled languages&lt;/b&gt;&lt;br /&gt;developer can use VB.NET and access features such as strong typing and object-oriented programming. Using compiled languages also means that &lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;ASP.NET&lt;/a&gt; pages do not suffer the performance penalties associated with interpreted code. &lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;ASP.NET&lt;/a&gt; pages are precompiled to byte-code and Just In Time (JIT) compiled when first requested. Subsequent requests are directed to the fully compiled code, which is cached until the source changes.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Use services provided by the .NET Framework&lt;/b&gt;&lt;br /&gt;The .NET Framework provides class libraries that can be used by your application. Some of the key classes help you with input/output, access to operating system services, data access, or even debugging. We will go into more detail on some of them in this module.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Graphical Development Environment&lt;/b&gt;&lt;br /&gt;Visual Studio .NET provides a very rich development environment for Web&lt;br /&gt;developers. You can drag and drop controls and set properties the way you do in Visual Basic 6. And you have full IntelliSense support, not only for your code, but also for HTML and XML.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;State management&lt;/b&gt;&lt;br /&gt;To refer to the problems mentioned before, ASP.NET provides solutions for session and application state management. State information can, for example, be kept in memory or stored in a database. It can be shared across Web farms, and state information can be recovered, even if the server fails or the connection breaks down.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;Update files while the server is running!&lt;/b&gt;&lt;br /&gt;Components of your application can be updated while the server is online and clients are connected. The Framework will use the new files as soon as they are copied to the application. Removed or old files that are still in use are kept in memory until the clients have finished.&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;XML-Based Configuration Files&lt;br /&gt;&lt;/b&gt;Configuration settings in ASP.NET are stored in XML files that you can easily read and edit. You can also easily copy these to another server, along with the other files that comprise your application. &lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-2725570046288802255?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/2725570046288802255/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=2725570046288802255' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/2725570046288802255'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/2725570046288802255'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2008/08/aspnet-basic_11.html' title='ASP.NET BASIC'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-2699519419053284260</id><published>2008-08-10T23:38:00.000-07:00</published><updated>2009-06-20T10:54:23.135-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DOTNETNUKE HELP'/><title type='text'>DOTNETNUKE HELP</title><content type='html'>What is a DotNetNuke Module?&lt;br /&gt;In order to understand what a &lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;DotNetNuke module&lt;/a&gt; is, it is important to first understand what &lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;DotNetNuke &lt;/a&gt;is.&lt;br /&gt;&lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;DotNetNuke &lt;/a&gt;is a Framework&lt;br /&gt;&lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;DotNetNuke &lt;/a&gt;is a program that runs on Microsoft ASP.NET. It is also a framework, meaning, it is a program that is designed to be extended. One of the ways you extend the framework is to create modules. These modules are installed inside a &lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;DotNetNuke &lt;/a&gt;DNN4 Module Developers Guide&lt;br /&gt;&lt;br /&gt;A single &lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;DotNetNuke &lt;/a&gt;installation will allow the creation of thousands of individual portals (as much as the server hardware can handle). &lt;a href="http://dotnetfaqcurry.blogspot.com/"&gt;DotNetNuke &lt;/a&gt;portals are configured to display pages and the pages are configured to display modules.&lt;br /&gt;&lt;br /&gt;Here I will give you a simple example of making a module in dotnetnuke and implementing it i your DOTNETNUKE application.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;To make an application you need:&lt;br /&gt;&lt;/h2&gt;      &lt;ol&gt;&lt;li&gt;Visual Studio Express (&lt;a href="http://msdn.microsoft.com/vstudio/express/vwd/default.aspx"&gt;download&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;SQL Server Express (&lt;a href="http://msdn.microsoft.com/vstudio/express/sql/"&gt;download&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;DotNetNuke (&lt;a href="http://www.dotnetnuke.com/tabid/125/default.aspx"&gt;download&lt;/a&gt;) &lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;Open your DotNetNuke website in Visual Studio.&lt;br /&gt;Right-click on the "&lt;b&gt;DesktopModules&lt;/b&gt;" folder and select "&lt;b&gt;New Folder&lt;/b&gt;"&lt;br /&gt;Name the folder "&lt;b&gt;SuperSimple&lt;/b&gt;"&lt;br /&gt;Next, right-click on the "&lt;b&gt;SuperSimple&lt;/b&gt;" folder and select "&lt;b&gt;Add    New Item...&lt;/b&gt;"&lt;br /&gt;In the "&lt;b&gt;Add New Item&lt;/b&gt;" box that opens:   &lt;ul&gt;&lt;li&gt;Click on "&lt;b&gt;Web User Control&lt;/b&gt;" under "&lt;i&gt;Visual Studio     Installed Templates&lt;/i&gt;".     &lt;/li&gt;&lt;li&gt;Enter "&lt;b&gt;SuperSimple.ascx&lt;/b&gt;" in the "&lt;b&gt;Name&lt;/b&gt;" box.     &lt;/li&gt;&lt;li&gt;Make sure the "&lt;b&gt;Place code in a separate file&lt;/b&gt;" box is     checked.     &lt;/li&gt;&lt;li&gt;Click the "&lt;b&gt;Add&lt;/b&gt;" button. &lt;/li&gt;&lt;li&gt;The "&lt;b&gt;SuperSimple.ascx&lt;/b&gt;" file will be created in the "&lt;b&gt;SuperSimple&lt;/b&gt;"    folder under the "&lt;b&gt;DesktopModules&lt;/b&gt;" folder. &lt;/li&gt;&lt;/ul&gt;Clicking the "plus" icon next to the file will display the associated    code behind file "&lt;b&gt;SuperSimple.ascx.vb&lt;/b&gt;" (or "&lt;b&gt;SuperSimple.ascx.cs&lt;/b&gt;").&lt;br /&gt;Double-click on the "&lt;b&gt;SuperSimple.ascx&lt;/b&gt;" file and it will open up    in the main editing window. Right now the page will be blank.   &lt;p&gt;Click the "&lt;b&gt;Source&lt;/b&gt;" button at the bottom of the page to switch    to source view.&lt;/p&gt;&lt;p&gt;Enter the following code:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;C#:&lt;br /&gt;&lt;br /&gt; &lt;!-- code formatted by http://manoli.net/csharpformat/ --&gt; &lt;/p&gt;&lt;table id="table10" border="0" cellpadding="5"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;style type="text/css"&gt; .csharpcode, .csharpcode pre {  font-size: small;  color: black;  font-family: Consolas, "Courier New", Courier, Monospace;  background-color: #ffffff;  /*white-space: pre;*/ }  .csharpcode pre { margin: 0em; }  .csharpcode .rem { color: #008000; }  .csharpcode .kwrd { color: #0000ff; }  .csharpcode .str { color: #006080; }  .csharpcode .op { color: #0000c0; }  .csharpcode .preproc { color: #cc6633; }  .csharpcode .asp { background-color: #ffff00; }  .csharpcode .html { color: #800000; }  .csharpcode .attr { color: #ff0000; }  .csharpcode .alt  {  background-color: #f4f4f4;  width: 100%;  margin: 0em; }  .csharpcode .lnum { color: #606060; } &lt;/style&gt; &lt;div class="csharpcode"&gt; &lt;pre class="alt"&gt;&lt;span class="asp"&gt;&lt;%@ Control Language="C#" AutoEventWireup="true" CodeFile="SuperSimple.ascx.cs" Inherits="DesktopModules_SuperSimple_SuperSimple" %&gt;&lt;/span&gt;&lt;/pre&gt; &lt;pre&gt;Search:&lt;span class="attr"&gt; &lt;/span&gt;&lt;/pre&gt; &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;&lt;&lt;/span&gt;&lt;span class="html"&gt;asp:TextBox&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="txtSearch"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;&gt;&lt;!--&lt;/span--&gt;&lt;span class="html"&gt;asp:TextBox&lt;/span&gt;&lt;span class="kwrd"&gt;&gt;&lt;/span&gt;&lt;span class="attr"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/pre&gt; &lt;pre&gt;&lt;span class="kwrd"&gt;&lt;&lt;/span&gt;&lt;span class="html"&gt;asp:Button&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="btnSearch"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt; &lt;span class="attr"&gt;Text&lt;/span&gt;&lt;span class="kwrd"&gt;="Button"&lt;/span&gt; &lt;span class="attr"&gt;OnClick&lt;/span&gt;&lt;span class="kwrd"&gt;="btnSearch_Click"&lt;/span&gt; &lt;span class="kwrd"&gt;/&gt;&lt;&lt;/span&gt;&lt;span class="html"&gt;br&lt;/span&gt; &lt;span class="kwrd"&gt;/&gt;&lt;/span&gt;&lt;/pre&gt; &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;&lt;&lt;/span&gt;&lt;span class="html"&gt;br&lt;/span&gt; &lt;span class="kwrd"&gt;/&gt;&lt;/span&gt; &lt;/pre&gt; &lt;pre&gt;&lt;span class="kwrd"&gt;&lt;&lt;/span&gt;&lt;span class="html"&gt;asp:GridView&lt;/span&gt; &lt;span class="attr"&gt;ID&lt;/span&gt;&lt;span class="kwrd"&gt;="GridView1"&lt;/span&gt; &lt;span class="attr"&gt;runat&lt;/span&gt;&lt;span class="kwrd"&gt;="server"&lt;/span&gt;&lt;span class="kwrd"&gt;&gt;&lt;/span&gt;&lt;/pre&gt; &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;&lt;!--&lt;/span--&gt;&lt;span class="html"&gt;asp:GridView&lt;/span&gt;&lt;span class="kwrd"&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;Click the "&lt;b&gt;Design&lt;/b&gt;" button at the bottom of the page to switch to    the design view.&lt;br /&gt;&lt;br /&gt;Double-click on &lt;b&gt;SuperSimple.ascx.cs&lt;br /&gt;&lt;/b&gt;Replace all the code with the following code:&lt;br /&gt;&lt;br /&gt;&lt;div class="csharpcode"&gt; &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; DotNetNuke;&lt;/pre&gt; &lt;pre&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Web.UI;&lt;/pre&gt; &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Text;&lt;/pre&gt; &lt;pre&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Collections.Generic;&lt;/pre&gt; &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Reflection;&lt;/pre&gt; &lt;pre&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; DotNetNuke.Security;&lt;/pre&gt; &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Data.SqlClient;&lt;/pre&gt; &lt;pre&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; System.Data;&lt;/pre&gt; &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;using&lt;/span&gt; DotNetNuke.Data;&lt;/pre&gt; &lt;pre&gt; &lt;/pre&gt; &lt;pre class="alt"&gt;&lt;span class="kwrd"&gt;partial&lt;/span&gt; &lt;span class="kwrd"&gt;class&lt;/span&gt; DesktopModules_SuperSimple_SuperSimple : DotNetNuke.Entities.Modules.PortalModuleBase &lt;/pre&gt; &lt;pre&gt;{    &lt;/pre&gt; &lt;pre class="alt"&gt;    &lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; Page_Load(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, System.EventArgs e) {&lt;/pre&gt; &lt;pre&gt;        &lt;span class="kwrd"&gt;if&lt;/span&gt; (!Page.IsPostBack) &lt;/pre&gt; &lt;pre class="alt"&gt;        {&lt;/pre&gt; &lt;pre&gt;            ShowData(&lt;span class="str"&gt;""&lt;/span&gt;);&lt;/pre&gt; &lt;pre class="alt"&gt;        }&lt;/pre&gt; &lt;pre&gt;    }&lt;/pre&gt; &lt;pre class="alt"&gt;    &lt;/pre&gt; &lt;pre&gt;    &lt;span class="kwrd"&gt;protected&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; btnSearch_Click(&lt;span class="kwrd"&gt;object&lt;/span&gt; sender, System.EventArgs e) {&lt;/pre&gt; &lt;pre class="alt"&gt;        ShowData(txtSearch.Text);&lt;/pre&gt; &lt;pre&gt;    }&lt;/pre&gt; &lt;pre class="alt"&gt;    &lt;/pre&gt; &lt;pre&gt;    &lt;span class="kwrd"&gt;private&lt;/span&gt; &lt;span class="kwrd"&gt;void&lt;/span&gt; ShowData(&lt;span class="kwrd"&gt;string&lt;/span&gt; SearchString) {&lt;/pre&gt; &lt;pre class="alt"&gt;        StringBuilder mySqlString = &lt;span class="kwrd"&gt;new&lt;/span&gt; StringBuilder();&lt;/pre&gt; &lt;pre&gt;        mySqlString.Append(&lt;span class="str"&gt;"SELECT FriendlyName, Description "&lt;/span&gt;);&lt;/pre&gt; &lt;pre class="alt"&gt;        mySqlString.Append(&lt;span class="str"&gt;"FROM {databaseOwner}{objectQualifier}DesktopModules "&lt;/span&gt;);&lt;/pre&gt; &lt;pre&gt;        mySqlString.Append(&lt;span class="str"&gt;"WHERE Description like \'%\' + @SearchString + \'%\' "&lt;/span&gt;);&lt;/pre&gt; &lt;pre class="alt"&gt;        mySqlString.Append(&lt;span class="str"&gt;"ORDER BY FriendlyName"&lt;/span&gt;);&lt;/pre&gt; &lt;pre&gt;        SqlParameter myParam = &lt;span class="kwrd"&gt;new&lt;/span&gt; SqlParameter(&lt;span class="str"&gt;"@SearchString"&lt;/span&gt;, SqlDbType.VarChar, 150);&lt;/pre&gt; &lt;pre class="alt"&gt;        myParam.Value = SearchString;&lt;/pre&gt; &lt;pre&gt;        &lt;span class="kwrd"&gt;this&lt;/span&gt;.GridView1.DataSource = ((IDataReader)(DataProvider.Instance().ExecuteSQL(mySqlString.ToString(), myParam)));&lt;/pre&gt; &lt;pre class="alt"&gt;        &lt;span class="kwrd"&gt;this&lt;/span&gt;.GridView1.DataBind();&lt;/pre&gt; &lt;pre&gt;    }&lt;/pre&gt; &lt;pre class="alt"&gt; &lt;/pre&gt; &lt;pre&gt;}&lt;/pre&gt; &lt;/div&gt;             Select &lt;b&gt;BUILD&lt;/b&gt; from the menu bar and select "&lt;b&gt;Build Page&lt;/b&gt;".&lt;br /&gt;&lt;br /&gt;The page should build without errors.&lt;br /&gt;&lt;br /&gt;While logged into your DotNetNuke site as "&lt;b&gt;host&lt;/b&gt;" in the     web browser, from the menu bar select "&lt;b&gt;Host&lt;/b&gt;". Then select "&lt;b&gt;Module     Definitions&lt;/b&gt;".&lt;br /&gt;&lt;br /&gt;Click the black arrow that is pointing down to make the fly-out     menu to appear. On that menu select "&lt;b&gt;Create New Module&lt;/b&gt;".&lt;br /&gt;&lt;br /&gt;In the &lt;b&gt;Edit Module Definitions&lt;/b&gt; menu:     &lt;ul&gt;&lt;li&gt;Enter "SuperSimple" for &lt;b&gt;MODULE NAME&lt;/b&gt;      &lt;/li&gt;&lt;li&gt;Enter "SuperSimple" for &lt;b&gt;FOLDER TITLE&lt;/b&gt;      &lt;/li&gt;&lt;li&gt;Enter "SuperSimple" for &lt;b&gt;FRIENDLY TITLE&lt;/b&gt;      &lt;/li&gt;&lt;li&gt;Enter "SuperSimple" for &lt;b&gt;DESCRIPTION&lt;/b&gt;      &lt;/li&gt;&lt;li&gt;Enter "1.0" for &lt;b&gt;VERSION&lt;/b&gt; &lt;/li&gt;&lt;/ul&gt;    &lt;p&gt;Then click &lt;b&gt;UPDATE&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Enter "SuperSimple" for &lt;b&gt;NEW DEFINITION&lt;/b&gt;     &lt;/p&gt;&lt;p&gt;Then click "&lt;b&gt;Add&lt;/b&gt;"&lt;/p&gt;&lt;p&gt;Next, Click "&lt;b&gt;Add Control&lt;/b&gt;"&lt;/p&gt;&lt;p&gt;In the &lt;b&gt;Edit Module Control&lt;/b&gt; menu:     &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Enter "SuperSimple" for &lt;b&gt;TITLE&lt;/b&gt;      &lt;/li&gt;&lt;li&gt;Use the drop-down to select "&lt;i&gt;DesktopModule/SuperSimple/SuperSimple.ascx&lt;/i&gt;"      for &lt;b&gt;SOURCE&lt;/b&gt;      &lt;/li&gt;&lt;li&gt;Use the drop-down to select "&lt;i&gt;View&lt;/i&gt;" for &lt;b&gt;TYPE&lt;/b&gt;      &lt;/li&gt;&lt;/ul&gt;    &lt;p&gt;Then click &lt;b&gt;UPDATE&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;In the upper left hand corner of the website, under the &lt;b&gt;PAGE     FUNCTIONS&lt;/b&gt; menu click &lt;b&gt;ADD.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;In the &lt;b&gt;PAGE MANAGEMENT &lt;/b&gt;menu under&lt;b&gt; PAGE DETAILS&lt;/b&gt;:     &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Enter "SuperSimple" for &lt;b&gt;PAGE NAME&lt;/b&gt;      &lt;/li&gt;&lt;li&gt;Enter "SuperSimple" for &lt;b&gt;PAGE TITLE&lt;/b&gt;      &lt;/li&gt;&lt;li&gt;Enter "SuperSimple" for &lt;b&gt;DESCRIPTION&lt;/b&gt;      &lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;VIEW PAGE&lt;/b&gt; box next to &lt;b&gt;ALL USERS&lt;/b&gt;      &lt;/li&gt;&lt;/ul&gt;    &lt;p&gt;Then click &lt;b&gt;UPDATE&lt;/b&gt;&lt;/p&gt;&lt;p&gt;From the &lt;b&gt;MODULE&lt;/b&gt; drop-down select "&lt;b&gt;SuperSimple&lt;/b&gt;".&lt;/p&gt;&lt;p&gt;Then click &lt;b&gt;ADD.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;This is done and finally you will see your module on your site.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;This is the most simple way to make a module in dotnetnuke and add it in  your site&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-weight: bold;"&gt;I &lt;/span&gt;&lt;/b&gt;have been searching for &lt;a href="http://www.dotnetfaqcurry.blogspot.com/"&gt;FREE SHOPPING CART&lt;/a&gt; module on internet bu I couldn't find one . So finally I made the module by my own.&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style="font-weight: bold;"&gt;If any one require this module then kindly contact me and I will mail the module to him/her.&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;b&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-2699519419053284260?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/2699519419053284260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=2699519419053284260' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/2699519419053284260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/2699519419053284260'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2008/08/dotnetnuke-help.html' title='DOTNETNUKE HELP'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-1675723547431350990</id><published>2008-08-10T23:37:00.000-07:00</published><updated>2008-08-22T05:35:47.231-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to add a page in Dotnetnuke portal'/><title type='text'>How to add a page in Dotnetnuke portal</title><content type='html'>Log into your existing DotNetNuke installation with a superuser (host) account.&lt;br /&gt;Click the Add icon in the Page Functions section of the control bar (The control bar is located at the top of every page when you are logged in as an administrator or&lt;br /&gt;&lt;br /&gt;superuser.)&lt;br /&gt;Fill in the Page Details section&lt;br /&gt;&lt;br /&gt;   * Page Name: The name of this page, this will be shown in the site menu&lt;br /&gt;   * Page Title: The title of the page, this will appear in the browsers title and in the meta tags that search engines index&lt;br /&gt;   * Description: A description of this page, this will be stored in the meta tags that search engines index&lt;br /&gt;   * Keywords: Key words that pertain to this page's content, these will be stored in the meta tags that search engines index&lt;br /&gt;   * Parent Page: The page you wish this page to appear under in the site menu&lt;br /&gt;   * Page Template: A page template allows you to quickly create pages with some default content already on them&lt;br /&gt;   * Permissions: What DotNetNuke roles can view and/or edit this page&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Scroll to the bottom of the page&lt;br /&gt;Click the Update link&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-1675723547431350990?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/1675723547431350990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=1675723547431350990' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/1675723547431350990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/1675723547431350990'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2008/08/how-to-add-page-in-dotnetnuke-portal.html' title='How to add a page in Dotnetnuke portal'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-4646044475667135323</id><published>2008-08-10T22:36:00.000-07:00</published><updated>2008-08-22T05:36:05.957-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to add a module in dotnetnuke'/><title type='text'>How to add a module in dotnetnuke</title><content type='html'>The Modules menu is found at the top of the page.&lt;br /&gt;&lt;br /&gt;Click on the drop down box indicator to show the list of available modules. Select The module you want to add on your page and also select that on which part of the page you want  your that module to be placed.&lt;br /&gt;And finally click on the Add button or Add link.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-4646044475667135323?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/4646044475667135323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=4646044475667135323' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/4646044475667135323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/4646044475667135323'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2008/08/how-to-add-module-in-dotnetnuke.html' title='How to add a module in dotnetnuke'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-7097602907036728619</id><published>2008-08-09T02:13:00.000-07:00</published><updated>2008-08-22T05:36:12.065-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Templates Available for the controls'/><title type='text'>Templates Available for the controls</title><content type='html'>&lt;span style="font-weight: bold;"&gt;IN BRIEF THE TEMPLATES AVAILABLE IN THESE CONTROLS ARE:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; &lt;table width="550" border="0" cellpadding="0" cellspacing="0"&gt; &lt;tbody&gt;&lt;tr&gt;&lt;td style="color: rgb(153, 153, 0);" valign="top"&gt;&lt;p class="ArticleText" align="center"&gt;&lt;b&gt;TEMPLATE&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;     &lt;td style="color: rgb(153, 153, 0);" valign="top" width="268"&gt;     &lt;p class="ArticleText" align="center"&gt;&lt;b&gt; DESCRIPTION &lt;/b&gt;&lt;/p&gt;&lt;/td&gt;     &lt;td style="color: rgb(153, 153, 0);" valign="top" width="125"&gt;     &lt;p class="ArticleText" align="center"&gt;&lt;b&gt;SUPPORTED BY&lt;/b&gt;&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;&lt;p class="ArticleText"&gt;     AlternatingItemTemplate&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Represents the collection of elements and controls that      are rendered for every alternating row in the data source.&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Repeater and DataList&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;      &lt;/td&gt;     &lt;td valign="top"&gt;      &lt;/td&gt;     &lt;td valign="top"&gt;      &lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;&lt;p class="ArticleText"&gt;     SelectedItemTemplate&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Represents the collection of elements and controls that      are rendered when an item is selected in the control&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;DataList&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;      &lt;/td&gt;     &lt;td valign="top"&gt;      &lt;/td&gt;     &lt;td valign="top"&gt;     nbsp;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;     &lt;p class="ArticleText"&gt;HeaderTemplate&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Represents the collection of elements and controls that      are accessed one before any other item is accessed in the control&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Repeater, DataList. and DataGrid&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;      &lt;/td&gt;     &lt;td valign="top"&gt;      &lt;/td&gt;     &lt;td valign="top"&gt;      &lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;     &lt;p class="ArticleText"&gt;FooterTemplate&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Represents the collection of elements and controls that      are accessed one time after all the items are accessed in the control.&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Repeater, DataList, and DataGrid&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;     &lt;p class="ArticleText"&gt;EditItemTemplate&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Represents the collection of elements and controls that are rendered when an      item in the server control is in edit mode.&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;DataList and DataGrid&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;     &lt;p class="ArticleText"&gt;SeparatorTemplate&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Represents the collection of elements and controls that are rendered between      each item.&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Repeater and DataGrid&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;     &lt;p class="ArticleText"&gt;PagerTemplate&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Represents the collection of elements and controls that are rendered when      information is paged&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;DataGrid&lt;/p&gt;&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top" width="157"&gt;     &lt;p class="ArticleText"&gt;ItemTemplate&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Represents the collection of elements and controls that are rendered one      time for each data source row&lt;/p&gt;&lt;/td&gt;     &lt;td valign="top"&gt;     &lt;p class="ArticleText"&gt;Repeater, DataList, and DataGrid&lt;/p&gt;     &lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt; &lt;/table&gt;  &lt;p class="ArticleText"&gt;You can create and edit a template for a server control either by using  Visual Designer or by editing ASP.NET code. When you use Visual Designer, the  corresponding ASP.NET code is generated automatically.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-7097602907036728619?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/7097602907036728619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=7097602907036728619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/7097602907036728619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/7097602907036728619'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2008/08/templates-available-for-controls.html' title='Templates Available for the controls'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-1457119494087593908</id><published>2008-08-09T00:01:00.000-07:00</published><updated>2008-08-22T05:36:19.129-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Controls in ASP.NET'/><title type='text'>Controls in ASP.NET</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;a href="http://www.aspdotnetc.blogspot.com/"&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold;"&gt;CONTROLS IN ASP.NET&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_tPOiya79NU8/SJ1CBAlbuxI/AAAAAAAAAEg/7DG824VesGI/s1600-h/gridview.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_tPOiya79NU8/SJ1CBAlbuxI/AAAAAAAAAEg/7DG824VesGI/s320/gridview.jpg" alt="" id="BLOGGER_PHOTO_ID_5232410927178693394" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;span sdata="authoredSummary"&gt;Displays the values of a data source in a table where each column represents a field and each row represents a record. The &lt;span sdata="cer" target="T:System.Web.UI.WebControls.GridView"&gt;&lt;span class="selflink"&gt;GridView&lt;/span&gt;&lt;/span&gt; control enables you to select, sort, and edit these items.&lt;br /&gt;&lt;br /&gt;This is the most used control in development.&lt;br /&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;&lt;span sdata="authoredSummary"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;A common question is often asked that which control is better and which is to be used?&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span sdata="authoredSummary"&gt;There are basically 3 most important controls used to display data.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1)Repeater&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2)Detail View&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3)Datalist&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4)Gridview&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.aspdotnetc.blogspot.com/"&gt;&lt;span sdata="authoredSummary"&gt;&lt;span style="font-weight: bold;"&gt;Repeater&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;The Repeater control is a data-bound control that uses templates to display data. The Repeater control works by looping through the records in your data source and then repeating the rendering of one of its templates called the &lt;span style="color: rgb(102, 0, 204);"&gt;ItemTemplate&lt;/span&gt;, one that contains the records that the control needs to render.&lt;/span&gt;&lt;br /&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;A Repeater control can be used to build small and Flexible reports with the templates for the items. It supports the following five templates.&lt;/span&gt; &lt;ul&gt;&lt;li&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;HeaderTemplate : Can be used to create the     Header Rows of the Table data being presented by Repeater control.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;FooterTemplate : Can be used to create the     Footer Rows of the Table data being presented by Repeater control.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;ItemTemplate : Used for formatting the Items     and rows to be displayed.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;AlternatingItemTemplate : Alternating items     formatting.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=";font-family:Arial;font-size:85%;"  &gt;SeparatorTemplate : Styles for separating rows     and columns.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;a href="http://aspdotnetc.blogspot.com/"&gt;&lt;span style="font-weight: bold;"&gt;Detail View&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The DetailsView control is similar to the GridView control with one notable exception—it displays one record at a time. It is a data-bound user interface control that renders a single record at a time from its associated data source, optionally providing paging buttons to navigate between records.&lt;br /&gt;The &lt;span sdata="cer" target="T:System.Web.UI.WebControls.DetailsView"&gt;&lt;a id="ctl00_rs1_mainContentContainer_ctl01" onclick="javascript:Track('ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl01',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.detailsview.aspx"&gt;DetailsView&lt;/a&gt;&lt;/span&gt; control displays a single record from a data source, where each data row represents a field in the record. It is often used in combination with a &lt;span sdata="cer" target="T:System.Web.UI.WebControls.GridView"&gt;&lt;a id="ctl00_rs1_mainContentContainer_ctl02" onclick="javascript:Track('ctl00_rs1_mainContentContainer_ctl00|ctl00_rs1_mainContentContainer_ctl02',this);" href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview.aspx"&gt;GridView&lt;/a&gt;&lt;/span&gt; control for master/detail scenarios.          &lt;br /&gt;&lt;span style="color: rgb(102, 102, 102);"&gt;The interesting features in detail view are:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Automatic paging and sorting with no coding needed&lt;/li&gt;&lt;li&gt;Automatic Insert, Update, and Delete capabilities&lt;/li&gt;&lt;li&gt;Complete command button functionality (such as the Edit, Update, and Cancel buttons) without any coding&lt;/li&gt;&lt;li&gt;Minimal amount of coding involved than in previous versions of the framework&lt;/li&gt;&lt;/ul&gt;&lt;a style="font-weight: bold;" href="http://aspdotnetc.blogspot.com/"&gt;DATALIST&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="intelliTXT"&gt;&lt;p&gt;The DataList control like the Repeater control is a template driven, light weight control, and acts as a container of repeated data items. The templates in this control are used to define the data that it will contain. It is flexible in the sense that you can easily customize the display of one or more records that are displayed in the control. You have a property in the DataList control called RepeatDirection that can be used to customize the layout of the control. &lt;/p&gt;  &lt;p&gt;The &lt;code&gt;RepeatDirection&lt;/code&gt; property can accept one of two values, that is, Vertical or Horizontal. The &lt;code&gt;RepeatDirection&lt;/code&gt; is Vertical by default. However, if you change it to Horizontal, rather than displaying the data as rows and columns, the DataList control will display them as a list of records with the columns in the data rendered displayed as rows. &lt;a href="http://aspdotnetc.blogspot.com/"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://aspdotnetc.blogspot.com/"&gt;&lt;span style="font-weight: bold;"&gt;GRIDVIEW&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;span sdata="authoredSummary"&gt;Displays the values of a data source in a table where each column represents a field and each row represents a record. The &lt;span sdata="cer" target="T:System.Web.UI.WebControls.GridView"&gt;&lt;span class="selflink"&gt;GridView&lt;/span&gt;&lt;/span&gt; control enables you to select, sort, and edit these items.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span sdata="authoredSummary"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;p&gt;                     The &lt;span sdata="cer" target="T:System.Web.UI.WebControls.GridView"&gt;&lt;span class="selflink"&gt;GridView&lt;/span&gt;&lt;/span&gt; control is used to display the values of a data source in a table. Each column represents a field, while each row represents a record. The &lt;span sdata="cer" target="T:System.Web.UI.WebControls.GridView"&gt;&lt;span class="selflink"&gt;GridView&lt;/span&gt;&lt;/span&gt; control supports the following features:                  &lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;                     Binding to data source controls, such as &lt;span sdata="cer" target="T:System.Web.UI.WebControls.SqlDataSource"&gt;SqlDataSource&lt;/span&gt;.                 &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;                     Built-in sort capabilities.                 &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;                     Built-in update and delete capabilities.                 &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;                     Built-in paging capabilities.                 &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;                     Built-in row selection capabilities.                 &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;                     Programmatic access to the &lt;span sdata="cer" target="T:System.Web.UI.WebControls.GridView"&gt;&lt;span class="selflink"&gt;GridView&lt;/span&gt;&lt;/span&gt; object model to dynamically set properties, handle events, and so on.                 &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;                     Multiple key fields.                 &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;                     Multiple data fields for the hyperlink columns.                 &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;                     Customizable appearance through themes and styles.                 &lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;p class="ArticleText"&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span id="intelliTXT"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span sdata="authoredSummary"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-1457119494087593908?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/1457119494087593908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=1457119494087593908' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/1457119494087593908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/1457119494087593908'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2008/08/controls-in-aspnet.html' title='Controls in ASP.NET'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_tPOiya79NU8/SJ1CBAlbuxI/AAAAAAAAAEg/7DG824VesGI/s72-c/gridview.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-1414482661002144314</id><published>2008-07-11T05:14:00.000-07:00</published><updated>2008-08-22T05:50:13.195-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to add FCK editor in ASP.NET Application'/><title type='text'>How to add FCK editor in ASP.NET Application</title><content type='html'>&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;"&gt;  &lt;a href="http://aspdotnetc.blogspot.com/search/label/How%20to%20add%20FCK%20editor%20in%20ASP.NET%20Application"&gt;How to add FCKeditor in ASP.NET&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-weight: bold;"&gt;Step 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Firstly download the FCKeditor .Net package from the fck editor website i. from here fckeditor.net/download.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Unzip the downloaded file. There you will find the original source code of the control and a compiled version of it. The file is called&lt;br /&gt;&lt;br /&gt;FredCK.FCKeditorV2.dll. It can be in either of the two files:&lt;br /&gt;&lt;br /&gt;* bin/Release/1.1/ - the version designed for ASP.NET 1.1&lt;br /&gt;* bin/Release/2.0/ - the version designed for ASP.NET 2.0&lt;br /&gt;&lt;br /&gt;Consider the compiled DLL file, and create a reference to it in your project. You have two options to do that:&lt;br /&gt;&lt;br /&gt;1. Manually copy the FredCK.FCKeditorV2.dll file to the "bin" directory of your web site.&lt;br /&gt;2. Right-click "References" in your Visual Studio.NET project in the "Solution Explorer". Use "Browse" to select the FredCK.FCKeditorV2.dll file from the&lt;br /&gt;&lt;br /&gt;directory you have saved it in.&lt;br /&gt;&lt;br /&gt;You can include the control in your Visual Studio.NET controls toolbox. Just right-click on it and select "Choose Items". Then, just point to the&lt;br /&gt;&lt;br /&gt;FredCK.FCKeditorV2.dll file by using the "Browse" option. Remember to make sure that you have the latest version of the dll. It may be worthwhile to&lt;br /&gt;&lt;br /&gt;recompile from the source if you are having issues getting the upload and connector features to work.&lt;br /&gt;___________________________________&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Integration&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Create an ASP.NET page. To create an instance of the editor, you have two options:&lt;br /&gt;&lt;br /&gt;1. Drag and drop the control "FCKeditor" from the toolbox to you page.(this method will only work if you included the "FCKeditor" control in the toolbox -&lt;br /&gt;&lt;br /&gt;see Step 2 for the description)&lt;br /&gt;2. Manually add lines of code in your ASP.NET source page:&lt;br /&gt;&lt;br /&gt;* Include this line in the top of the page:&lt;br /&gt;&lt;br /&gt;&lt;%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %&gt;&lt;br /&gt;NOTE-  "&lt;" sign has been removed from the post kindly apply it in place of *    *form runat="server"&gt;:&lt;br /&gt;*fckeditorv2:fckeditor id="FCKeditor1" runat="server"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step 2&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The editor is now ready to be used. Just open the page in your browser to see it at work.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-1414482661002144314?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/1414482661002144314/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=1414482661002144314' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/1414482661002144314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/1414482661002144314'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2008/08/how-to-add-fck-editor-in-aspnet.html' title='How to add FCK editor in ASP.NET Application'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-4661967138561334212</id><published>2008-02-12T01:51:00.000-08:00</published><updated>2009-02-27T19:14:22.214-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Code to Send message on mobile in asp.net'/><category scheme='http://www.blogger.com/atom/ns#' term='Sending SMS In ASP.NET'/><category scheme='http://www.blogger.com/atom/ns#' term='Code to Send SMS on mobile in asp.net'/><title type='text'>Code to Send message on mobile in asp.net</title><content type='html'>Public Sub Sendtxtmsg(ByVal cellnumber As String, ByVal objMailTo As String, ByVal content As String)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;            Dim stringWriterTmp As New StringWriter()&lt;br /&gt;            Dim htmlWriter As New HtmlTextWriter(stringWriterTmp)&lt;br /&gt;            ' Dim htmlContent As String&lt;br /&gt;&lt;br /&gt;            Dim strContents As String = content&lt;br /&gt;&lt;br /&gt;            ' grvBasketDetail.RenderControl(htmlWriter)&lt;br /&gt;            ' htmlContent = stringWriterTmp.ToString()&lt;br /&gt;            Dim email As String = cellnumber &amp; "@" &amp; objMailTo&lt;br /&gt;            Dim message As New MailMessage()&lt;br /&gt;            message.From = New MailAddress(ConfigurationManager.AppSettings("MAIL_FROM").ToString(), "name of sender")&lt;br /&gt;            If (objMailTo &lt;&gt; "") Then&lt;br /&gt;                message.To.Add(New MailAddress(email))&lt;br /&gt;            End If&lt;br /&gt;            message.Subject = ConfigurationManager.AppSettings("TEXT_MESSAGES_SUBJECT").ToString()&lt;br /&gt;            message.Priority = MailPriority.High&lt;br /&gt;            message.Body = strContents&lt;br /&gt;            message.IsBodyHtml = True&lt;br /&gt;            Dim emailClient As New SmtpClient(ConfigurationManager.AppSettings("SmtpServer").ToString())&lt;br /&gt;            Dim SMTPUserInfo As New System.Net.NetworkCredential(ConfigurationManager.AppSettings("username").ToString(), ConfigurationManager.AppSettings("Password").ToString())&lt;br /&gt;            emailClient.UseDefaultCredentials = False&lt;br /&gt;            emailClient.Credentials = SMTPUserInfo&lt;br /&gt;            emailClient.Send(message)&lt;br /&gt;&lt;br /&gt;        End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-4661967138561334212?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/4661967138561334212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=4661967138561334212' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/4661967138561334212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/4661967138561334212'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2009/02/code-to-send-message-on-mobile-in.html' title='Code to Send message on mobile in asp.net'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-1470744026131341736</id><published>2008-02-10T23:51:00.001-08:00</published><updated>2009-02-27T19:14:35.874-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CheckBox in gridview with autopostback true'/><category scheme='http://www.blogger.com/atom/ns#' term='Gettting Column Value Using Checkbox in GridView Autopostback = true'/><category scheme='http://www.blogger.com/atom/ns#' term='Checkbox in a Gridview'/><title type='text'>CheckBox in gridview with autopostback true</title><content type='html'>Sometimes we need to have checkboxes in the GridView control and we want that as soon as the Checkbox is clicked/checked the postback happens and we get the value from the first row in the GridView control.&lt;br /&gt;&lt;br /&gt;This can be easily done by using the following code:&lt;br /&gt; asp:GridView ID="GridView1" runat="server"&lt;br /&gt;AutoGenerateColumns="False" OnRowCommand="GridView1_RowCommand"&gt;&lt;br /&gt;        Columns&gt;&lt;br /&gt;            asp:BoundField DataField="CategoryID"&lt;br /&gt;            HeaderText="CategoryID" /&gt;&lt;br /&gt;            asp:BoundField DataField="CategoryName"&lt;br /&gt;            HeaderText="CategoryName" /&gt;&lt;br /&gt;            asp:TemplateField HeaderText="Select"&gt;&lt;br /&gt;                ItemTemplate&gt;&lt;br /&gt;                    asp:CheckBox ID="CheckBox1"&lt;br /&gt;                    AutoPostBack="true" runat="server"&lt;br /&gt;                    OnCheckedChanged="CheckBox1_CheckedChanged1" /&gt;&lt;br /&gt; /ItemTemplate&gt;&lt;br /&gt;               /asp:TemplateField&gt;&lt;br /&gt;           /Columns&gt;&lt;br /&gt;       /asp:GridView&gt;&lt;br /&gt;                &lt;br /&gt;And the code behind:&lt;br /&gt;{&lt;br /&gt;CheckBox checkbox = (CheckBox)sender;&lt;br /&gt;GridViewRow row = (GridViewRow) checkbox.NamingContainer;&lt;br /&gt;Response.Write(row.Cells[0].Text);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Ohh by the way when you click a different checkbox it will show you the new value but does not clear the old checkbox. You can make a simple method "ClearCheckboxSelection" which clears all the checkboxes.&lt;br /&gt;&lt;br /&gt;Hope you find this example useful :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-1470744026131341736?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/1470744026131341736/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=1470744026131341736' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/1470744026131341736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/1470744026131341736'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2009/02/checkbox-in-gridview-with-autopostback.html' title='CheckBox in gridview with autopostback true'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-2907001160057882706</id><published>2008-02-10T23:51:00.000-08:00</published><updated>2009-02-27T19:14:29.015-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CheckBox in gridview with autopostback true'/><category scheme='http://www.blogger.com/atom/ns#' term='Gettting Column Value Using Checkbox in GridView Autopostback = true'/><category scheme='http://www.blogger.com/atom/ns#' term='Checkbox in a Gridview'/><title type='text'>CheckBox in gridview with autopostback true</title><content type='html'>Sometimes we need to have checkboxes in the GridView control and we want that as soon as the Checkbox is clicked/checked the postback happens and we get the value from the first row in the GridView control.&lt;br /&gt;&lt;br /&gt;This can be easily done by using the following code:&lt;br /&gt;&lt;br /&gt;&amp;lt;asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" onrowcommand="GridView1_RowCommand"&gt;&lt;br /&gt;          &amp;lt;columns&gt;&lt;br /&gt;             &amp;lt;asp:boundfield datafield="CategoryID" headertext="CategoryID"&gt;&lt;br /&gt;              &amp;lt;asp:boundfield datafield="CategoryName" headertext="CategoryName"&gt;&lt;br /&gt;              &amp;lt;asp:templatefield headertext="Select"&gt;&lt;br /&gt;                  &amp;lt;itemtemplate&gt;&lt;br /&gt;                      &amp;lt;asp:checkbox id="CheckBox1" autopostback="true" runat="server" oncheckedchanged="CheckBox1_CheckedChanged1"&gt;&lt;br /&gt;                    &lt;br /&gt;                  &amp;lt;/asp:checkbox&gt;&lt;br /&gt;              &amp;lt;/itemtemplate&gt;&lt;br /&gt;          &amp;lt;/asp:templatefield&gt;&lt;br /&gt;     &amp;lt;/asp:boundfield&gt;&lt;br /&gt;&lt;br /&gt;And the code behind:&lt;br /&gt;&lt;br /&gt;protected void CheckBox1_CheckedChanged1(object sender, EventArgs e)&lt;br /&gt;  {&lt;br /&gt;      CheckBox checkbox = (CheckBox)sender;&lt;br /&gt;      GridViewRow row = (GridViewRow) checkbox.NamingContainer;&lt;br /&gt;      Response.Write(row.Cells[0].Text);&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;Ohh by the way when you click a different checkbox it will show you the new value but does not clear the old checkbox. You can make a simple method "ClearCheckboxSelection" which clears all the checkboxes.&lt;br /&gt;&lt;br /&gt;Hope you find this example useful :)&lt;/asp:boundfield&gt;&lt;/columns&gt;&lt;/asp:gridview&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-2907001160057882706?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/2907001160057882706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=2907001160057882706' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/2907001160057882706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/2907001160057882706'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2009/02/checkbox-in-gridview-with-autopostback_10.html' title='CheckBox in gridview with autopostback true'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-3957053456495346257</id><published>2008-02-03T23:13:00.000-08:00</published><updated>2009-02-27T19:14:40.801-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Java Script in ASP.Net RadioButtonList'/><title type='text'>Java Script in ASP.Net RadioButtonList</title><content type='html'>&lt;h3 class="post-title entry-title"&gt; &lt;a href="http://dotnetcurve.blogspot.com/2009/01/java-script-in-aspnet-radiobuttonlist.html"&gt;&lt;br /&gt;&lt;/a&gt; &lt;/h3&gt;   The below sample code shows how to fire an event for a RadioButtonList control of Asp.Net.&lt;br /&gt;&lt;br /&gt;The sample contains the java script function and additionally you need to add the following code in the Page_load event of aspx.cs -&lt;br /&gt;&lt;span style="font-style: italic;"&gt; RadioButtonList1.Attributes.Add("onclick","RadioCheck(this);");&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;function RadioCheck(obj)&lt;br /&gt;{&lt;br /&gt;var srcEl = event.srcElement;&lt;br /&gt;// If the Radio's label is cliked the OnClick is fired twice. To avoid this&lt;br /&gt;if(srcEl.tagName == 'LABEL')&lt;br /&gt;return;&lt;br /&gt;&lt;br /&gt;var srcObj = document.getElementById(obj.id+"_"+srcEl.parentElement.parentElement.rowIndex);&lt;br /&gt;if(srcObj)&lt;br /&gt;alert("Selected Radio's Value - "+srcObj.value);&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-3957053456495346257?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/3957053456495346257/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=3957053456495346257' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/3957053456495346257'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/3957053456495346257'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2009/02/java-script-in-aspnet-radiobuttonlist.html' title='Java Script in ASP.Net RadioButtonList'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-8386660078564138942</id><published>2008-01-25T22:13:00.000-08:00</published><updated>2009-02-27T19:18:43.776-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='query Builder'/><title type='text'>Method to make Insert Query</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_tPOiya79NU8/SLOSM46OkPI/AAAAAAAAEDY/atFXNZ9-dk4/s1600-h/abhinav.bmp"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 258px;" src="http://3.bp.blogspot.com/_tPOiya79NU8/SLOSM46OkPI/AAAAAAAAEDY/atFXNZ9-dk4/s400/abhinav.bmp" alt="" id="BLOGGER_PHOTO_ID_5238691541694714098" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-8386660078564138942?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/8386660078564138942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=8386660078564138942' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/8386660078564138942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/8386660078564138942'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2008/08/method-to-make-insert-query.html' title='Method to make Insert Query'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_tPOiya79NU8/SLOSM46OkPI/AAAAAAAAEDY/atFXNZ9-dk4/s72-c/abhinav.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-2081083451129560752</id><published>2008-01-22T21:44:00.000-08:00</published><updated>2009-02-27T19:14:48.009-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='maintaining the tab order on page postback'/><category scheme='http://www.blogger.com/atom/ns#' term='maintaining the tab Index on page postback'/><category scheme='http://www.blogger.com/atom/ns#' term='maintaining the tabindex on postback'/><title type='text'>maintaining the tab order on page postback</title><content type='html'>&lt;div style="margin: 0in 0in 10pt;" align="justify"&gt;&lt;span style="line-height: 115%;font-family:'Verdana','sans-serif';font-size:10;"  &gt;The code to set focus to the next control after a postback is given below:&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 10pt;"&gt;&lt;span style="line-height: 115%;font-family:'Verdana','sans-serif';font-size:10;"  &gt;C#&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;    &lt;span style="color:blue;"&gt;protected&lt;/span&gt; &lt;span style="color:blue;"&gt;void&lt;/span&gt; Page_Load(&lt;span style="color:blue;"&gt;object&lt;/span&gt; sender, &lt;span style="color: rgb(43, 145, 175);"&gt;EventArgs&lt;/span&gt; e)&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;    {&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;if&lt;/span&gt; (Page.IsPostBack)&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        {&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            &lt;span style="color: rgb(43, 145, 175);"&gt;WebControl&lt;/span&gt; wcICausedPostBack = (&lt;span style="color: rgb(43, 145, 175);"&gt;WebControl&lt;/span&gt;)GetControlThatCausedPostBack(sender &lt;span style="color:blue;"&gt;as&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Page&lt;/span&gt;); &lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            &lt;span style="color:blue;"&gt;int&lt;/span&gt; indx = wcICausedPostBack.TabIndex;                       &lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            &lt;span style="color:blue;"&gt;var&lt;/span&gt; ctrl = &lt;span style="color:blue;"&gt;from&lt;/span&gt; control &lt;span style="color:blue;"&gt;in&lt;/span&gt; wcICausedPostBack.Parent.Controls.OfType&lt;&lt;span style="color: rgb(43, 145, 175);"&gt;WebControl&lt;/span&gt;&gt;()&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                       &lt;span style="color:blue;"&gt;where&lt;/span&gt; control.TabIndex &gt; indx&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                       &lt;span style="color:blue;"&gt;select&lt;/span&gt; control;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            ctrl.DefaultIfEmpty(wcICausedPostBack).First().Focus(); &lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        }&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;    }&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt; &lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;    &lt;span style="color:blue;"&gt;protected&lt;/span&gt; &lt;span style="color: rgb(43, 145, 175);"&gt;Control&lt;/span&gt; GetControlThatCausedPostBack(&lt;span style="color: rgb(43, 145, 175);"&gt;Page&lt;/span&gt; page)&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;    {&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color: rgb(43, 145, 175);"&gt;Control&lt;/span&gt; control = &lt;span style="color:blue;"&gt;null&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt; &lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;string&lt;/span&gt; ctrlname = page.Request.Params.Get(&lt;span style="color: rgb(163, 21, 21);"&gt;"__EVENTTARGET"&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;if&lt;/span&gt; (ctrlname != &lt;span style="color:blue;"&gt;null&lt;/span&gt; &amp;amp;&amp;amp; ctrlname != &lt;span style="color:blue;"&gt;string&lt;/span&gt;.Empty)&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        {&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            control = page.FindControl(ctrlname);&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        }&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        {&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            &lt;span style="color:blue;"&gt;foreach&lt;/span&gt; (&lt;span style="color:blue;"&gt;string&lt;/span&gt; ctl &lt;span style="color:blue;"&gt;in&lt;/span&gt; page.Request.Form)&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            {&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                &lt;span style="color: rgb(43, 145, 175);"&gt;Control&lt;/span&gt; c = page.FindControl(ctl);&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                &lt;span style="color:blue;"&gt;if&lt;/span&gt; (c &lt;span style="color:blue;"&gt;is&lt;/span&gt; System.Web.UI.WebControls.&lt;span style="color: rgb(43, 145, 175);"&gt;Button&lt;/span&gt; || c &lt;span style="color:blue;"&gt;is&lt;/span&gt; System.Web.UI.WebControls.&lt;span style="color: rgb(43, 145, 175);"&gt;ImageButton&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                {&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                    control = c;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                    &lt;span style="color:blue;"&gt;break&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                }&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            }&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        }&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;return&lt;/span&gt; control;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt; &lt;/div&gt; &lt;div style="margin: 0in 0in 10pt;"&gt;&lt;span style="line-height: 115%;font-family:'Courier New';font-size:10;"  &gt;    }   &lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 10pt;"&gt;&lt;span style="line-height: 115%;font-family:'Verdana','sans-serif';font-size:10;"  &gt;&lt;br /&gt;VB.NET&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;   &lt;span style="color:blue;"&gt;Protected&lt;/span&gt; &lt;span style="color:blue;"&gt;Sub&lt;/span&gt; Page_Load(&lt;span style="color:blue;"&gt;ByVal&lt;/span&gt; sender &lt;span style="color:blue;"&gt;As&lt;/span&gt; &lt;span style="color:blue;"&gt;Object&lt;/span&gt;, &lt;span style="color:blue;"&gt;ByVal&lt;/span&gt; e &lt;span style="color:blue;"&gt;As&lt;/span&gt; System.EventArgs) &lt;span style="color:blue;"&gt;Handles&lt;/span&gt; &lt;span style="color:blue;"&gt;Me&lt;/span&gt;.Load&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;If&lt;/span&gt; Page.IsPostBack &lt;span style="color:blue;"&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            &lt;span style="color:blue;"&gt;Dim&lt;/span&gt; wcICausedPostBack &lt;span style="color:blue;"&gt;As&lt;/span&gt; WebControl = &lt;span style="color:blue;"&gt;CType&lt;/span&gt;(GetControlThatCausedPostBack(&lt;span style="color:blue;"&gt;TryCast&lt;/span&gt;(sender, Page)), WebControl)&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            &lt;span style="color:blue;"&gt;Dim&lt;/span&gt; indx &lt;span style="color:blue;"&gt;As&lt;/span&gt; &lt;span style="color:blue;"&gt;Integer&lt;/span&gt; = wcICausedPostBack.TabIndex&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            &lt;span style="color:blue;"&gt;Dim&lt;/span&gt; ctrl = _&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;             &lt;span style="color:blue;"&gt;From&lt;/span&gt; control &lt;span style="color:blue;"&gt;In&lt;/span&gt; wcICausedPostBack.Parent.Controls.OfType(&lt;span style="color:blue;"&gt;Of&lt;/span&gt; WebControl)() _&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;             &lt;span style="color:blue;"&gt;Where&lt;/span&gt; control.TabIndex &gt; indx _&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;             &lt;span style="color:blue;"&gt;Select&lt;/span&gt; control&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            ctrl.DefaultIfEmpty(wcICausedPostBack).First().Focus()&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;End&lt;/span&gt; &lt;span style="color:blue;"&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;    &lt;span style="color:blue;"&gt;End&lt;/span&gt; &lt;span style="color:blue;"&gt;Sub&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt; &lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;    &lt;span style="color:blue;"&gt;Protected&lt;/span&gt; &lt;span style="color:blue;"&gt;Function&lt;/span&gt; GetControlThatCausedPostBack(&lt;span style="color:blue;"&gt;ByVal&lt;/span&gt; page &lt;span style="color:blue;"&gt;As&lt;/span&gt; Page) &lt;span style="color:blue;"&gt;As&lt;/span&gt; Control&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;Dim&lt;/span&gt; control &lt;span style="color:blue;"&gt;As&lt;/span&gt; Control = &lt;span style="color:blue;"&gt;Nothing&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt; &lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;Dim&lt;/span&gt; ctrlname &lt;span style="color:blue;"&gt;As&lt;/span&gt; &lt;span style="color:blue;"&gt;String&lt;/span&gt; = page.Request.Params.Get(&lt;span style="color: rgb(163, 21, 21);"&gt;"__EVENTTARGET"&lt;/span&gt;)&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;If&lt;/span&gt; ctrlname &lt;span style="color:blue;"&gt;IsNot&lt;/span&gt; &lt;span style="color:blue;"&gt;Nothing&lt;/span&gt; &lt;span style="color:blue;"&gt;AndAlso&lt;/span&gt; ctrlname &lt;&gt; &lt;span style="color:blue;"&gt;String&lt;/span&gt;.Empty &lt;span style="color:blue;"&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            control = page.FindControl(ctrlname)&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;Else&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            &lt;span style="color:blue;"&gt;For&lt;/span&gt; &lt;span style="color:blue;"&gt;Each&lt;/span&gt; ctl &lt;span style="color:blue;"&gt;As&lt;/span&gt; &lt;span style="color:blue;"&gt;String&lt;/span&gt; &lt;span style="color:blue;"&gt;In&lt;/span&gt; page.Request.Form&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                &lt;span style="color:blue;"&gt;Dim&lt;/span&gt; c &lt;span style="color:blue;"&gt;As&lt;/span&gt; Control = page.FindControl(ctl)&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                &lt;span style="color:blue;"&gt;If&lt;/span&gt; &lt;span style="color:blue;"&gt;TypeOf&lt;/span&gt; c &lt;span style="color:blue;"&gt;Is&lt;/span&gt; System.Web.UI.WebControls.Button &lt;span style="color:blue;"&gt;OrElse&lt;/span&gt; &lt;span style="color:blue;"&gt;TypeOf&lt;/span&gt; c &lt;span style="color:blue;"&gt;Is&lt;/span&gt; System.Web.UI.WebControls.ImageButton &lt;span style="color:blue;"&gt;Then&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                    control = c&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                    &lt;span style="color:blue;"&gt;Exit&lt;/span&gt; &lt;span style="color:blue;"&gt;For&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;                &lt;span style="color:blue;"&gt;End&lt;/span&gt; &lt;span style="color:blue;"&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;            &lt;span style="color:blue;"&gt;Next&lt;/span&gt; ctl&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;End&lt;/span&gt; &lt;span style="color:blue;"&gt;If&lt;/span&gt;&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt;&lt;span style=";font-family:'Courier New';font-size:10;"  &gt;        &lt;span style="color:blue;"&gt;Return&lt;/span&gt; control&lt;/span&gt;&lt;/div&gt; &lt;div style="margin: 0in 0in 0pt; line-height: normal;"&gt; &lt;/div&gt; &lt;div style="margin: 0in 0in 10pt;"&gt;&lt;span style="line-height: 115%;font-family:'Courier New';font-size:10;"  &gt;    &lt;span style="color:blue;"&gt;End&lt;/span&gt; &lt;span style="color:blue;"&gt;Function&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-2081083451129560752?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/2081083451129560752/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=2081083451129560752' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/2081083451129560752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/2081083451129560752'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2009/01/maintaining-tab-order-on-page-postback.html' title='maintaining the tab order on page postback'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-2895744872573075125</id><published>2008-01-01T18:15:00.000-08:00</published><updated>2009-02-27T19:14:53.441-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Databound checkboxlist aggravation'/><title type='text'>Databound checkboxlist aggravation</title><content type='html'>Discovered today that the databound checkboxlist items' SELECTED property doesn't reflect what's in the VALUE property. The following code on the checkboxlist databound event hanlder cleared things up for me:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 85%;"&gt;Protected Sub cblRoles_DataBound(ByVal sender As Object, _&lt;br /&gt;ByVal e As System.EventArgs) Handles cblRoles.DataBound&lt;br /&gt;&lt;br /&gt;    Dim loItem As ListItem = Nothing&lt;br /&gt;    For Each loItem In cblRoles.Items&lt;br /&gt;        loItem.Selected = loItem.Value&lt;br /&gt;    Next&lt;br /&gt;End Sub&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now, when the form loads, the items with Value=True now display with the checkbox selected.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-2895744872573075125?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/2895744872573075125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=2895744872573075125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/2895744872573075125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/2895744872573075125'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2008/01/databound-checkboxlist-aggravation.html' title='Databound checkboxlist aggravation'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-6181029613750046258</id><published>2008-01-01T18:13:00.000-08:00</published><updated>2009-02-27T19:14:59.459-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='stored procedure'/><title type='text'>Get the return value from a stored procedure</title><content type='html'>I just burt more hours than I care to admit figuring out this one. I was using an ObjectDataSource to call a stored proc which inserts records into a couple of tables, then returns the identity of the second table. No matter what I did, I could not retrieve the return_value. Instead, I got "Nothing" in the RETURN_VALUE output parameter.&lt;br /&gt;&lt;br /&gt;After reading numerous posts out there, I finally figured out that a Strongly Typed Dataset will populate the RETURN_VALUE with the first column of the first row of the resulting result set. Since my stored proc wan't returning a result set, I was getting nothing. By simply ending the proc with the following, I got my RETURN_VALUE:&lt;br /&gt;&lt;br /&gt; -- Do inserts and stuff...&lt;br /&gt;&lt;br /&gt; SELECT Scope_Identity()&lt;br /&gt; RETURN Scope_Identity()&lt;br /&gt;END&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-6181029613750046258?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/6181029613750046258/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=6181029613750046258' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/6181029613750046258'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/6181029613750046258'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2009/01/get-return-value-from-stored-procedure.html' title='Get the return value from a stored procedure'/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4287798456033767607.post-5461555770115523461</id><published>2008-01-01T18:10:00.000-08:00</published><updated>2009-02-27T19:17:46.015-08:00</updated><title type='text'></title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4287798456033767607-5461555770115523461?l=dotnetfaqcurry.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://dotnetfaqcurry.blogspot.com/feeds/5461555770115523461/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=4287798456033767607&amp;postID=5461555770115523461' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/5461555770115523461'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4287798456033767607/posts/default/5461555770115523461'/><link rel='alternate' type='text/html' href='http://dotnetfaqcurry.blogspot.com/2008/01/blog-post.html' title=''/><author><name>Abhinav Moudgil</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://2.bp.blogspot.com/-eTDWMsiqSt8/TiB-UXDep2I/AAAAAAAAPwk/n8pSjxYSJtI/s220/249972_10150213508273447_632448446_7077653_771488_n.jpg'/></author><thr:total>0</thr:total></entry></feed>
