DataBindList Question

2 views
Skip to first unread message

Arun

unread,
Oct 6, 2005, 7:41:58 AM10/6/05
to .NetIndia
Hi Frndz,

How to pass the DataBind value of checkBoxList to Next Page?

Regards,
Arun.M.D

Thread

unread,
Oct 6, 2005, 10:10:02 AM10/6/05
to .NetIndia
Hi Arun,
Can you explain the scenario properly. Like how many items are there in
the form etc.
Regards
Thread

Arun

unread,
Oct 7, 2005, 2:13:59 AM10/7/05
to .NetIndia
Hi,

My problem is ..........

I want to display the Registered users from a table and also i use that
user data to modify or delete also.

1) I like to display user details by using datalist.

=====> I displayed this details by using data list coding. The listed
value would be like this

Select UserName UserType
[checkBox] [U.Name] [U.Type]

This will be shown Perfectly.

Now i Would Like to Modify User Details........By use of checkbox
selection.

Problem ::: When i click checkboxes all checkboxes are selected. and
also How to pass checkBox dataFieldValue to Next Page??

My Coding::::
myradio.DataSource = ds.Tables("Adm_Super_LoginMaster")
myradio.DataBind()

<asp:RadioButtonList Runat="server" ID="myradio" DataTextField="Adm_id"
DataValueField="Adm_id">
<asp:ListItem></asp:ListItem>
</asp:RadioButtonList>

Please Help me to solve this Problem........

Thread

unread,
Oct 7, 2005, 5:02:18 AM10/7/05
to .NetIndia
This should be the tempalte col.

<asp:TemplateColumn>
<ItemStyle Width="1%"></ItemStyle>
<ItemTemplate>
<asp:CheckBox id="chkTemplate" runat="server"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>

In the C# or VB.Net u check this

For iCount = 0 To Grid.Items.Count - 1
If CType(iGrid.Items(iCount).FindControl("chkTemplate"),
CheckBox).Checked Then

// Your code goes here
end if
Next

Hope this helps.

Thread

unread,
Oct 7, 2005, 10:55:48 AM10/7/05
to .NetIndia
Sorry i gave you code for DataGrid. Will give u the code soon.

Regards
Thread

Reply all
Reply to author
Forward
0 new messages