Understanding the JavaScript __doPostBack Function
page 1 of 7
Published: 20 Jun 2006
Unedited - Community Contributed
Abstract
In this article we will look into the __doPostBack function of JavaScript. Read the article to find some insights about the function.
by Mohammad Azam
Feedback
Average Rating: 
Views (Total / Last 10 Days): 727282/ 2156

Introduction

It is quite amazing to note that only two of the ASP.NET web server controls cause a postback.  All the other controls use the JavaScript __doPostBack function to trigger the postback.  In this article you will learn about the __doPostBack function and how it works.


View Entire Article

User Comments

Title: asd   
Name: asd
Date: 1/10/2013 9:52:21 AM
Comment:
asd
Title: _doPostBack Function   
Name: Akshay Naik
Date: 12/29/2012 2:40:54 AM
Comment:
good one...should see
Title: Application for Agama(Archaka) Examinations -2013   
Name: Prasad
Date: 12/28/2012 4:02:25 AM
Comment:
download application
Title: Application for Agama(Archaka) Examinations -2013   
Name: Prasad
Date: 12/13/2012 11:41:26 AM
Comment:
download application
Title: werwer   
Name: ewrwer
Date: 12/8/2012 1:52:56 AM
Comment:
werwerwerwe
Title: jujuju   
Name: ujujuj
Date: 12/7/2012 2:02:54 PM
Comment:
ujuj
Title: Software Development Engineer   
Name: win
Date: 12/4/2012 11:35:41 AM
Comment:
Concise and very useful.

Well done.

