Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Developer
alau
Posts: 4
Registered: ‎09-12-2008
My Device: Not Specified

Browser not submitting ASP.NET form

Hey Web Development,

 

I'm having an issue with the BlackBerry browser posting back to the server. I'm testing using the BB 4.2.0, BB 4.2.1, and BB 4.2.2 devices with MDS versions 4.1.2 and 4.1.4 which are both behaving similarly for my purposes.

 

With MDS, the device is able to initially load my aspx page. However, submit forms only work the 4.2.0 Device Simulator Blackberry Browser on a BB 8100 and not on a 4.2.1 Device Browser, nor the 4.2.2 Device Browser. 

 

As for the ASP.NET aspx page, efforts have been made to ensure that no javascript is loaded on the client side and no tables, CSS, etc, is required. See the ASP.NET HTML output below. 

 

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd"><!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> --><html xmlns="http://www.w3.org/1999/xhtml"> <head><title> Mobile Donate</title><link rel="stylesheet" media="screen" type="text/css" href="simple.css" /></head> <body> <form name="aspnetForm" method="post" action="MobileDonate.aspx?EventID=9054&amp;LangPref=en-CA" id="aspnetForm"><div><input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTEwNzgxMDcyNg8WBh4HRXZlbnRJRALeRh4MTGFuZ3VhZ2VDb2RlBQVlbi1DQR4OUmVnaXN0cmF0aW9uSURmFgJmD2QWAgIDD2QWAgIBD2QWWAIBD2QWAgIBDxYCHgRUZXh0BQ9NYWtlIGEgRG9uYXRpb25kAgUPZBYCAgEPFgIfAwUkVGhhbmsgeW91IGZvciB5b3VyIGdlbmVyb3VzIHN1cHBvcnQuZAILDxYCHwMFFFBlcnNvbmFsIEluZm9ybWF0aW9uZAINDw8WAh4MRXJyb3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zLMHAvL1y9UDAszZsO0DAtL/yfAMAqnRg9kCArbRg9kCArfRg9kCArTRg9kCArXRg9kCArLRg9kCArPRg9kCArDRg9kCAqHRg9kCAq7Rg9kCArbRw9oCArbRz9oCArbRy9oCAoGo2OUKAomo2OUKAoGo9OUKAp6omOYKAp6olOYKAp6okOYKAp6orOYKAp6oqOYKAp6opOYKAvKaq/YCArHE9KsEm786/Nrix/HgqrIkYw602SEWlXw=" /></div> <div> <div id="ctl00_body_divTitle"> Make a Donation</div> <div id="ctl00_body_divSubTitle"> </div> <div id="ctl00_body_divDesc"> Thank you for your generous support.</div> <br /> <input type="image" name="ctl00$body$btnSubmit" id="ctl00_body_btnSubmit" src="images/hiddenSubmitPixel.gif" style="border-width:0px;" /><br /> <br /> <br /> <b> Personal Information</b> <hr /> &nbsp;<br /> <b> First Name: </b> <input name="ctl00$body$txtFirstName" type="text" size="15" id="ctl00_body_txtFirstName" /><span id="ctl00_body_labelFirstNameRequired" class="req">*</span><br /> <b> Last Name: </b><input name="ctl00$body$txtLastName" type="text" size="15" id="ctl00_body_txtLastName" /><span id="ctl00_body_labelLastNameRequired" class="req">*</span><br /> &nbsp;<br /> <b> Address Line 1: </b><input name="ctl00$body$txtAddrLine1" type="text" size="15" id="ctl00_body_txtAddrLine1" /><span id="ctl00_body_labelAddrLine1Required" class="req">*</span><br /> <b> Address Line 2: </b><input name="ctl00$body$txtAddrLine2" type="text" size="15" id="ctl00_body_txtAddrLine2" /><br /> <b> City: </b> <input name="ctl00$body$txtCity" type="text" size="10" id="ctl00_body_txtCity" /> <span id="ctl00_body_labelCityRequired" class="req">*</span><br /> <b> Province/State: </b><select name="ctl00$body$ddlProvince" id="ctl00_body_ddlProvince"> <option value="AB">Alberta</option> <option value="BC">British Columbia</option> <option value="MB">Manitoba</option> <option value="NB">New Brunswick</option> <option value="NL">Newfoundland and Labrador</option> <option value="NT">Northwest Territories</option> <option value="NS">Nova Scotia</option> <option value="NU">Nunavut</option> <option selected="selected" value="ON">Ontario</option> <option value="PE">Prince Edward Island</option> <option value="QC">Quebec</option> <option value="SK">Saskatchewan</option> <option value="YT">Yukon</option></select> <span id="ctl00_body_labelProvinceRequired" class="req">*</span><br /> <b> Postal/Zip Code: </b><input name="ctl00$body$txtPostalCode" type="text" maxlength="7" size="7" id="ctl00_body_txtPostalCode" /><span id="ctl00_body_labelPostalCodeRequired" class="req">*</span><br /> <b> Country: </b>CANADA <input type="submit" name="ctl00$body$btnChange" value="Change" id="ctl00_body_btnChange" /><br /> &nbsp;<br /> <b> Phone: </b> <input name="ctl00$body$txtAreaCode" type="text" size="4" id="ctl00_body_txtAreaCode" /> <input name="ctl00$body$txtTelephoneNumber" type="text" size="15" id="ctl00_body_txtTelephoneNumber" /><span id="ctl00_body_labelPhoneNumberRequired" class="req">*</span><br /> <b> Email: </b><input name="ctl00$body$txtEmail" type="text" id="ctl00_body_txtEmail" /><span id="ctl00_body_labelEmailRequired" class="req">*</span><br /> &nbsp;<br /> &nbsp;<br /> <b> Payment Information</b> <hr /> <div> <!-- Payment Methods Panel --> <div id="ctl00_body_ucMobilePayments_panelPaymentMethods"> <label for="ctl00_body_ucMobilePayments_ddlPaymentMethods"> Payment Method: <br /> </label> <select name="ctl00$body$ucMobilePayments$ddlPaymentMethods" id="ctl00_body_ucMobilePayments_ddlPaymentMethods"> <option selected="selected" value="One Time Credit Card">Single Credit Card Donation</option> <option value="Monthly Credit Card">Monthly Credit Card Donation</option> </select> </div> <br /> <label for="ctl00_body_ucMobilePayments_txtAmount"> Donation Amount: </label> <input name="ctl00$body$ucMobilePayments$txtAmount" type="text" size="6" id="ctl00_body_ucMobilePayments_txtAmount" /><span id="ctl00_body_ucMobilePayments_labelAmountRequired" class="req">*</span> <!-- Gift Aid Panel --> <div id="ctl00_body_ucMobilePayments_panelGiftAid"></div> <!-- Credit Card Panel --> <div id="ctl00_body_ucMobilePayments_panelCreditCard"> <div id="divCreditCardType"> <label for="ctl00_body_ucMobilePayments_ddlCreditCardType0"> Card Type: </label> <select name="ctl00$body$ucMobilePayments$ddlCreditCardType0" id="ctl00_body_ucMobilePayments_ddlCreditCardType0"> <option value="Amex">American Express</option> <option value="MasterCard">MasterCard</option> <option selected="selected" value="Visa">Visa</option> </select> <span id="ctl00_body_ucMobilePayments_labelCreditCardRequired" class="req">*</span> </div> <!-- Credit Card Number Entry --> <div id="ctl00_body_ucMobilePayments_divCreditCardNumber"> <label for="ctl00_body_ucMobilePayments_txtCreditCardNumber"> Card Number: </label> <input name="ctl00$body$ucMobilePayments$txtCreditCardNumber" type="text" maxlength="24" size="20" id="ctl00_body_ucMobilePayments_txtCreditCardNumber" /><span id="ctl00_body_ucMobilePayments_labelCreditCardNumberRequired" class="req">*</span> <div id="ctl00_body_ucMobilePayments_divCreditCardVerification"> <label for="ctl00_body_ucMobilePayments_txtCreditCardVerification"> CVV: </label> <input name="ctl00$body$ucMobilePayments$txtCreditCardVerification" type="text" maxlength="4" size="4" id="ctl00_body_ucMobilePayments_txtCreditCardVerification" /><span id="ctl00_body_ucMobilePayments_labelCreditCardVerificationRequired" class="req">*</span> <div id="creditCardVerificationInfo"> </div> </div> <!-- Card Holder Name --> <div id="divCardHolderName"> <label for="ctl00_body_ucMobilePayments_txtCardHolderName"> Card Holder: </label> <input name="ctl00$body$ucMobilePayments$txtCardHolderName" type="text" maxlength="255" size="20" id="ctl00_body_ucMobilePayments_txtCardHolderName" /> <span id="ctl00_body_ucMobilePayments_labelCardHolderNameRequired" class="req">*</span> </div> <!-- Expiry Date --> <div id="divCardExpiration"> <label for="ctl00_body_ucMobilePayments_ddlCreditCardExpiryMonth"> Expiry Date: </label> <br /> <label for="ctl00_body_ucMobilePayments_ddlCreditCardExpiryMonth"> Month </label> <select name="ctl00$body$ucMobilePayments$ddlCreditCardExpiryMonth" id="ctl00_body_ucMobilePayments_ddlCreditCardExpiryMonth"> <option value="0"></option> <option value="1">01</option> <option value="2">02</option> <option value="3">03</option> <option value="4">04</option> <option value="5">05</option> <option value="6">06</option> <option value="7">07</option> <option value="8">08</option> <option value="9">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> </select> <label for="ctl00_body_ucMobilePayments_ddlCreditCardExpiryYear"> Year </label> <select name="ctl00$body$ucMobilePayments$ddlCreditCardExpiryYear" id="ctl00_body_ucMobilePayments_ddlCreditCardExpiryYear"> <option value="0"></option> <option value="8">08</option> <option value="09">09</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> </select> <span id="ctl00_body_ucMobilePayments_labelExpireDateRequired" class="req">*</span> </div> </div> </div> <!-- <div id="divVerisignSeal"> </div> --></div> <br /> &nbsp;<br /> <input type="submit" name="ctl00$body$btnContinue" value="Continue" id="ctl00_body_btnContinue" /> <input type="submit" name="ctl00$body$btnCancel" value="Cancel" id="ctl00_body_btnCancel" /> </div> </form> </body></html>

 

