User241870397 posted
hey i saw below codes in an old post and my question is, i need two inputs from the user and the code i used below is not working all the way, it prompts for the 2nd question but does not store any value, any suggestions?
string prompt = "<script langauge='javascript'>"
+ "var pmt = prompt('Enter Website For Networking','http://');"
+ "var pmt2 = prompt('Enter a short Desciption for ' + pmt + '');"
+ "document.getElementById('TextBox1').value=pmt; //pmt has got the user input value"
+ "document.getElementById('TextBox2').value=pmt2; //pmt has got the user input value"
+ "</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "Prompt", prompt);