Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2006
    Location
    the netherlands
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mobile problems wirh postback

    Hello,

    I'm integrating some mobile pages inside an existing webapplication.

    On a certain mobile ASP.net page I have several images to perform some simple actions like: Save, new, delete. How can I determine which image has beenclicked when having them all perform a '__Dopostback('Form1', 'ImageX') by entering '#Form1' in the navigateurl?

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,073
    Thanks
    2
    Thanked 22 Times in 22 Posts
    Here is a recent thread with a very similar issue to yours. Maybe it will be of some help.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    New to the CF scene
    Join Date
    Jan 2006
    Location
    the netherlands
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello Vinyl-junkie, The example mentioned is probably for the standard ASP/ASPX but doesn't work on the mobile pages. In ASP.NET there is a separate section of controls for mobilepages, and the solution mentioned is not supported by the mobile:image

  • #4
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,073
    Thanks
    2
    Thanked 22 Times in 22 Posts
    I found some additional information which may be of some help. Let's say that you have a textbox and submit button on form1 that passes information from the textbox on form1 to some label on form2. If your two forms are on the same web page, your code might look something like this:

    Code:
    lblResults.Text = "You entered " & TextBox1.Text
    Me.Activeform = form2
    If your two forms are on different pages, here's how you pass information to form2:

    Code:
    Response.Redirect = pagename#form2
    where pagename is the name of the page containing form1, and form2 is the name of the form on the second page.

    I use Visual Studio but don't have mobile controls with it, I guess that's a separate download, so I can't test this. Anyway, try this and see if it works for you.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •