Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Problem while calling javascript function on pageload
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Ankit Kumar
8y
394
1
Reply
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
<script type="text/javascript">
function correctinput()
{
var trainingid = prompt("Please Enter Training Id Provided to you", " ");
window.location.href = 'Feedback.aspx?Trainingid=' + trainingid;
}
</script>
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 called
please help me
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Boostrab
Checkbox and button inside gridview