-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: jeff
Message 1 in Discussion

Hi guys,
I have an asp.net page "a.aspx" which contains some textboxes. I have posted the 
contents of this page to next page "b.aspx" using Server.Transfer.
In "b.aspx" i have a datagrid which is generated from the database satisfying the 
criteria specified in "a.aspx". In this datagrid i have a column containing checkbox. 
When I click the submit button in this page i'm not getting the checked value of the 
checkbox. It always shows Chekbox.checked =false eventhough i check it.

My code is as follows : -
Private Sub submito_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) 
Handles submito.Click

For chekctr = 0 To Me.DataGrid1.Items.Count - 1
  Dim chk1 As New CheckBox()
            chk1 = CType(Me.DataGrid1.Items(chekctr).FindControl("mychek"), CheckBox)
           
            If chk1.Checked Then
               Response.Write("hello")
            end if
next
end sub

Please let me know if there is any mistake in this code.

Note : When i submit "a.aspx" using 
Server.Transfer("b.aspx", True)
First time in the address bar it shows "a.aspx". Then when i click "submito" button 
the address bar changes to  "b.aspx"

Also is this problem related to Server.Transfer

Thanks in advance
Jeff


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to