I tried a static HTML page with viewstate commented out and the browser was to post. However, with the viewstate in the HTML, the browser never submits (and no MDS activity is shown in the MDS command window).

 

Oddly, the HTML page code above submits with a BB 4.2.0 Device Simulator.

 

Additional Info:

I'm running ASP.NET 3.5 on Visual Studio 2008, and not using the Mobile Adaptor Architecture, just basic ASP.NET postbacks with ViewState enabled. The browsers configurations are defaulted to use no Javascript.

 

 

Any thoughts? 

Please use plain text.
Guru I
Xandrex
Posts: 18,403
Registered: ‎07-29-2008
My Device: Z30, Playbook, 9320BES
My Carrier: B&You _ SFR

Re: Browser not submitting ASP.NET form

hello,

you webpage is basically a < form > that points (POST mode) to the MobileDonate.aspx file.

inside that < form >, there are two < input > fields that are too long :

  • __VIEWSTATE containts a string of 4168 characters. That's too much .
  • __EVENTVALIDATION contains a string of 496 lines.



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Please use plain text.
New Developer
alau
Posts: 4
Registered: ‎09-12-2008
My Device: Not Specified

Re: Browser not submitting ASP.NET form

Thanks for your reply Xandrex, but could you tell me how I can learn more about Blackberry Browser form parameter lengths?