Thanks.
Title: ыва   
Name: ыва
Date: 12/4/2012 8:33:45 AM
Comment:
выа
Title: abc   
Name: hi
Date: 11/29/2012 6:36:37 PM
Comment:
comment required?
Title: Nice   
Name: MUHAMMED ALI
Date: 11/29/2012 6:32:04 PM
Comment:
Nice article..dont repeat this
Title: kk   
Name: kk
Date: 11/28/2012 8:11:49 AM
Comment:
kk
Title: Nice   
Name: MUHAMMED ALI
Date: 11/28/2012 4:41:47 AM
Comment:
Nice article..dont repeat this
Title: a   
Name: a
Date: 11/28/2012 4:41:01 AM
Comment:
a
Title: erfwe   
Name: safas
Date: 11/28/2012 1:26:22 AM
Comment:
fasfasfa
Title: aa   
Name: bb
Date: 11/20/2012 10:38:46 AM
Comment:
wwwwwww
Title: p   
Name: p
Date: 11/20/2012 6:15:15 AM
Comment:
p
Title: ASP.NET PostBack architecture   
Name: sumit
Date: 11/20/2012 12:58:45 AM
Comment:
gajab
Title: s   
Name: s
Date: 11/20/2012 12:57:55 AM
Comment:
s
Title: hi   
Name: me
Date: 11/16/2012 5:39:05 AM
Comment:
test
Title: ccccccccccccccc   
Name: ccccccccccccc
Date: 11/8/2012 3:15:31 PM
Comment:
ccccccccccccccc
Title: cvvc   
Name: vcvcvc
Date: 11/8/2012 3:15:19 PM
Comment:
cvccvcv
Title: JEJEJE1   
Name: JEJEJE2
Date: 11/7/2012 11:14:46 AM
Comment:
SDF
Title: Hallo   
Name: RF
Date: 11/6/2012 6:39:17 AM
Comment:
Nice
Title: test   
Name: tt
Date: 11/6/2012 3:03:14 AM
Comment:
dddd
Title: das   
Name: dasds
Date: 11/5/2012 1:41:49 AM
Comment:
dasd
Title: c   
Name: c
Date: 10/31/2012 5:57:47 AM
Comment:
c
Title: hdhad   
Name: babcb
Date: 10/31/2012 4:14:49 AM
Comment:
i love you forever
Title: hai   
Name: murali
Date: 10/29/2012 12:38:01 PM
Comment:
all the best
Title: Love Letter   
Name: sweetie
Date: 10/24/2012 10:40:56 PM
Comment:
love u 4ever~
Title: aa   
Name: aa
Date: 10/22/2012 3:45:22 AM
Comment:
aa
Title: hjfhjj   
Name: ukbjbkk
Date: 10/19/2012 8:40:03 AM
Comment:
jhiuyiu
Title: dd   
Name: dd
Date: 10/17/2012 2:33:53 PM
Comment:
dd
Title: er   
Name: ugd
Date: 10/17/2012 5:13:30 AM
Comment:
htyt
Title: adsf   
Name: adsf
Date: 10/16/2012 8:02:22 AM
Comment:
asfsdf asdf asdf
Title: adsf   
Name: asdf
Date: 10/15/2012 4:55:04 AM
Comment:
asfsdf asdf asdf
Title: fds   
Name: df
Date: 10/15/2012 3:56:58 AM
Comment:
dsfdsf
Title: Dd   
Name: Vrfr
Date: 9/20/2012 4:16:07 AM
Comment:
Fff
Title: asdf   
Name: asdf
Date: 9/19/2012 8:57:44 PM
Comment:
asdfasdf8
Title: wewq   
Name: qew
Date: 9/17/2012 11:28:06 PM
Comment:
ewqeqeq
Title: das   
Name: dasda
Date: 9/12/2012 4:04:56 AM
Comment:
dada
Title: Rofl   
Name: Rofl
Date: 9/10/2012 9:57:09 AM
Comment:
Rofl Rofl Rofl Rofl Rofl Rofl Rofl Rofl Rofl Rofl Rofl
Title: gj   
Name: ghjghj
Date: 9/9/2012 9:34:06 AM
Comment:
mjjg
Title: L   
Name: L
Date: 9/4/2012 3:23:26 AM
Comment:
LLL
Title: tu u   
Name: tu tu
Date: 8/31/2012 1:15:01 AM
Comment:
dasda
Title: Test   
Name: Test
Date: 8/30/2012 12:51:39 AM
Comment:
This is Test.
Title: f   
Name: d
Date: 8/29/2012 12:28:30 PM
Comment:
c
Title: welcome   
Name: Welcome
Date: 8/29/2012 7:41:52 AM
Comment:
welcome
Title: test   
Name: test
Date: 8/29/2012 5:47:51 AM
Comment:
test
Title: dopostback (y)   
Name: anditsme
Date: 8/27/2012 2:31:28 PM
Comment:
thanks
Title: as   
Name: as
Date: 8/24/2012 7:46:31 AM
Comment:
aaaa
Title: aaaaa   
Name: aaaa
Date: 8/17/2012 12:24:32 AM
Comment:
Nice
Title: sd   
Name: sd
Date: 8/17/2012 12:23:32 AM
Comment:
sd
Title: rbre   
Name: rbr
Date: 8/16/2012 1:05:06 PM
Comment:
dcvrb
Title: bvb   
Name: vbv
Date: 8/6/2012 5:19:00 AM
Comment:
bnv
Title: DINDIN   
Name: Dinesh
Date: 7/30/2012 8:19:37 AM
Comment:
HI
Title: Test   
Name: Parthiban
Date: 7/30/2012 8:18:40 AM
Comment:
Nice....
Title: teeest   
Name: part
Date: 7/30/2012 7:06:13 AM
Comment:
hi
Title: test   
Name: teets
Date: 7/16/2012 2:13:27 AM
Comment:
123
Title: TEST   
Name: kg
Date: 7/13/2012 7:52:13 PM
Comment:
...testing...1...2...3
Title: tt   
Name: d
Date: 7/9/2012 2:28:09 PM
Comment:
this
Title: 2012 NFL jerseys   
Name: NIKE NFL jerseys
Date: 7/2/2012 10:09:37 AM
Comment:
http://www.jersey2shop.com
http://www.cheapjersey2store.com
http://www.jerseycaptain.com
http://www.yourjerseyhome.com
We are professional jerseys manufacturer from china,wholesal.cheap nike nfl jerseys, mlb jerseys, nhl jerseys,nba jerseys and shoes
Cheap NFL,NBA,MLB,NHL
,heap jerseys,2012 nike nfl Jerseys,nba jersey and shorts,oklahoma city thunder jersey,official jeremy lin new york knicks jersey,NFL Jerseys Wholesale,blake griffin jersey blue,NFL jerseys For Sale online.All Our Jerseys Are Sewn On and Directly From Chinese Jerseys Factory
,Wholesale cheap jerseys,Cheap mlb jerseys,]Nike NFL Jerseys,Cheap China Wholesae,Wholesale jerseys From China,2012 nike nfl Jerseys,Jerseys From China,,2012 nike nfl Jerseys,Revolution 30 nba jerseys,jersey of nba chicago bulls direk rose ,nfl jerseys,green bay packers jerseys wholesale,Buffalo Bills nike nfl jerseys sale,good supplier soccer jerseys,cool base mlb jerseys,Revolution 30 nba jerseys,2012 stanley cup nhl jersey,
We are professional jerseys manufacturer from china,wholesal.cheap nike nfl jerseys, mlb jerseys, nhl jerseys,nba jerseys and shoes. www.yourjerseyhome.com
Title: Crazy Developers   
Name: Slicktrick
Date: 6/19/2012 8:35:19 AM
Comment:
Hang on buddy...
Title: Programmer   
Name: WC
Date: 6/18/2012 12:55:46 PM
Comment:
nice
Title: k   
Name: k
Date: 6/16/2012 3:49:48 AM
Comment:
k
Title: TTTT   
Name: GGG
Date: 6/14/2012 7:10:49 AM
Comment:
Testing
Title: testx   
Name: testx
Date: 6/14/2012 3:00:25 AM
Comment:
testx
Title: 1   
Name: 2
Date: 6/12/2012 11:17:31 AM
Comment:
hi
Title: vid   
Name: vidhu
Date: 6/9/2012 1:43:39 AM
Comment:
hi
Title: asd   
Name: asd
Date: 6/8/2012 10:44:43 AM
Comment:
ad
Title: 1   
Name: 2
Date: 6/5/2012 5:56:31 AM
Comment:
s
Title: fdd   
Name: fg
Date: 6/1/2012 3:51:58 PM
Comment:
dfgd
Title: testing   
Name: tester
Date: 6/1/2012 9:09:46 AM
Comment:
tested
Title: Test   
Name: Emre
Date: 6/1/2012 6:51:56 AM
Comment:
good
Title: Test123   
Name: TTT
Date: 6/1/2012 3:48:24 AM
Comment:
s
Title: Test4   
Name: Test4
Date: 5/31/2012 8:44:57 AM
Comment:
Test4
Title: Test3   
Name: Test3
Date: 5/31/2012 8:44:36 AM
Comment:
Test3
Title: Test2   
Name: Test2
Date: 5/31/2012 8:44:16 AM
Comment:
Test2
Title: Test   
Name: Test
Date: 5/31/2012 8:43:42 AM
Comment:
Test
Title: sdf   
Name: xcdsd
Date: 5/31/2012 8:26:19 AM
Comment:
sdf
Title: daf   
Name: adf
Date: 5/23/2012 10:01:26 AM
Comment:
adfd
Title: 1   
Name: teste
Date: 5/21/2012 9:50:27 AM
Comment:
121325465
Title: ui   
Name: ui
Date: 5/21/2012 5:50:16 AM
Comment:
uiooo
Title: cvb   
Name: cz
Date: 5/8/2012 9:52:29 AM
Comment:
cz
Title: rfaqmrmsh wftw dpnsywb du ted ´ws bdjkw fis uyd fdkjnb flk ç   
Name: jkds fbcdu i8as uiqabwh szhfvs ays a uwbdeiu2 fubf
Date: 5/5/2012 6:27:57 PM
Comment:
yhwe vswqbhke yhd orgiunowbfyejr uyjsnbopr iehwbp`nsu uioswbrbw diusfiubdpon 09brfegoe nb89w0n ey8n bs+`mnwsur deuibwk dsdbops vdiu wodbdsiur dnsdlñsbdioxd iksbfsbsiws flhsnmdn sgd hjfbkjzdsj djdnfkbndiusbe89hjbyufbowbed bh hbfy die hc jebeuebibue vfhdv he dbfvheekbeufbh ejf bjdebfvbeuh vdbtge fi vge fike f fik f fkfjdjjwhbdksnjd jdbifdndjf hd duvbdiu jd djfb ujd njd bdifbkje nibeynofghebhf bge djnekhdrcer udbur uhjeeb us dhs jdebehbjs knswnbwe sbed jhws us bodfnsied do fbus_vdsbfdnd fnbdfhdb dnsbd jkdbejkb rfjkd fjkd bfio vj eklfv d vj dbjvdhfkwd _bnfvbnvf bdf d fuwvfid jv ujfevbdb fdisvfdb fjbdhbfdfuewbd gb dfbvbdnvfb dbfjebfj bjkfhd
Title: ttt   
Name: uuu
Date: 4/18/2012 7:06:47 AM
Comment:
good
Title: Thanks   
Name: Shahriar Husainy
Date: 4/8/2012 4:29:29 PM
Comment:
Thank you so much for explaining nicely. It was quite useful.
Title: Excellent explanation for __doPostback   
Name: Mohammed Hameed
Date: 4/3/2012 6:52:21 AM
Comment:
Its a very nice explanation and very straightforward....

