stcheng
4/3/2006 3:30:00 AM
Hi Kapil,
Thank you for posting and sorry for the delay.
Regarding on the two issues of the ASP.NET Mobile "Command" control you
mentioned, based on my research, here are some of my finding:
1. As for the "click" event, there does exist an known issue that the
command control's Click event will not fire correctly when the ImageUrl is
set. And this problem is planed to be fixed in the next version. Currently
there is a workaround:
because the problem is actually caused by something not stored correctly
with the ViewState(if the viewstate is empty ...), we can manually store
some data into viewState in the first request of the page so as to make it
non-empty. e.g:
# suppose there is a Label control (lblMessage) on the page
===========
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
lblMessage.Text = "Init Value";
}
}
===============
Then, the button's click event can fire correctlly (with ImageUrl set).
2. As for the Image's displaying in WML client, so far I haven't found any
document on this. However, it seems that the image info is not output for
WML client. I'll do some further research on this and will update you if I
got any updates.
Thanks for your understanding.
Regards,
Steven Cheng
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)