I ask because  

 

 

  • __VIEWSTATE
  • __EVENTVALIDATION 

 

are standard hidden values generated automatically by viewstate-enabled ASP.NET pages. Does this mean that the BlackBerry browser cannot postback to pages with ASP.NET viewstates? This is a significant limitation to the browser as the VIEWSTATE is an essential approach ASP.NET technology.

 

Also, do you know of a work around or if there is a fix?

 

I could remove VIEWSTATE but that would require a significant recoding effort. Does anyone know if the adaptive architecture resolves this problem?

Please use plain text.
BlackBerry Development Advisor
MSohm
Posts: 14,689
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Browser not submitting ASP.NET form

Please ensure that you have configured your environment for BlackBerry Browser support.

 

How To - Configure .NET 2.0 for BlackBerry Browser support 
Article Number: DB-00593

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800878/800733/How_To_...

 

How to - Use the ASP.NET Device Profiling Tool to Create BlackBerry device profiles 
Article Number: DB-00520

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800878/800733/How_to_...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
alau
Posts: 4
Registered: ‎09-12-2008
My Device: Not Specified

Re: Browser not submitting ASP.NET form

Mark,

 

thanks for your reply.

 

I am somewhat confused, though. Are you saying that I need to use the Adaptive Control Architecture

and also force all BB users of my pages to change their default BB browser settings? The reason this

