Passing values in asp.net function from javascript
-
Hi.. I am having a function getcities()in codebehind. I am writing javascript in aspx page and calling this function from javascript like this... <% getcities(); %> This wrks fine. But now i want to pass parameters in this function. So if i give <% getcities(cityname, statename); %> den it gives error - cityname & statename does not exist in current context. Here i have 2 var cityname & statename. can anyone tell me wat is the problem in this. Thnku in advance...
-
Hi.. I am having a function getcities()in codebehind. I am writing javascript in aspx page and calling this function from javascript like this... <% getcities(); %> This wrks fine. But now i want to pass parameters in this function. So if i give <% getcities(cityname, statename); %> den it gives error - cityname & statename does not exist in current context. Here i have 2 var cityname & statename. can anyone tell me wat is the problem in this. Thnku in advance...
When did you call that function ? in any event means some button click or what ?
Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"