TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ankit Kumar
NA
159
48.3k
Problem while calling javascript function on pageload
Nov 1 2015 4:44 AM
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
Reply
Answers (
2
)
Boostrab
Checkbox and button inside gridview