Jump to content
Xtreme .Net Talk

Checkbox values are not passing from one page to another


Recommended Posts

Posted

I am working on checkbox. I have my first page as checkbox.aspx. In this page,

i have three fields in my checkboxes as nike,addidas and slazenger. But when

i pass value to my next page(checkbox-result.aspx) through server.transfer

method,nothing get displayed.None of the values are passing from first page

to second page.

 

I am very worried.

CAn any one help.

 

Regards

SAlman

 

////////////// Checkbox.aspx ////////////////////

<script language="vb" runat="server">

Sub Pressme(Sender as Object, E as EventArgs)

server.transfer("Checkbox-result.aspx")

End sub

</script>

 

</HEAD>

<body MS_POSITIONING="GridLayout">

<form id="Form1" method="post" runat="server">

<asp:CheckBoxList ID="checking" style="Z-INDEX: 101; LEFT: 8px; POSITION: absolute; TOP: 8px"

runat="server">

 

<asp:ListItem Text="Nike" Value="Nike"></asp:ListItem>

<asp:ListItem Text="Addidas" Value="Addidas" Selected="True"></asp:ListItem>

<asp:ListItem Text="Slazenger" Value="Slazenger"></asp:ListItem>

 

 

</asp:CheckBoxList>

 

<asp:Button id="Button1" nclick="Pressme" style="Z-INDEX: 102; LEFT: 16px; POSITION: absolute; TOP: 112px" runat="server" Text="Get Result"></asp:Button>

 

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

 

///////////checkbox-result.aspx///////////////

 

 

<%=Request.form("checking")%>

Posted

i have a similar problem but as of yet i have not been able to solve it

 

The only method that i have got to work it using the query string method when i open the next page (in your case i think it was check-box-result.aspx)

 

but this doesnt allow for complex / long strings

 

see this note

 

http://www.xtremedotnettalk.com/t76937.html

without time nothing ever ends

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...