473,698 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

javascript:__do PostBack problems

ok, I admit I dont know what I am doing ...

When a user clicks on a <tr> in a <table> I want the page to be posted
back to the server with info as to what row was clicked.

<tr style="backgrou nd-color:ffecd8"
onmouseover="th is.style.backgr oundColor='#ffd cff';"
onmouseout="thi s.style.backgro undColor='#ffec d8';"
onclick="javasc ript:__doPostBa ck('row1')">

this works, the page comes back to the server and my code runs again.

only problem is, I dont know where the arguments from
__doPostBack('r ow1') are stored. When I run the page in trace mode I
do see that the __EventTarget of the Form Collection contains my
posback argument.

How do I access __EventTarget from the Form Collection in my .aspx code
behind code?

I assume Page.GetPostBac kClientEvent is part of the answer, but I dont
understand the documentation of that method. Or is that method only
for server controls?

the question is, how do I use __doPostBack to pass arguments back to my
..aspx page?

thanks,

-Steve

Nov 19 '05 #1
0 1915

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

Similar topics

2
4061
by: Jeronimo Bertran | last post by:
A couple of questions I am having problems with converting my JavaScript to C#. I have the following code using JavaScript for the mouseover handler that works fine: <SCRIPT language=JavaScript> function MyMouseOver() {
3
5910
by: Nikhil Patel | last post by:
Hi all, I have developed a web page with a sortable DataGrid with Select button column in ASP.Net. It works fine in inernet explorer. The purpose of the web page is to display it in a third party application. When I try to open my page in that application, it loads fine. But when I click on any of the link buttons to sort or select rows, it opens up a new blank internet explorer window. Its address bar contains the following text:...
4
10899
by: bredal Jensen | last post by:
I'm trying to generate a postback to the server when my radio button is selected. This code MyRadio.Attributes.Add("onclick",__doPosback(info,'')) does generate a javascript error. Info is an integer value i need to send to my server in the query string ..... Can someone help me with this? Thanks
6
9784
by: Xarky | last post by:
Hi, I have a form, and on it I placed a linkButton. Now it has also specifed also an onmouseover and an onmouseout events. Also in the aspx.cs file I handled the click event. <td class="menuNormal" onmouseover="expand(this);" onmouseout="collapse(this);" width="20%"> <p> <asp:LinkButton id="linkButtonTest" runat="server" Height="24px"
0
1132
by: gregfocker | last post by:
I'm trying to alter the JavaScript that gets written out by a GridView in an UpdatePanel. I'm basically trying to remove "theForm.submit();", but if get access to it, I guess I can edit any part of it. Anyone know how to do this? TIA.
3
4644
by: rizzy | last post by:
Hello, I have an address form which has a select box with countries and another select box with provinces. When I select a certain country I cause a postback by using javascript __doPostBack function. I also have a submit button. It works perfectly in both firefox and IE when I click on selectbox and select a country - it posts back and then on page load I populate the provinces based on the country just selected. - EXCEPT: when I...
0
2267
by: codeshelp | last post by:
I have a gridview that has a ButtonField(Insert) that calls a detailsview which allows you to insert data to the gridview. The postback for this buttonField is: "javascript:__doPostBack('ctl00$POPAContentPlaceHolder$grdRemarks','Insert$0')", which takes me to the details view and were I click on a 'New' link with it's postback: "javascript:__doPostBack('ctl00$POPAContentPlaceHolder$grdRemarks$ctl01$DetailsView2','New$0')" How can I call...
1
3105
by: Batmaninls | last post by:
I have this code e.Cell.Controls.Add(new LiteralControl("<br /><a href=\"javascript:__doPostBack('Caledar1','" + dtEvent.ToShortDateString() + "')\"><img src=\"" + ResolveClientUrl("~/Administration/Images/Site/goldSquare.gif") + "\" border=\"0\" /></a>")); I need to fire at event on the code behind is there a way to do this?
4
5706
by: Waldy | last post by:
Hi there, I have a customer requirement to provide a web application without JavaScript. A function is being written to the HTML output on some pages. The function is called __doPostBack. How do I get rid of it. There is no call to the function in the rest of the page, so why is it being written to the client?
0
8609
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8901
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
7739
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6528
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5862
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4371
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
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
3
2007
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.