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 11 2010 12: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 + "')");
}
}
Reply
Answers (
1
)
Bar chart in C#.net web form
Ask : How to connect AspxGridView to SqlServer2005