0

hi friend. i have a simple question but not sure answer is simple :). how can i run an aspx event with javascript.

thanks

2
Contributors
8
Replies
9
Views
8 Years
Discussion Span
Last Post by cotzan
0

My only question would have to be why do you need to? You need to think about the fact that ASP runs on the server while JavaScript is on the client.

0

firstly thank you so much for interest. yes i want o run an event of aspx without postback. so that possible with js. for example we have a textbox for check names in database, when we press 'a' i want to see all datas from db which start with 'a'.

0

I don't quite understand what you're trying to do. Let me see if I have this correct...

1. Have an ASP text box control on a form
2. The user enters text into the text box
3. Does the user have to press a button or is this on the TextChanged event?
4. Show all values from some database table where a field contains the text entered in the text box with no round trip to the server

0

yes u understood the question. how can i run TextChanged event without postback :S

0

How would you get the data from the database if you never sent anything to the server?

0

i send to db Text of TextBox whit TextChanged event, for ex; 'a'.
and TextChanged event runs the codes and gets data from db.

0

What you are describing is easily accomplished with standard .NET code. I don't quite see why you're trying to use JavaScript (...if it's even possibly to do so in this scenario).

1

i have to use js, because my project based on .net and js. and this is just a scenario. i have run .net event with js function. anyway thank you so so much my dear friend. yours respectfully

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.