Is there a way to store javascript variable to C# string variable.
I'm trying to achive this in my asp.net <http://asp.net> web application.
private void Page_Load(object sender, System.EventArgs e)
{
string userName ="Hello : ";
Response.Write("<script> language='javascript'>function AlertBox(){ var
name='Tom';alert('"+userName+"'+name)}</script>");
Response.Write("<script>'"+userName=userName+"'+name<script>");
Response.Write("<input value='Find User' type=button onclick=\"
AlertBox();\" >");
//need be append userName with var name='Tom'...something like
userName+=name;
Label1.Text = userName;//output should be Hello : Tom
}
I know this is not a SharePoint yahoo group question. but later i'm
implementing this functionaytllity in a web part application.