Click here to Skip to main content
15,890,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
ClientScript.RegisterStartupScript(this.GetType(), "prompt", "var value = prompt('Enter your message here.'); storeinput(dd);", true);



I used this code inside c# code.Now any one can say How to get the value entered.
Posted
Comments
Sampath Lokuge 7-Dec-13 12:04pm    
Check these links.May be helped to you.
http://msdn.microsoft.com/en-us/library/z9h4dk8y(v=vs.110).aspx
http://www.codeproject.com/Articles/11098/Use-Call-RegisterStartUpScript-RegisterClientScrip

1 solution

Use HiddenField to store the value.
Refer- How to get prompt value in ASP.NET?[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900