Alert box to take confirmation for data insertion
I am developing a web application in ASP.NET C# i want to generate a alert box which have value from session and two button yes and no, if yes is click its should redirect either return to same page without post back. Kindly help me to solve the issue.

Ranjit PowarRank #553 · 4.4K reputationPosted Jun 26, 2016, 11:02 PM EDT
JohnRank #2,322 · 608 reputationPosted Jun 26, 2016, 11:18 PM EDT
Mufid Bagdadi96 reputationPosted Jun 26, 2016, 11:35 PM EDT
JohnRank #2,322 · 608 reputationPosted Jun 27, 2016, 1:12 AM EDT
<script type = "text/javascript">
function callJS(){
var a = '<%=CallCsharp()%>';}
</script>
{
protected void Page_Load(object sender, EventArgs e)
{
}
public string CallCsharp()
{
string str = "testing";
}
}
Vinay SinghRank #604 · 4K reputationPosted Jun 27, 2016, 1:23 AM EDT
JavaScript Confirm Message From Code Behind in Asp.Net Using C#
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts