Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / January 2006

Tip: Looking for answers? Try searching our database.

grid view button field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jasmine - 30 Jan 2006 22:46 GMT
Hi,

how can I set up the javascript for the button field in the grid view, so
that when the user click the button, a pop up window will be opened, I mean
where could I add the "window.open "url" script for the buttion?

Thanks
Patrick.O.Ige - 31 Jan 2006 03:00 GMT
Jasmine add  this
javascript:var
w=window.open('mypopwin.aspx?ID={0}','','width=400,height=400');
to where you need it..
Try posting what u are trying to do.
Hope that helps
PAtrick

> Hi,
>
[quoted text clipped - 3 lines]
>
> Thanks
Jasmine - 31 Jan 2006 14:41 GMT
Hi,

Thank you very much for reply.

I added the script in the gridview hyperlink colomn for "
DataNavigateUrlFormatString = "javascript: var w= ...", but once I added
javascript here instead of "  DataNavigateUrlFormatString
='mypopwin.aspx?ID={0}' ", the hyperlink text lost hyperlink, becomes regular
text, which means I can't click on it, how can I fix it?

Thank you .

> Jasmine add  this
> javascript:var
[quoted text clipped - 12 lines]
> >
> > Thanks

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.