avoid postback using ajax in javascript
Hi I am refreshing a web page
in javascript like "document.form.submit()"
when ever i modify the text in a text box.
I am using aspx text box where i have called onblur event in code behind using the syntax textbox.attibutes.add("onblur","fnRefresh()") of this text box in javascript
so when text is changed i am calling javascript function fnRefresh().
now the thing is when this javascript is called i will put some data in another text box like:
function fnRefresh()
{
document.getElementByID("textbox2").value="Text changed in first text box"
document.form.submit()
}
Though i am using ajax controls like scriptmanager & update panel, when my page is getting refreshed, the entire page is loading everytime when the text in first text box is changed.
my requirement is when onblur event fires for first textbox, data should be updated in second text box without loading the entire page.
plz suggest me how would i go about..
|