954,574 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem with refresh

when I click on any button on my page it start refresh whole page and reload it why ?
can any help in this............

prvnkmr194
Posting Whiz in Training
222 posts since Oct 2010
Reputation Points: 11
Solved Threads: 44
 

Because buttons cause postback and a postback is essentially a page refresh.

Sodabread
Posting Whiz in Training
290 posts since Nov 2009
Reputation Points: 103
Solved Threads: 42
 

@sodabread
thanks for such a quick reply.....
Is there any way stop that..........because when surf any web page and click on any button this should not happen there

prvnkmr194
Posting Whiz in Training
222 posts since Oct 2010
Reputation Points: 11
Solved Threads: 44
 

Do you want only client scripts to execute upon button click?
In that case, I suggest using an ordinary input-html tag.

<input type="button" value="Button Text" id="yourButtonId" />


And attach a click event in client code.

strmstn
Junior Poster
100 posts since Mar 2010
Reputation Points: 37
Solved Threads: 10
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: