Posts

Showing posts from 2011

call webuser control dynamically

Image
Introduction: Hello friends, in this article i will explain that how we can call webuser control at the .cs page dynamically using sapx.cs code. The webuser control is very useful control in asp.net. with the help of the webuser control the part of the code can be seprated from the .aspx.cs page. According to my experience , we can use webuser control where some designning issues are created, then you can create webuser control and call that webuser control at the part of the .aspx page. Implementation: create a new website abb a page named table_call_web_user_control.aspx.   and a webuser control named talble_user_control.ascx.   Below   i am giving the complete code for the html page and .cs page and the ascx page and ascx.cs page.  Code for talble_user_control.ascx: <% @ Control Language ="C#" AutoEventWireup ="true" CodeFile ="talble_user_control.ascx.cs" Inherits ="talble_user_control" %> < table >       ...

Row command event of the gridview

Image
Introduction: Hello guys, in this article i will explain that how we can   work with the rowcommand event of the gridview. This article will very helpful for the .net developers. Implementation: Create a page named rw_commamnd.Place   four textboxes and a button and a gridview. And set their id as txt_name,txt _age,txt_paswrd and txt_repswrd respectively.   Code for .aspx page: head runat ="server">     < title > Row command event </ title >   </ head > < body >     < form id ="form1" runat ="server">     < div >             < table >             < tr >                 < td >             ...