Dear all,
i have created a javascript function correctinput() and calling the same in asp .net content page on page load event.
below is javascript function code
function correctinput()
{
var trainingid = prompt("Please Enter Training Id Provided to you", " ");
window.location.href = 'Feedback.aspx?Trainingid=' + trainingid;
}
and code behind is
protected void Page_Load(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(GetType(), "Javascript", "javascript:correctinput(); ", true);
}
but still function is not being calledplease help me

Francis SusaimichaelRank #466 · 5.4K reputationPosted Nov 1, 2015, 1:34 AM EST
{
ClientScript.RegisterStartupScript(GetType(), "Javascript", "javascript:correctinput(); ", true);
Gowtham KRank #65 · 26.5K reputationPosted Nov 1, 2015, 1:08 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts