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
Sezgin Zeka
NA
12
0
Programmatically adding javascipt code in c#
Mar 11 2010 9:43 AM
I have a serious problem with adding javascript event programmatically.
protected override void Render(HtmlTextWriter writer)
{
Attributes.Add("onkeypress", "WebEnumComboBox_OnKeyPress_" + ClientID + "(event)");
Attributes.Add("onkeyup", "WebEnumComboBox_OnKeyUp_" + ClientID + "(event)");
base.Render(writer);
}
is my code, if i wrote this code, mycombobox does not see both events in clientside. Bu if i change
" Attributes.Add("onkeyup", "WebEnumComboBox_OnKeyUp_" + ClientID + "(event)");"
to
"Attributes.Add("onkeydown", "WebEnumComboBox_OnKeyDown_" + ClientID + "(event)");"
it works but, working one does not match my needs. The other (not working) one match. Please help, i want the non working one working but how?
Reply
Answers (
3
)
which is better way to display data in gridview like controls and why?
how to delete multiple records from gridview based on checkbox