01-26-2006, 01:04 PM
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?
01-27-2006, 03:11 AM
Here (http://www.codingforums.com/showthread.php?t=75027&highlight=postback) is a recent thread with a very similar issue to yours. Maybe it will be of some help.
01-27-2006, 10:51 AM
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
02-04-2006, 06:20 PM
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:
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:
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.