Last post Oct 29, 2008 03:18 PM by astinus
Oct 04, 2008 08:06 AM|codetoad|LINK
I have a problem implementing the mobile command button as the image button. The command button is suppose to behave like an ImageButton is we set its Imageurl property.But this does not happens.
Following are the issues when i create a mobile command on the page load programmatically with its imageurl property set to and image url and click event mapped to a event handler
1.The problem is that when i access the page from a mobile device the the image button dosent shows the image which i set in the imageurl property, althought it shows if i view the page on the pc browser.
2.Second problem is that the event doesnt fine if i click the button.this is the problem with pc as wel as mobile browsers.
Following is the code that i use:
System.Web.UI.MobileControls.Command cd =
Although i got the solution to the first problem from this solution
Please suggest me a solution for this problem. I am using vs2005
Mobile Web form
adaptive rendering mobile device nokia
Mobile Web Forms Visual Studio 2003
Mobile Web Forms
Mobile controls asp.net httpbrowsercapabilities ismobiledevice
MobileOptimized desktop layout mobile
mobile device asp link buttons
Oct 09, 2008 03:38 AM|Guang-Ming Bian - MSFT|LINK
Hi codetoad ,
I tried a sample with vs20005 mobile web form, it works fine. Image are visiable, event are fired perfectly.
I didn't do any configuration.
The sample I tried is same to you.
If you still can't solve it, can you please told how to reproduce it.
Guang-Ming Bian - MSFT
Oct 10, 2008 06:45 AM|codetoad|LINK
Have u tried with mobile device or mobile emulator?
I am using vs2005 professional version (8.0.50727.42) Fremework: 2.0.50727.I created a simple mobile webform and placed a mobile command button on it and I give an image url in the imageurl property of the button.In the commandbutton click event i write
some code for ex say Response.Write("Hello")
The problem while executing the code in Mobilebrowser is that the image is not displayed and the event is not fired when i click the button.But is pc browser the image is displayed but then , the event is not fired.
I got the solution for event firing problem solved for both pc and mobile browser on this link --->
But but the problem of display of the image still remains for mobilebrowsers
Look at a similar post----
Oct 29, 2008 03:18 PM|astinus|LINK
Hello!, for the second problem.. go to this post
The first issue, depends on the cellphone you are using. In Blackberrys the button won't show.. but in HTM yes.
Sorry for the bad English.