phreaky Posted June 7, 2004 Posted June 7, 2004 I'm starting Web Design for mobile devices, in fact I'm coding a service of images for WAP phones. I have a problem, I'm starting first with the basics. I first make a site that loads a preview of the image (the image but very little) and then with a link button I hide some text and display the same image but larger. That works perfectly on a web browser...but when I try to access it through my cell phone, it doesn't make the change of images, it just does nothing. Why could this be? I'm associating the following code to my link button: Private Sub link_button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles link_button1.Click img_preview.Visible = False lbl_preimage1.Visible = False img_download.Visible = True txt_download.Visible = True link_button1.Visible = False End Sub As you can see, it's just hiding and showing images and textboxes. Why it doesn't work in my cell phone? What should I do to reload the page with the new settings? Quote tHe pHrEaKy
bob01900 Posted June 8, 2004 Posted June 8, 2004 I am guessing that the browser on your mobile device does not support client-side scripts (ie. Javascript/VBScript). Just for testing purpose, try using a normal Button instead of a Link Button (which requires client-side script to do post back) and see if it works. Quote
phreaky Posted June 8, 2004 Author Posted June 8, 2004 I am guessing that the browser on your mobile device does not support client-side scripts (ie. Javascript/VBScript). Just for testing purpose' date=' try using a normal Button instead of a Link Button (which requires client-side script to do post back) and see if it works.[/quote'] Yes, in fact I though the same as you and changed my code to use a normal HTML Button with the same validation, but nothing happens anyway, it still does not work (only in my cell phone browser, it continues working in any other browser). Well.., any ideas? Quote tHe pHrEaKy
bob01900 Posted June 8, 2004 Posted June 8, 2004 Html buttons has to be 'run at server' in order to take events. The normal Button I was referring to is a Web Form Control button. But as long as you set your html button to 'run at server', it should be fine. Can you check the html code generated by the button does not have client-side scripts (eg. no "onClick")? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.