Thanks Azam.
Title: nice   
Name: User
Date: 3/21/2012 6:58:48 AM
Comment:
NICE ARTICLE :)
Thankyou so much.
Title: Sys Analyst   
Name: NL
Date: 2/22/2012 8:34:45 AM
Comment:
Thanks Mohammad. Nice work!
Title: you can give me a code   
Name: dane
Date: 2/2/2012 2:24:35 AM
Comment:
i have need to javascript for coding with __dopostback.

yy_model@163.com
Title: not clarifed   
Name: keerthi
Date: 12/18/2011 10:06:41 PM
Comment:
i want to explain more
Title: not clarifed   
Name: keerthi
Date: 11/12/2011 4:04:25 AM
Comment:
i want to explain more
Title: Clearly explained   
Name: Alex
Date: 8/16/2011 2:03:28 PM
Comment:
Clearing explained how to use __doPostBack() in asp.net.
Thank you.
Title: Post back button   
Name: suresh
Date: 8/8/2011 3:37:25 AM
Comment:
hi, in the previous page, you said, button control cannot invoke _doPostBack() function. In this page (page 5) you explained arguments passing using _doPostBack() function.
Can you please explain this. thanks !
Title: Excellent article   
Name: Alan
Date: 7/19/2011 4:18:05 PM
Comment:
Many thanks!
Title: Great Explanation   
Name: Marc
Date: 6/24/2011 9:38:37 AM
Comment:
Your article was very helpful in understanding the ASP.net postback. Many thanks!!
Title: What you need to know about __doPostBack   
Name: Roman
Date: 3/12/2011 2:00:04 PM
Comment:
Hi,

There can be some problems when calling __doPostBack from inside a page which is on a master page or from within a ascx control.

You need to use element.UniqueID instead of element.ClientID. See more details on my article:

http://extremedev.blogspot.com/2011/03/aspnet-dopostback-not-working.html

----------------------------------------------------------- Development Solutions: http://extremedev.blogspot.com
Title: Help   
Name: hitesh kumar
Date: 3/6/2011 7:56:52 AM
Comment:
what is _dopostback?
Title: Excellent!   
Name: Ronald Salazar
Date: 2/19/2011 5:30:16 PM
Comment:
Thank you, it's a great explanation.
(from Costa Rica)
Title: Webdesign Ravensburg   
Name: Internetagentur Ravensburg
Date: 2/15/2011 5:10:50 AM
Comment:
A great help to understand doPostback() :(
Title: Excellent   
Name: Akbar Ali
Date: 2/10/2011 2:17:20 AM
Comment:
Thanks
Title: Excellent and simple explanation   
Name: siva
Date: 12/29/2010 4:55:09 AM
Comment:
Everyone can easily understand about this topic
Title: Very useful   
Name: タオ チューン
Date: 12/22/2010 11:21:42 PM
Comment:
Very useful article. Thank you very much and keep up your writing!
Title: wonderful explanation   
Name: Atul Mishra
Date: 12/7/2010 6:16:53 AM
Comment:
Keep writing the posts.
Title: Thanks for make me understand   
Name: Amrendra
Date: 11/18/2010 8:48:50 AM
Comment:
this is the way to express the concepts. Thanks
Title: Understanding the JavaScript __doPostBack Function   
Name: Ashish Maurya
Date: 11/9/2010 6:07:33 AM
Comment:
Nice Article
Title: Thanks Azam.   
Name: Rusiru Boralugoda
Date: 11/1/2010 11:57:13 PM
Comment:
Really is a nice article. Thanks Azam :)
Title: Thanks man   
Name: Boris
Date: 10/13/2010 8:34:53 AM
Comment:
Great article.
You are the man, man!
Title: Deep stuff   
Name: Johnny
Date: 9/17/2010 10:58:18 AM
Comment:
Details...
Title: tanks, you saved my life   
Name: micke
Date: 8/6/2010 12:53:05 PM
Comment:
great article you saved my life, tanks.
Title: Thanks   
Name: Sahil Mattoo
Date: 7/21/2010 9:20:35 AM
Comment:
A great help to understand doPostback() :(
Title: thanks   
Name: peter
Date: 5/23/2010 8:39:26 AM
Comment:
thank you
Title: hey   
Name: max
Date: 5/21/2010 6:27:43 PM
Comment:
this is sweet
Title: wonder   
Name: mrm arimbra
Date: 5/13/2010 10:37:50 AM
Comment:
thanks
Title: Excellent Explanation   
Name: Anonymous
Date: 4/9/2010 1:28:05 AM
Comment:
Excellent Explanation buddy, keep continuing this.
Title: Very useful and basic   
Name: Hans
Date: 3/31/2010 1:55:05 PM
Comment:
Thanks a lot. Essential basic knowledge!
Title: nirmaladventure   
Name: nirmal
Date: 3/27/2010 11:09:45 AM
Comment:
it cool an helping
Title: mz.   
Name: georgie
Date: 3/8/2010 5:48:25 PM
Comment:
i guess everyone likes to itterate instead of just reading whats in the name= field of a form

m$ thinking at its best if its easy make it 10 times more complex fast
Title: mz.   
Name: Gorgie
Date: 3/8/2010 5:41:01 PM
Comment:
No web page that uses dopostback() EVER works on any of my 3 computers the links just do nothing at all
Title: Useful.   
Name: That one hack
Date: 2/16/2010 7:48:45 PM
Comment:
This was handy for dealing with trapping ItemCommand events fired by link buttons in nested DataGrid's for an ASP.NET 1.1 app.

Much obliged.
Title: well done 2006-10   
Name: anonymous
Date: 1/28/2010 1:01:48 AM
Comment:
the importance of the article hasnt faded :)
Title: Ballzie move   
Name: Ballzie move
Date: 12/23/2009 3:40:05 PM
Comment:
Ballzie move
Title: Mr.   
Name: J
Date: 12/6/2009 11:27:39 PM
Comment:
nice article. it help a lot
Title: simple and concise   
Name: mryildiz
Date: 11/17/2009 9:12:57 AM
Comment:
thanks a lot, very effective article...
waiting for more...
:)
Title: Very Good   
Name: Visvabalaji
Date: 11/12/2009 9:32:47 AM
Comment:
Very good article with simple examples.

