Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Rock #1
What's the trick to getting a checkbox value
The results of checkbox.checked always returns false even when it's true.
What am I missing or doing wrong or what's the secret???
<asp:TemplateColumn HeaderText="Validated">
<ItemTemplate>
<asp:checkbox id=chk1 runat="server" Checked='<%#
DataBinder.Eval(Container.DataItem,"Validated ") %>'>
</asp:checkbox>
</ItemTemplate>
<EditItemTemplate>
<asp:CheckBox id=chk2 runat="server"></asp:CheckBox>
</EditItemTemplate>
</asp:TemplateColumn>
Dim chkSelected as checkbox
chkSelected = .FindControl("chk2")
if chkSelected is nothing then
else
if chkSelected.checked then
response.Write("True")
else
Response.Write("False")
end if
end if
Rock Guest
-
Cell Phone Trick -
Cell Phone Trick - m4w - 42 -------------------------------------------------------------------------------- Reply to:... -
trick help
Hi. Can anyone help me with the problem: I would like that the document colour changes from one to another in one swf. How? Thanx, Benjamin -
trick the server.
On Tue, 22 Jul 2003, Alan Coopersmith wrote: An alternative would be to set up the automounter (as intended out of the box). That way, it... -
Photoshop trick
Filter>Artistic>Cutout try playing with that. -ninja -
Perhaps an XML file might do this trick?
I've got an application that many supervisors are going to use. However, each one needs to see a different part of the information. Some... -
Lefty #2
Re: What's the trick to getting a checkbox value
Are you testing for postbacks in the page_load handler?
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
If Not Page.IsPostBack Then
BindGrid()
End If
End Sub
Working with CheckBoxes within DataGrid Control
[url]http://www.mastercsharp.com/article.aspx?ArticleID=81&&TopicID=2[/url]
Lefty Guest



Reply With Quote

