Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • Moderators
Posted

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

Visit...Bassic Software
Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...