473,406 Members | 2,705 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,406 software developers and data experts.

how to invoke a postback from javascript

Hi,

I think the title pretty much says it all.

Not sure if I'm missing something obvious here. I can see how the server
side events work with the postback mechanism but I can't see any way of
initiating a postback from some client side script code.

Thanks

Andy
Nov 18 '05 #1
3 2749
Check out this article to know how to generate clientside script for
postback.
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpcongeneratingclient-sidejavascriptforpostback.asp

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Andy Fish" <aj****@blueyonder.co.uk> wrote in message
news:cc*********************@news-text.cableinet.net...
Hi,

I think the title pretty much says it all.

Not sure if I'm missing something obvious here. I can see how the server
side events work with the postback mechanism but I can't see any way of
initiating a postback from some client side script code.

Thanks

Andy

Nov 18 '05 #2
Tee
Maybe use your client side script to call the postback control click ...
like ButtonName.click()
"Andy Fish" <aj****@blueyonder.co.uk> wrote in message
news:cc*********************@news-text.cableinet.net...
Hi,

I think the title pretty much says it all.

Not sure if I'm missing something obvious here. I can see how the server
side events work with the postback mechanism but I can't see any way of
initiating a postback from some client side script code.

Thanks

Andy

Nov 18 '05 #3
Thanks for that useful link. Thanks also to "Tee" for the suggestion of
programmatically clicking a button in javascript.
"Saravana [MVP]" <sa******@sct.co.in.nospam> wrote in message
news:eg******************@TK2MSFTNGP12.phx.gbl...
Check out this article to know how to generate clientside script for
postback.
http://msdn.microsoft.com/library/de...us/cpguide/htm l/cpcongeneratingclient-sidejavascriptforpostback.asp

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Andy Fish" <aj****@blueyonder.co.uk> wrote in message
news:cc*********************@news-text.cableinet.net...
Hi,

I think the title pretty much says it all.

Not sure if I'm missing something obvious here. I can see how the server
side events work with the postback mechanism but I can't see any way of
initiating a postback from some client side script code.

Thanks

Andy


Nov 18 '05 #4

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

Similar topics

1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
11
by: CW | last post by:
I have message entry screen that's causing me a bit of an issue. At the moment, there are 2 buttons, one is used to send message to another user (btnSend) and another is used to send messages to...
21
by: Martin Eyles | last post by:
I am trying to get javascript to cause a page to post back. I have tried calling _doPostBack from my script, but generates an error "object expected". I think this is because the page's script...
5
by: Psych971 | last post by:
Hi, I'm wondering how I can generate a postback using javascript on a page that does not have any controls with the auto-postback property set to true. I know I can just use the submit() function...
1
by: AssanKhan Ismail | last post by:
Hi, How to invoke keyPress event in ASP.Net pages instead of performing the same in Client Validation( through Javascript) can i do it in server side ? Thanks in advance. bye assankhan
11
by: cindy | last post by:
I have a form, has javascript registered so a modal pops up. Button click will close form. Now I need to do an update with modal form data before it closes. I can put a second button and register...
7
by: Tony Girgenti | last post by:
Hello. I'm trying to undetrstand ASP.NET 2.0 and javascript. When i have a button and i click on it and i see the web broswer progress bar at the bottom do something, does that mean that there...
4
by: Harry | last post by:
Hi, This aspx page (let's call it thispage.aspx) fetches data from a sqldatasource, then performs several things (in code-behind) and, to simplify, passes data from code-behind via a hiddenfield...
3
by: =?Utf-8?B?SmFzb24gSGFydHNvZQ==?= | last post by:
I get the error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
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...

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.