debugging javascript code
how can i debugging java script code in visual studio.
and is there any way to send parametr from asp.net to javascript function.
example: i want to send parametr (i) from c# code to javascript function
[210 byte] By [
ahmad_n80] at [2007-11-20 9:23:23]

# 1 Re: debugging javascript code
For JavaScript debugging in Visual Studio, see: http://blogs.interfacett.com/dan-wahlins-blog/2006/12/1/video-debugging-aspnet-ajax-applications-with-vsnet-2005.html
You'll have to be more specific about what you want to do with the variable you're sending to JavaScript. JavaScript is executed in the browser, so it can only get new data from ASP.NET (the web server) during a postback.
# 2 Re: debugging javascript code
You can pass parameters, but only in one true method. You have to write them to the browser response.
<input type="button" value="Run it" onclick="function('<% Response.Write(variable); %>')" />
EDIT: Also, don't forget this (http://msdn2.microsoft.com/en-us/library/k2h50zzs(VS.80).aspx) when configuring debugging!