Hi Rajendra,
I created a radio button in page_load and it showed
up fine.
But I don't know how to tie the CommandName property
of the button to the click event.
Private Sub Page_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
If Not Page.IsPostBack Then
Dim pnl1 As New Panel
pnl1.Visible = True
Page.FindControl("Form1").Controls.Add(pnl1)
Dim radio1 As New RadioButton
radio1.ID = "radio1"
radio1.Checked = False
radio1.GroupName = "COS"
radio1.Attributes.Add("onclick",
"javascript:toggle('YES','radGrantAllPermissions');")
pnl1.Controls.Add(radio1)
Dim btn As New Button
btn.Text = "Submit"
btn.CommandName = "SubmitRadio"
pnl1.Controls.Add(btn)
end if
End Sub
' this never gets called :(
Sub SubmitRadio()
Response.Write("Hello")
End Sub
How can I get it to call SubmitRadio?
Thanks,
Burak
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/