hi...
im new to asp.net and trying to build a website...
i have got a database in ms-access and developing my application in asp.net in
vb
i want to create radiobuttons for each record in my table and bind it to datagrid.
also when the user clicks the radiobutton placed before the specified record,some of the datafields(name,email etc) shld be binded to some of the textboxes that are placed on the same form...
but nt getting an idea to place my self out of this trap...
here's the code that i have used for it...
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:datagrid id="DataGrid1" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:TemplateColumn HeaderText="FirstName">
<ItemTemplate>
<input type="radio" name="optSelectedName" value='<%#DataBinder.Eval(Container.DataItem, "email") %> '
onclick="javascript
:Textbox1.value = this.value;">'<%#DataBinder.Eval(Container.DataIte m, "email") %>'
<br>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid>
<div style="VISIBILITY: hidden"><asp:textbox id="TextBox1" style="Z-INDEX: 102; LEFT: 216px; POSITION: absolute; TOP: 264px"
runat="server"></asp:textbox></div>
<asp:button id="Button1" style="Z-INDEX: 103; LEFT: 152px; POSITION: absolute; TOP: 320px" runat="server"
Text="Button"></asp:button></form>
</body>
and
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Response.Write("You have selected :" & TextBox1.Text)
End Sub
any help would be gr8..
thnx