[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.mobile

mobile command with image (bug???

kapilp

3/28/2006 12:36:00 AM

hello,

i have 2 issues when using the mobile command object with its ImageURL
property set.

1- when the property is set the image never shows up, only the text on open
ware simulator and on every cell phone i have tried. I know that the image is
valid because if i use the same image with the mobile image control or the
mobile link control it works fine.

2- when i use the command object with the ImageURL property set its Click
event never hits. as soon as i remove the imageURL then the event hits.

Seems like the 2 issues could be realated. has anyone encountered this???

Thanks
kapilp
3 Answers

kapilp

3/28/2006 11:56:00 PM

0

I am experiencing this issue on Openwave version 7 emulator and I am
experiencing only the 2nd problem in internet explorer. I am using visual
studio 2005 with asp.net 2.0.

I think I know why its not rendering the image. If I look at the source of
the wml its:

<p:do type="accept" label="Login">
<p:go
href="/PhoneFling/(X(1)S(omj1wxaljgcsh045ziekrs45))/Default.aspx?ReturnUrl=%2fPhoneFling%2fHome.aspx&AspxAutoDetectCookieSupport=1" method="post">
<p:postfield name="__VIEWSTATE"
value="/wEXAQUDX19QDwUIZnJtTG9naW5kuxODygIHWlrY59nhTqGysdluZR0="/><p:postfield
name="__EVENTTARGET" value="cmdLogin"/><p:postfield name="txtScreenName"
value="$$(txtScreenName:noesc)">
</p:postfield>
<p:postfield name="txtPassword" value="$$(mcsvhhvpp0:noesc)">
</p:postfield>
</p:go>
</p:do>

There is no mention of any image here, even though the imageURL of the
command is set. There should be a mention of the image around the <do> tag i
think. Is .net not rendering it?? Is this a bug???

I tried to trick it by calling the __doPostBack() function from an mobile
image object, which works in a browser but since there is not javascript in
wml it wont work on mobile phones.

Does anyone have any ideas? I'm mmmeeellltttiiinnnggg.

Aytaç ÖZAY

4/9/2006 5:58:00 PM

0

Hi,

Can you set your image into your Mobil Web Site, because your command must
contain a web url adress. I think you make a mistake about setting the
imageurl of your command.

Note : I tried this situation and there was no error, I get.

Have a nice work,

Aytaç ÖZAY
Software Developer

"kapilp" <kapilp@discussions.microsoft.com> wrote in message
news:FB716FE1-2475-4AEB-8642-214A54DF112B@microsoft.com...
>I am experiencing this issue on Openwave version 7 emulator and I am
> experiencing only the 2nd problem in internet explorer. I am using visual
> studio 2005 with asp.net 2.0.
>
> I think I know why its not rendering the image. If I look at the source of
> the wml its:
>
> <p:do type="accept" label="Login">
> <p:go
> href="/PhoneFling/(X(1)S(omj1wxaljgcsh045ziekrs45))/Default.aspx?ReturnUrl=%2fPhoneFling%2fHome.aspx&AspxAutoDetectCookieSupport=1"
> method="post">
> <p:postfield name="__VIEWSTATE"
> value="/wEXAQUDX19QDwUIZnJtTG9naW5kuxODygIHWlrY59nhTqGysdluZR0="/><p:postfield
> name="__EVENTTARGET" value="cmdLogin"/><p:postfield name="txtScreenName"
> value="$$(txtScreenName:noesc)">
> </p:postfield>
> <p:postfield name="txtPassword" value="$$(mcsvhhvpp0:noesc)">
> </p:postfield>
> </p:go>
> </p:do>
>
> There is no mention of any image here, even though the imageURL of the
> command is set. There should be a mention of the image around the <do> tag
> i
> think. Is .net not rendering it?? Is this a bug???
>
> I tried to trick it by calling the __doPostBack() function from an mobile
> image object, which works in a browser but since there is not javascript
> in
> wml it wont work on mobile phones.
>
> Does anyone have any ideas? I'm mmmeeellltttiiinnnggg.


kapilp

4/10/2006 2:26:00 AM

0

Thanks for the reply Aytac. I have spoken to MS support. There is a bug in
the WML Adapter set regarding this.