marlin Posted April 26, 2004 Posted April 26, 2004 I have a datalist that has 3 columns. The user will click on the first column of a record and my application is supposed to pop-up a window that will display comments for that record. Should I use Linkbutton or Hyperlink control for the first column? How can I have a window pop-up with a predefined size? Any help is greatly apprecitated. Quote
Moderators Robby Posted April 26, 2004 Moderators Posted April 26, 2004 The linkButton has server events and the hyperlink does not. You need to use Javascript for the popup window eitherway so it will be done on the client. The way to do it is add an OnClick to the control (hyperlink) to use window.open('myPage.aspx') Some JS samples http://www.w3schools.com/js/tryit.asp?filename=tryjs_placenewwindow and http://www.w3schools.com/js/js_examples.asp Quote Visit...Bassic Software
marlin Posted April 29, 2004 Author Posted April 29, 2004 Thank you Thank you so much Robby. I really appreciate your help. :) The linkButton has server events and the hyperlink does not. You need to use Javascript for the popup window eitherway so it will be done on the client. The way to do it is add an OnClick to the control (hyperlink) to use window.open('myPage.aspx') Some JS samples http://www.w3schools.com/js/tryit.asp?filename=tryjs_placenewwindow and http://www.w3schools.com/js/js_examples.asp Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.