is it possible?
-
Hi all, I need one clarification. I am working on aspx project. here i have a function (javascript) on my aspx file. My question here is , is it possible to access the same function from the aspx.cs(code behind) file?? can it be possilbe by inheriting or doing something??? thanks in advance
-
Hi all, I need one clarification. I am working on aspx project. here i have a function (javascript) on my aspx file. My question here is , is it possible to access the same function from the aspx.cs(code behind) file?? can it be possilbe by inheriting or doing something??? thanks in advance
As far as I know, there is no conventional method to do so. Even if you achieve it somehow, it is useless unless you process data entered at client's browser. "Eval()" function is the only thing I can consider which might be needed at server side from JavaScript. BTW, Why do you want to do so? Just call your JavaScript function in client side, Post the result back to the server, then you can access the result at the server. After wards, you can process on the result there.
Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.
-
Hi all, I need one clarification. I am working on aspx project. here i have a function (javascript) on my aspx file. My question here is , is it possible to access the same function from the aspx.cs(code behind) file?? can it be possilbe by inheriting or doing something??? thanks in advance
Am I correct in saying that you need to execute a javascript function after a particular event has been completed and the server has rendered the resultant page to the client? If this is what you need then, just use the RegisterStartupScript method in the Page / ClientScript object, based on your version on ASP.NET, to place a call to the javascript function. This call would be executed once the browser receives the markup
-
Hi all, I need one clarification. I am working on aspx project. here i have a function (javascript) on my aspx file. My question here is , is it possible to access the same function from the aspx.cs(code behind) file?? can it be possilbe by inheriting or doing something??? thanks in advance
Hi, User server side script to do this
Farogh Haider Web developer