Thanks :)
Title: Thank you very much.   
Name: sD_b
Date: 10/19/2009 10:28:55 AM
Comment:
It's a nice artical. :-)
Title: Nice Article   
Name: Md. Mostafijur Rahman
Date: 10/13/2009 2:08:12 AM
Comment:
It's nice one to clear concept on Javascript Postback
Title: Thank You =)   
Name: Brian
Date: 8/20/2009 11:23:36 AM
Comment:
One of the best technical articles on the internet...thank you =)
Title: good   
Name: suntzu
Date: 8/6/2009 4:32:02 AM
Comment:
I think it can help me out of difficulty
Title: Good article   
Name: sasmita
Date: 8/5/2009 2:28:52 AM
Comment:
Very good explanation. It helped me a lot.
Title: Mr   
Name: Kamal
Date: 7/28/2009 2:06:38 AM
Comment:
doPostback is not working in 2.0 web page... as in 1.1 web page its working... Could any one suggest u r idea...

Regards,
Kamal
Title: mrs   
Name: joebek
Date: 7/16/2009 6:14:28 AM
Comment:
Am have javasascript_doPostBack('dnn$ctr412$registraion$linkBottonRegistartion';) on my system pleas what can i do to correct it
Title: Thanks   
Name: Platipibo
Date: 7/11/2009 7:15:24 AM
Comment:
thanks a lot,
It really works
Title: @Understanding the JavaScript __doPostBack Function   
Name: Abhishek Shrivastava
Date: 7/10/2009 2:10:07 PM
Comment:
Nice article...I have searched around 70+ links in google to understand postback...but none of them explained it so clearly.
thanks for sharing the knowledge!
Title: Fantastic Explanation   
Name: Sanjay
Date: 7/2/2009 8:11:46 AM
Comment:
Fantastic explanation. I was very happy reading this article. Keep it Up Azam...............
Title: Very good article   
Name: Jigar
Date: 6/26/2009 8:33:07 AM
Comment:
Very nice & useful article. Keep up the good work.
Title: Jonny J Jacob   
Name: See title
Date: 6/1/2009 3:32:01 PM
Comment:
i HAS PROBLEM TOO WIT THE POST BACKER
Title: investor   
Name: arun kapoor
Date: 5/18/2009 6:16:04 AM
Comment:
i m using javascript:_dopostback for stock statement, but now these pages are not open tell me
Title: Mr.   
Name: Walt Handel
Date: 4/25/2009 6:19:44 PM
Comment:
How do I get rid of Javascript doPostBack0;? Its screwing up my computer.
Title: Short, Concise, no BS   
Name: Jax
Date: 4/1/2009 10:51:20 AM
Comment:
Perfectly done and right to the point. Thanks.
Title: roman   
Name: mehmet
Date: 3/6/2009 5:50:20 AM
Comment:
very nice!
Title: javascript:_dopostback   
Name: Asween
Date: 2/9/2009 3:15:29 PM
Comment:
Wonderful article, explains the whole concept in a very succinct and concise way.
Title: javascript:_dopostback   
Name: prashant
Date: 2/9/2009 3:12:36 AM
Comment:
i have a problem that is javascript:_dopostback in my thinclient machine.
Title: do post back   
Name: noushad
Date: 1/21/2009 1:31:21 AM
Comment:
Very nice article, its very easy to learn with this type of articles, thank you
Title: Nice Article   
Name: G. Vijay Bhargav
Date: 12/17/2008 2:17:49 AM
Comment:
Nice article - Is there any way to customise the __doPostBack function.
Title: Thanks   
Name: Ali
Date: 11/21/2008 10:57:20 AM
Comment:
Good article. It helps a lot.
Title: function __doPostBack   
Name: vinay
Date: 11/17/2008 4:11:45 AM
Comment:
I got an error in function __doPostBack function
(object not support this property or method)

