Hyperlink Control

C

chandra

Hi,
I am a newcomer in the asp .NET c# area. I really need some help here.

I have two web page DEFAULT.ASPX and JOBCATEGORY.ASPX.
Inside the DEFAULT.ASPX there are some webparts.

There is a hyperlink control in one of the webparts that I generate using
the following codes,

HyperLink h02 = new HyperLink ();
h02.Controls.Add ( UpdateImage );
h02.Attributes.Add ("target", "_blank" );
h02.Attributes.Add ("cursor", "hand");
h02.NavigateUrl = URL1; where URL1 = "http://localhost/jobcategory.aspx"
cell.Controls.Add ( h02 );
row.Cells.Add ( cell );
webPartDataTable.Rows.Add ( row );

The result, when I click the above hyperlink control it redirect to a new
window jobcategory.aspx, that actually I don't want to have it. I prefer to
get the same window, closing the default.aspx and after that showing up the
job category.aspx in the same window.

Is there anyone who could help me to get what I want?
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top