473,586 Members | 2,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_mainC ontent_btnLogin " class="link"
href="javascrip t:__doPostBack( 'ctl00$mainCont ent$btnLogin',' ')">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
"__doPostBa ck"
//.NET 1.1 (Here everything works..)
<a id="LinkButton1 "
href="javascrip t:__doPostBack( 'LinkButton1',' ')">LinkButto n</a>

<!--
function __doPostBack(ev entTarget, eventArgument) {
var theform;
if (window.navigat or.appName.toLo werCase().index Of("microsoft" ) > -1) {
theform = document.Form1;
}
else {
theform = document.forms["Form1"];
}
theform.__EVENT TARGET.value = eventTarget.spl it("$").join(": ");
theform.__EVENT ARGUMENT.value = eventArgument;
theform.submit( );
}
// -->

//.NET 2.0 (Does not work..)
<a id="ctl00_mainC ontent_LinkButt on1"
href="javascrip t:__doPostBack( 'ctl00$mainCont ent$LinkButton1 ','')">LinkButt on</a>

<!--
var theForm = document.forms['aspnetForm'];
if (!theForm) {
theForm = document.aspnet Form;
}
function __doPostBack(ev entTarget, eventArgument) {
if (!theForm.onsub mit || (theForm.onsubm it() != false)) {
theForm.__EVENT TARGET.value = eventTarget;
theForm.__EVENT ARGUMENT.value = eventArgument;
theForm.submit( );
}
}
// -->

Have anyone a solution?

Regards
/Oscar
Feb 28 '06 #1
0 1260

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

Similar topics

5
3743
by: Fresh Air Rider | last post by:
Hello Could anyone please explain how I can pass more than one arguement/parameter value to a function using <asp:linkbutton> or is this a major shortfall of the language ? Consider the following code fragments in which I want to list through all files on a directory with a link to download each file by passing a filename and whether or...
6
9068
by: Al Cohen | last post by:
I'm using a LinkButton to call some code, then do a redirect. The code does some queries, sends some emails, and takes a few moments before the redirect is performed. I'd like to disable my LinkButton during this period to prevent multiple submissions. (Obviously) the disabling should be done at the client side to prevent any delay. I've...
3
1817
by: Sathyaish | last post by:
OK, I almost got my problem solved. Zen is almost there! Just that a LinkButton control inside a column in my datagrid doesn't show like a link button. It does not have an underlining. My client side JavaScript is enabled. How do I make the button underlined and appear and act like a linkbutton? Currently, it just displays the text like a...
4
10595
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 group and its experts for answers. So : - I've got a main page (main.aspx) - On this page, I've got a button (btnArchive), on whose click I...
0
877
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 (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...
13
10156
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 first order. Likewise if he clicks the second LinkButton, he will be shown the details of the second order he had placed. The Text of the LinkButtons...
6
2589
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 control after a post back it goes back to the value which was dynamically bounded. I have set up similar process with a checkbox template and it...
2
2807
by: BobLaughland | last post by:
Hi There, I need a control on my site that is a hyperlink style control, but it must, 1) Have a property that can hold where the hyperlink is pointing to. (e.g. like the NavigateUrl property in the asp:hyperlink control). 2) Also can call my own method when the user clicks on the link (e.g. like the Click event in the asp:linkbutton...
1
2835
by: David C | last post by:
I have posted this question, which I think is very simple on several sites, and nobody seems to know what I am talking about. At my wits end here. Please help. I am putting together a site for mobile devices using regular ASP.NET controls after giving up on "Mobile Web Forms" for several reasons. Two problems. LinkButton ========
0
7912
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7839
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5390
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3837
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3865
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.