Thanks again Mykola
The problem seems to be that each time the page loads the javascript
is executed and this forces a postback so it gets stuck in a loop.
I may have to rethink how I'm going about this
Cheers
John
On 29 Aug, 09:14, marss <marss...@gmail.com> wrote:
> Hi John,
> The method itself does not cause looping. It may be caused by program
> logic. It is hard to me to give more definite advice. Perhaps, if you
> want to call some method in Page_Load (not in textbox's OnTextChanged
> event handler) you have to test whether this postback was caused by
> change in textbox. I mean that if you call __doPostBack('TextBox1','')
> in javascript then you can process this postback in Page_Load
> if (Request.Params["__EVENTTARGET"] == "TextBox1")
> {
> //call some method here
>
> }
>
> Regards,
> Mykolahttp://marss.co.ua
|