please give the solution.
Title: Good article   
Name: Ratndeep
Date: 11/11/2008 1:51:32 AM
Comment:
Thanks for this good article...
Title: Thanks Azam   
Name: Pablo A Castillo
Date: 11/10/2008 11:38:45 PM
Comment:
thanks for this article, very useful for me.
Title: Nice stuff   
Name: ALTAF
Date: 11/8/2008 12:40:45 PM
Comment:
Thx, It clears the doubts in my mind.
Title: Really great   
Name: Murali
Date: 11/6/2008 9:38:28 AM
Comment:
This article saved my skin. Thnq
Title: _doPostBack caused me to postback all the time   
Name: Benny
Date: 10/24/2008 7:24:05 AM
Comment:
Hi,

im using the __doPostBack method, but it caused the page to keep on postBack non-stop. how to stop it ?
Title: java script for email   
Name: vamshi
Date: 10/19/2008 10:58:08 PM
Comment:
i want to use java script for email validation please hel me
Title: calender control   
Name: siva srinivas
Date: 9/7/2008 11:46:05 PM
Comment:
how to select a calender control into my ui
Title: Problem with this function   
Name: Srinivas
Date: 7/16/2008 3:23:50 AM
Comment:
\
\
\
\
Title: SharePoint   
Name: Shams
Date: 7/7/2008 5:19:16 PM
Comment:
I am new to this function __doPostBack
Title: SharePoint   
Name: Roberto
Date: 7/3/2008 9:26:57 PM
Comment:
I've been able to use __doPostBack within SharePoint. This function when called from client-side script and combined with a custom web part makes it possible to get past some SharePoint limitations.

http://www.tributarysoft.com
Title: Security message   
Name: MV
Date: 6/10/2008 11:48:35 AM
Comment:
I am getting a security message whenever the dopostback is called for a calendar control from a button. Can I send you the message and see if you have come across this message before?

Thanks. MV
Title: excellent explanation   
Name: Sandesh Kadam
Date: 4/10/2008 9:20:49 AM
Comment:
Greetings, This is nice peice of explanation for the postback. But for certain reason i didn't find it helpful in my situation as its not covered in the article. And i post this message to all the champs, if possible please tel me how would we do the same postback excersie having the forms action allready defined? i shall wait to read from you guys...

Sandesh
Title: example   
Name: name_example
Date: 4/8/2008 4:03:52 AM
Comment:
it example
Title: i want script like this   
Name: anmoldeep
Date: 2/26/2008 9:09:20 AM
Comment:
javascript:__doPostBack('dnn$dnnSOLPARTMENU$ctldnnSOLPARTMENU','56')
Title: __doPostBack()   
Name: Ramesh Ramalingam
Date: 2/17/2008 3:09:11 AM
Comment:
Nice artical... It is pretty clear...
Title: __doPostBack()   
Name: amit
Date: 2/10/2008 3:39:09 AM
Comment:
I want to know this
Title: __doPostBack()   
Name: Rudra
Date: 1/29/2008 4:19:31 AM
Comment:
Good artical
Title: Improve   
Name: Muthu
Date: 1/17/2008 6:44:28 AM
Comment:
u do u have next button for such a same article
Title: Can i call the __doPostBack in a href   
Name: Vimal
Date: 1/9/2008 3:52:48 AM
Comment:
Hai i tried to call the __doPostBack event in a href from client side script, but i got an error 'object expected'.

var link = document.createElement('A');
link.setAttribute('href','javascript:__doPostback("TESTTgt","TESTArg")');
Title: Mr   
Name: Ajit
Date: 1/3/2008 10:05:41 AM
Comment:
Very nice article, very easy to understand.
Title: cool   
Name: Big Fat Al
Date: 12/19/2007 8:18:10 PM
Comment:
Cheers Mate - nice one - only takes a few minutes to gain some clarity but too often we rush on ahead without stopping to think. Thanks for the quick n easy read, especially the bit about buttons not calling __DoPostBack... solved my problem for the morning.. onto the next one!
Title: Thnx   
Name: Yusuf Squires
Date: 12/4/2007 3:12:51 PM
Comment:
Really helpful. Thnx!!!!
Title: __doPostBack('btnCntrl','')   
Name: Nac
Date: 11/28/2007 6:13:09 AM
Comment:
if this called in javascript function alone it works fine
but if function contains some other javascript statements
before this stmt, it is not working properly,
may I know why this is happening??
Title: Fantastic Article   
Name: The Computer Doctor
Date: 11/26/2007 11:21:26 AM
Comment:
A very very good article.
Title: Good article   
Name: Everett Liu
Date: 11/20/2007 4:23:11 AM
Comment:
I am a new comer, I like this, I will come here again.
Title: Lame.   
Name: Brittany
Date: 11/9/2007 5:23:04 AM
Comment:
Wow, that told me absolutely nothing.

Tell me straight to the point how to make it so javascript won't be lame and let me view all internet pages.

That's all I want to know.
Title: Google Map control   
Name: Moe
Date: 11/5/2007 1:44:59 AM
Comment:
HI, is there a .net control which can load gmarkers dynamically ? like this site http://www.publicbar.com
does ?
Title: BACK   
Name: MARLYN
Date: 10/4/2007 4:50:10 PM
Comment:
its good java
Title: photos   
Name: GF
Date: 10/4/2007 4:45:10 PM
Comment:
the java thing keeps poping up every time i want to change my default and it will not let me delete my pictures and when i click fix java it does not work
Title: comments   
Name: navjot
Date: 9/13/2007 5:22:52 AM
Comment:
dis was very informative article......good work!!!!
Title: What's the difference between...   
Name: JS
Date: 8/21/2007 2:45:15 PM
Comment:
my drop down list wont change because when I debug, in the _doPostBack function, !theForm.onSubmit returns false and (theForm.onsubmit() returns false.

what's the difference between onSubmit and onSubmit()?
Title: Mr.   
Name: Amd
Date: 8/13/2007 4:45:01 AM
Comment:
Nice!!!!!!!!
Title: how to change event argument of linkbutton via javascript   
Name: anjali
Date: 7/21/2007 11:57:12 AM
Comment:
i have a link button which has CommandArgument property set to "lbOne". When i click link button i want to change its CommandArgument property to "lbTwo" via javascript(not in code behind) How can i do that? Any help greatly appreciated...
Title: Excellent Article!   
Name: Stuart
Date: 7/17/2007 8:15:20 AM
Comment:
Thanks for a very informative article. This not only helped me to understand the __EVENTARGUMENT but has given me enough food for thought to solve an issue I've been having with postbacks when trying to use a modulpopupextender.

Keep up the good work!
Title: Calling __doPostBack without link button or autopostback set to true   
Name: Josh
Date: 7/12/2007 8:35:39 PM
Comment:
If you want to use __doPostBack without setting the autopostback to true or without adding a link button add this bit of code to your pageload. This will create the reference to the function for you

Page.GetPostBackEventReference(this);
Title: Shrivastav   
Name: Deepak
Date: 6/18/2007 9:36:11 AM
Comment:
Very good way to teach the things.Good artical,but could have been into more depth.
Title: Good artical But I Need Some other help please   
Name: Spatel
Date: 6/1/2007 2:57:21 AM
Comment:
I am Using Asp.net2.0.I wan't to get Control type in Java Script So please tell me How I Know that Control Which comes in Java Script is Textbox,DropDown,or any other.

Thanks in Advance.
Title: thanks   
Name: pravin nair
Date: 5/28/2007 10:29:47 AM
Comment:
It was a really good article.I really understood the concepts of __doPostBack();
Title: Thankyou   
Name: Si
Date: 5/25/2007 9:54:10 AM
Comment:
Thanks for a clear and concise explanation of __doPostBack():)
Title: Need help   
Name: Priya
Date: 4/26/2007 5:39:10 AM
Comment:
Good article. Can you tell me how do I do a postback on another page to reflect some chnages when I click one button from my current active page?
Title: heeee   
Name: heeee
Date: 3/30/2007 4:39:24 PM
Comment:
let me know how to use __doPostback with out keeping link button or autopostback='true' on dropdownlist
Title: javascript:__doPostBack('ViewFinancialAid','')   
Name: Gary Lagstrom Jr
Date: 3/14/2007 7:09:57 AM
Comment:
This pop-up is blocked on my financial dispersion awards for my graduate program at Walden University. It is an image button that shows dispesement dates for my student loans. I need to be able to see this image. Even though I have the pop-up function disabled it still blocks the image. What do I do?

