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
b b
NA
53
0
GridView Problem
May 6 2010 8:52 AM
Hi All,
I have a Gridview and inside that grid view i have some link. Now when i click on the link inside GridView i want to open an URL. I have written the event in RowCommand event of the GridView and i am getting URL value also. But URL is not opening in first time i click on the link only second time i click on the link its opening,
I want it to open in first click. I am using C# with asp.net
eg:
GridView1_RowCommand()
{
string url=www.xyz.com
if (url != "")
{
GridView1.Attributes.Add("onclick", "window.open('" + url + "')");
}
}
Can anyone help.
regards,
bb
Reply
Answers (
1
)
Bin folder path in asp.net
Bar chart in C#.net web form