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

how to use _doPostback

Hi,
I need to call some serverside events or page load event by _doPostBack in javascript. How to use it to call page load event can anyone tell me please...
Jan 11 '08 #1
3 8580
dmjpro
2,476 2GB
Hi,
I need to call some serverside events or page load event by _doPostBack in javascript. How to use it to call page load event can anyone tell me please...
Server Side event and Page load event is two different things.
Page load event executes at Client Side and Server Side Events execute obviously at Server Side.
Here the picture is not clear.
What did you mean send a sample code and problems.

Debasis Jana
Jan 11 '08 #2
Server Side event and Page load event is two different things.
Page load event executes at Client Side and Server Side Events execute obviously at Server Side.
Here the picture is not clear.
What did you mean send a sample code and problems.

Debasis Jana
Hi jana,
Thank u for ur reply.when i click save button, it must show a confirm box. if returned value is true my page must do postBack. sample code
Expand|Select|Wrap|Line Numbers
  1. //js
  2. function confirm()
  3. {
  4. var result = confirm('Sure');
  5. if(result)
  6. {
  7. __doPostBack('btnSave','OnClick');
  8. }
  9. }
  10. //sample.aspx.cs
  11. protected void Page_Load(object sender, EventArgs e)
  12.     {
  13.      .
  14.      .
  15.     }
  16.  
  17. protected void btnSave_Click(object sender, EventArgs e)
  18.     {
  19.  
  20.     }
the _doPostBack must call either this btnSave_click event or Page_Load event.
Sorry for late reply...
Jan 11 '08 #3
acoder
16,027 Expert Mod 8TB
As a full member now, you should know that we expect your code to be posted in [code] tags (See How to Ask a Question).

This makes it easier for our Experts to read and understand it. Failing to do so creates extra work for the moderators, thus wasting resources, otherwise available to answer the members' questions.

Please use the tags in future.

MODERATOR.

I'm moving this to the .NET forum as this is obviously a .NET problem.
Jan 11 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Frankieboy | last post by:
I believe I've got a postback problem on our site. The strange thing is that everything works fine on my developing version, but not on the production site. I'm wondering if there may be different...
0
by: chrislewis | last post by:
There have been numerous references to a bug in .NET Framework 1.1, on Windows 2000 that causes <form> tags within user controls to be given an invalid (i.e. not compatible with javascript) id (the...
2
by: john | last post by:
I would like to do some client side stuff whenever my page is posting back. My page has a lot of different buttons and links that will cause a postback. I would rather not have to put something in...
0
by: | last post by:
Hi, I have a site created entirely in asp.net, are the search engines able to follow _DoPostBack() links within my page, if not what do I need to do in order to accomplish this? also what is...
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...
10
by: Andrew | last post by:
Hi ALL, I have a javascript code which i register using page.RegisterClientScriptBlock() in my btnFinish() button_click event. I noticed that the debugger will run thru the whole event for my...
1
by: david | last post by:
hi... When using the .net framework 1.x, the _doPostBack server-generated Javascript used to contain a test for the browser type: function __doPostBack(eventTarget, eventArgument) { var...
1
by: rvidal | last post by:
Hi. the javascript:_dopostback was removed from my machine after using an antivirus. As we know javascript:_dopostback comes as default for any LinkButton. My question is,how do I restore...
3
by: =?Utf-8?B?R2hpc3Rvcw==?= | last post by:
Hi, I have a dropdown list in a user control with values(10) from my DB. I also have in this ascx other controls (DatePicker, TextBox...) to be filled. But, if the user select one particular...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.