Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Hyperlink Control

Reply
Thread Tools

Hyperlink Control

 
 
chandra
Guest
Posts: n/a
 
      11-07-2005
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?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink control in user control =?Utf-8?B?Y2dhbWJpbm8=?= ASP .Net 2 03-22-2007 10:19 PM
How to add a hyperlink column to asp.net datagrid - where only one value is a hyperlink davetichenor ASP .Net 1 10-30-2006 02:57 PM
How to add a hyperlink column to asp.net datagrid - where only one value is a hyperlink Dave ASP .Net Datagrid Control 0 10-21-2006 07:48 PM
Dynamically Hyperlink and Event Handler for the Hyperlink ? Ken ASP .Net Datagrid Control 1 08-15-2003 11:38 PM
Get a hyperlink control inside a datalist when databouding Arjen ASP .Net 0 08-04-2003 09:22 PM



Advertisments