Reputation: 115
I am having a usercontrol .cs file,from which i am making a javascript call like below.I have to read the value returned from javascript in my usercontrol.cs file
ScriptManager.RegisterStartupScript(this.Page, GetType(), "test", "javascript:GetCompanyName()", true);
How can i achieve it?
Upvotes: 0
Views: 63
Reputation: 5475
store this value in a HiddenFiled
then read it in code behind using
HiddenField1.value
Upvotes: 1