Send reply to:
gary_lagstrom@hotmail.com

Thank-you for your time:)
Title: Good Article it may help in my projet   
Name: sandesh
Date: 2/17/2007 1:21:22 AM
Comment:
Good Article it may help in my projet,

But where i will get the answers of these questions asked by others

Plz give me reply at sandesh_daddi@rediffmail.com
Title: Why does it use javascript:setTimeout   
Name: Ornit
Date: 11/5/2006 5:40:52 AM
Comment:
Why does it use javascript:setTimeout for exceuting _doPostBack instead of calling it directly?
Title: javascript:-doPostBack(imageLogin Button)   
Name: Sarah
Date: 10/20/2006 12:46:09 PM
Comment:
What does that mean? Am trying to get into my web mail and cannot. That is the message that I get. I do not have a computer background and my ISP Tech is no help. Can you explain that message to me? Thank you
Title: Find out eventtarget and eventargument on clientside?   
Name: nico
Date: 9/26/2006 7:11:01 AM
Comment:
Hi,

just found your article. thank you for your work. i'd need to find out eventtarget and eventargument on the client side. we are doing some validation on the side, every time the form is submitted. in asp 1.1 wh had to overwrite dopostback AND onsubmit. now in .net 2.0 onsubmit is called every time and we don't need to overwrite dopostback anymore. unfortunately we need to know, which control caused the postback. do you have an idea how to get this information within onsubmit?

regards
nico
Title: Thanks   
Name: AzamSharp
Date: 8/17/2006 2:25:00 PM
Comment:
I am glad that you liked the article!
Title: MCAD   
Name: Gene Naden
Date: 8/17/2006 2:21:48 PM
Comment:
The article on Understanding the __doPostBack function was very helpful.
Title: Great!!   
Name: Irfan
Date: 8/1/2006 5:47:11 AM
Comment:
Great..atleast we got an idea of javascript dopostback function..

Nice Explaination
Title: Thanks   
Name: Rob
Date: 8/1/2006 5:13:55 AM
Comment:
I've been searching for a way to send client-side inputs (through a DIV/contentEditable) blended on a page with server-side controls for inclusion in a database. The ability to send 'My Argument' (or whatever text) through this method works great.

Thanks
Title: How to fin button that caused postback   
Name: me
Date: 7/14/2006 5:46:36 PM
Comment:
Pravin:
This is where you can find out which button caused the postback:
http://www.ryanfarley.com/blog/archive/2005/03/11/1886.aspx
Title: How can I cause a submit button callback????   
Name: Deepak
Date: 7/13/2006 1:58:20 AM
Comment:
Hi
Conider the following code
[CODE]
<asp:button id=btnServer OnClick=btnServer_Click />

[/CODE]
Question:
I want to write a client side function (replace ...) such that it allows to call the server side btnServer_Click function. How can I do that?
Title: Firefox problem   
Name: Scott Hooper
Date: 6/29/2006 11:26:10 PM
Comment:
This works beautifully in IE, but doesn't work for firefox. I am pretty sure it's a problem with the syntax of:
theForm.__EVENTTARGET.value = eventTarget;
Any suggestions on how to correct?
Thanks,
sfhooper@expectra.com.au
Title: Finding button that caused postback   
Name: Pravin Singh
Date: 6/29/2006 7:43:57 AM
Comment:
In LISTING 5, you iterated through the form collection for finding the button control but if for example my page has multiple submit buttons - how do we find out which button caused the postback?

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2014 ASPAlliance.com  |  Page Processed at 10/31/2014 12:51:14 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search