asp.net - DataList control -
I used the 2005 VS 2005 web site project as VS And find out that the html generated by my datalist control was changed. MadStandard:
& gt; Itemmetlet & gt; & Lt; ASP: label ID = "cellhelbell" runat = "server" text = '& lt;% # Eval ("cell")% & gt; Visible = '& lt;% # Eval ("cell"). ToString ()! = "0"%> / & Gt; & Lt; ASP: text box id = "celltextbox" runat = "server" text = '& lt;% # bind ("cell")% & gt; Visible = '& lt;% # Eval ("cell"). ToString () == "0"%> / & Gt; & Lt; / ItemTemplate & gt;
Now it always generates the integers of duration , duration and input . I use the DataSource property to bind the DataList control. My Page Code:
Public Zero Page_load (Object Sender, EventAgds E) {If (! This .asportback) myControl.DataBind (); }
MyControl (Datlist Control Controll) code:
public class Mycontrol {Private DataTable myDataTable = null; Public DataTable MyDataTable; {Set {reference. Session ["myadatableable"] = myDataTable = value; } Get {if (myDataTable! = Tap) back to myDataTable; If (context sessions! = Null & reference session ["MyDataTable"] = null) {myDataTable = (DataTable) context. Session ["MyDataTable"]; } Else {myDataTable = GetData (); Reference. Session ["meadatableable"] = myadabal; } Back to myDataTable; }} Public Override Zero DataBind () {MyDataList.DataSource = MyDataTable; MyDataList.DataBind (); } Secure Zero checkbutton_lick (Object Sender, EventArgs e) {// MyDataTable}}
This page will have a simple table with some initial cells and another user should log in. Can I use the dentist control to implement it? And can I use the item templates to enter the user in some cells and get postback?
Comments
Post a Comment