anyone can give me a hint? thanks
BigGirlBigEyes
Posts
-
how to build a chat system? -
Curious!All my linkbutton disappeared,why!It's a small but curious question. All my linkbutton in design page has disappeard on runtime,but in design page and .ASCX file they are there.They are put in a table. such as
<asp:LinkButton id="cmdCreateArticle" Runat="server" CssClass="CommandButton">新文章</asp:LinkButton>
Thank you in advance. -
how to change datalist's bind fied by codebehind code?Thank you for your reply. I want to dynamically created different template,not statically. Now i have solved my problem. I define a datalist in html with ItemTemplate be null,then create serval user control for template,then load them with my different option. Thanks!;P
-
Help me!Why my datalist can't display binding data?I am troubled with my datalist which can't display binding data I am looking for your help. In .ascx, I defined a datalist In .ascx.vb,I have following codes ds = ConvertDataReaderToDataSet(ams.GetArticles("", "", "", "", "", 1, 0)) myList.DataSource = ds.Tables(0).DefaultView myList.DataKeyField = "ID" myList.DataMember = "Title" myList.DataBind() *GetArticles() is a store-process which return datareader Please help me . I'll be online waiting...:((
-
how to change datalist's bind fied by codebehind code?Generally,we can control datalist's display field by databinding in html,such as <%# Container.DataItem("Title") %> Now i have a problem,I want to change this bind field by my option in codebehind file,such as i want to display Title+Digest or Column+Title so who can tell me how to make this done? Thanks in advance! I'm terribly troubled by this problem and looking forward to your reply.
-
how to change datalist's bind fied by codebehind code?Generally,we can control datalist's display field by databinding by html,such as <%# Container.DataItem("Title") %> Now i have a problem,I want to change this bind field by my option in codebehind file,such as i want to display Title+Digest or Column+Title so who can tell me how to make this done? Thanks in advance! I'm terribly troubled by this problem and looking forward to your reply.
-
how to change datalist's bind fied?Pls give me some suggestion!Generally,we can control datalist's display field by databinding by html,such as <%# Container.DataItem("Title") %> Now i have a problem,I want to change this bind field by my option in codebehind file,such as i want to display Title+Digest or Column+Title so who can tell me how to make this done? Thanks in advance! I'm terribly troubled by this problem and looking forward to your reply.
-
How to specified datalist's style in vb.net?I want to specified my datalist's style on run-time by program,not on design by html.Such as,the style may be title+author or column+title,because i want to change the style by my option ,so i have to bind data when run-time. Following is my code,i just want to test it, but it doesn't work,even doesn't display article list. dim ams as new AMSystem() myList.DataSource=convertdatareadertodataset(ams.GetArticles(params)) myList.DataKeyField = "ID" myList.DataMember = "Title" myList.DataBind() Would you do me a favor? Looking forward to your reply.;)
-
How to specified datagrid's row backcolorI have solved my problem by your hints.Perhaps I didn't express my problem very well. Anyhow,thanks a lot. Following are my code: :-O:-O Sub dgArticles_ItemDataBound(ByVal sender As Object, ByVal e As DataGridItemEventArgs) Dim item As DataGridItem For Each item In dgArticles.Items 'put your judge condition here 'assumed it return 1 and 2 Select Case CurrentStatus Case "1" item.BackColor = Color.Coral Case "2" item.BackColor = Color.Beige Case Else 'do nothing End Select Next item end sub I hope I can get your help when i am in need on program. May you happy!
-
How to specified datagrid's row backcolorAs my articles in datagrid has different status,so i want to differ them by different backcolor,that is i want a record displayed in datagrid changed its backcolor by its status. Looking forward to your reply. Thanks a lot!