form submit

Discussion in 'ASP .Net' started by Saifee, Dec 8, 2003.

  1. Saifee

    Saifee Guest

    I have 2 aspx pages
    on a.aspx i have a checkboxlist control
    i check some checkboxes on a.aspx and then click on submit
    button to go to b.aspx
    how can i check the selected checkboxes from checkbox list
    control on b.aspx
    pls help
    Saifee, Dec 8, 2003
    #1
    1. Advertising

  2. This article could help you:
    http://www.aspalliance.com/kenc/passval.aspx

    Aside from that, here's another nice, simple way to pass values from one
    page to another:
    (VB.NET code)

    'Add data to the context object before transferring
    Context.Items("myParameter") = x
    Server.Transfer("WebForm2.aspx")

    Then, in WebForm2.aspx:

    'Grab data from the context property
    Dim x as Integer = CType(Context.Items("myParameter"),Integer)

    Of course there are a number of ways to pass values from one page to
    another, such as using the querystring, cookies, session,
    context, saving to a temporary table in the database between each page, etc.
    You'll have to decide which technique is best for your application.
    Here are several good articles on the subject to help you decide.
    http://msdn.microsoft.com/msdnmag/issues/03/04/ASPNETUserState/default.aspx

    http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=600

    http://www.dotnetbips.com/displayarticle.aspx?id=79

    --
    I hope this helps,
    Steve C. Orr, MCSD, MVP
    http://Steve.Orr.net
    Hire top-notch developers at http://www.able-consulting.com



    "Saifee" <> wrote in message
    news:077601c3bd7f$db676af0$...
    > I have 2 aspx pages
    > on a.aspx i have a checkboxlist control
    > i check some checkboxes on a.aspx and then click on submit
    > button to go to b.aspx
    > how can i check the selected checkboxes from checkbox list
    > control on b.aspx
    > pls help
    Steve C. Orr [MVP, MCSD], Dec 8, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page