473,387 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

LinkButton does not POST


Hi,

Problem: LinkButton control does not POST
Environment: Win 20003, ASP.NET 2.0, XHTML
Target/device: Symbian v.9/Opera 8.60 (168) based smartphones

I am developing a mobile web application (VS.NET 2005/xhtml) the target
device(s) are Symbian (v.9) based smartphones. We recently recived a new
"batch" of test devices with upgraded software..

For months now the Link Button with code like this: "<a
id="ctl00_mainContent_btnLogin" class="link"
href="javascript:__doPostBack('ctl00$mainContent$b tnLogin','')">Login</a>"
have worked...

Unfortunately that is no longer the case and the browser in the device(s)
don't POST when clicking the links...

The LinkButton control does not trigger a POST in .NET 2.0. If the same code
is recompiled and run under .NET 1.1 everything works.
The cause of the problem is probably the generated Javascript method
"__doPostBack"
//.NET 1.1 (Here everything works..)
<a id="LinkButton1"
href="javascript:__doPostBack('LinkButton1','')">L inkButton</a>

<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("m icrosoft") > -1) {
theform = document.Form1;
}
else {
theform = document.forms["Form1"];
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->

//.NET 2.0 (Does not work..)
<a id="ctl00_mainContent_LinkButton1"
href="javascript:__doPostBack('ctl00$mainContent$L inkButton1','')">LinkButton</a>

<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnetForm;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
// -->

Have anyone a solution?

Regards
/Oscar
Feb 28 '06 #1
0 869

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Fueled | last post by:
Hi everyone! I've made quite a lot of research on this, and I've tried a couple of proposed solutions. Nothing has worked for me, but I feel there's not much I'm missing. So I'm turning to this...
0
by: Oscar Thornell | last post by:
Hi, Problem: LinkButton control does not POST Environment: Win 20003, ASP.NET 2.0, XHTML Target/device: Symbian v.9/Opera 8.60 (168) based smartphones I am developing a mobile web application...
13
by: rn5a | last post by:
In a shopping cart app, suppose a user has placed 5 orders, I want to show him 5 LinkButtons (one for each order) so that when he clicks the first LinkButton, he would be shown the details of his...
6
by: ree321 | last post by:
I have a linkbutton which is added to a column in a datagrid dynamically using a template I created. When I change the data in it by not databinding and then when I later retreive the data from the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.