One simple question about HyperLink, Urgent, thanks

E

Edward

I've one datagrid and one frame with id ="frmdetail",

in the datagrid, there is one template column which includes one HyperLink,

<asp:HyperLink id="detaillnk" runat="server" text='detail'
Target='frmdetail' NavigateUrl='someurl' ></asp:HyperLink>

but when I clicked , it was shown in one new window.

Thank you, wait for the answer online...
 
J

John Timney \(Microsoft MVP\)

Target='frmdetail' relates to the window that you want the URL to open into,
if your exisiting window is not called this it will spawn a new window and
name it frmdetail when the link is clicked.

--
Regards

John Timney
Microsoft Regional Director
Microsoft MVP
 
E

Edward

Thanks, John.

if I want the DataGrid to set the frame src in the same page , how to do it?

BTW, I used Microsoft TreeView, its treenode can set Target to frame in the
same page. Why datagrid cannot ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top