page was designed in bare-bones ASP.NET HTML is so that we could accomodate BB users that did

not know how to change their BB browser settings.

 

Also, does using the adaptive control architecture change the page's __VIEWSTATE length or allow

the BB to post longer the __VIEWSTATE (assuming that is the problem)?

 

Perhaps you could confirm if the Browser's __VIEWSTATE length is the actual problem.

 

AL 

 

Please use plain text.
Guru I
Xandrex
Posts: 18,403
Registered: ‎07-29-2008
My Device: Z30, Playbook, 9320BES
My Carrier: B&You _ SFR

Re: Browser not submitting ASP.NET form


alau wrote:
Perhaps you could confirm if the Browser's __VIEWSTATE length is the actual problem.
Hello,

I think that all things equal, you should try and create a page with a __VIEWSTATE of just 10 characters and see if the problem still occurs. same for the other.

In HTML4, there is no limitation for the value="" attribute of the < input > element. Neither in XHTML or XHTML Mobile 2.



The search box on top-right of this page is your true friend, and the public Knowledge Base too:
Please use plain text.
Developer
marchywka
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Browser not submitting ASP.NET form

After waiting for my CPU to come back trying to render this forum html, and after watching flash animation

on hotmail when what I really wanted was some of my own CPU to be doing something useful, I'm left

asking you why you need all this "stuff" in your simple webpage? I'm not sure this is very satisfactory

and maybe the BB "should" support a 4k blob but you realize of course that EDGE and 3G are still

somewhat BW limited and even if it "should" support this waste, what is it you hope to accomplish

that you couldn't do with a better design?

 

Thanks.

 

Please use plain text.
New Developer
alau
Posts: 4
Registered: ‎09-12-2008
My Device: Not Specified

Re: Browser not submitting ASP.NET form

Marchywka,

 

Thanks for your comment. I have started looking into removing the viewstate.

 

I understand that ASP.NET Viewstate are a fundamental component of the ASP.NET technology that make it easier to maintain state changes between post backs. Not to say that this page can't be designed better, more simpler, or more condensed, but knowing the limitations of the browser is what I'm after.

 

If it's conclusive that the Viewstate is too large, then, it would make sense to redesign this page (and all the others) without viewstate. This page was first designed with default functionality in mind (no Javascript, no CSS, no tables, no images) so that the page size would be minimal (10K) and would work on all BB browser default settings. However, I've discovered that on some BB browsers, this page would not post.

 

So, I'm wondering if it's the viewstate. Or, perhaps is it something else? 

 

Thanks.

Please use plain text.
New Developer
HuskerSam
Posts: 6
Registered: ‎09-15-2008
My Device: Not Specified

Re: Browser not submitting ASP.NET form

i'm not sure why your viewstate has to be so big.  You can disable viewstate control by control - so if you think viewstate is probably a bad design - I'm guessing you probably don't need much of it!  If you go through the properties on each control on your form, you can turn it off.

 

There is also a page debug mode that tells you how much viewstate bytes each control is using.

 

The alternative to viewstate is to use session memory or database space - I'm not thinking you're looking for that discussion :smileywink:

Please use plain text.
New Developer
HuskerSam
Posts: 6
Registered: ‎09-15-2008
My Device: Not Specified

Re: Browser not submitting ASP.NET form

one more suggestion is to add a button on your form, and ASP button, and make sure it's property is set to submit, not to kick off a server event on post.
Please use plain text.