Velocity Reviews - Computer Hardware Reviews

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

Reply
Thread Tools

Composite Control - Hyperlink Problem

 
 
Mike
Guest
Posts: n/a
 
      10-22-2003
I have a composite control containing several
hyperlinks. I've placed this control on several aspx
pages and everything works fine at run-time. However,
within my project I created a sub-directory ( a new
folder, called TESTFOLDER ) containing another aspx file
( called test.aspx ). I then dropped my composite
control onto test.aspx. When I run and go to test.aspx
and click on one of the links on my custom control, the
path now contains TESTFOLDER. So instead of
Project1/WhereTheLinkShouldgo .. I get ..
Project1/TESTFOLDER/WhereTheLinkShouldGo, which fails.

Do I need to include the entire Custom Control code in
this new directory or is there some way of assuring that
when you click a hyperlink within the control, the same
path is passed no matter where the custom control resides?

I am setting the .NavigateUrl for my hyperlinks in
CreateChildControls()

Thanks in advance for your help.
 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      10-23-2003
I used Linkbuttons and js to open my aspx pages within
the class. Please dont worry about repling to this.
Thanks!!
>-----Original Message-----
>I have a composite control containing several
>hyperlinks. I've placed this control on several aspx
>pages and everything works fine at run-time. However,
>within my project I created a sub-directory ( a new
>folder, called TESTFOLDER ) containing another aspx file
>( called test.aspx ). I then dropped my composite
>control onto test.aspx. When I run and go to test.aspx
>and click on one of the links on my custom control, the
>path now contains TESTFOLDER. So instead of
>Project1/WhereTheLinkShouldgo .. I get ..
>Project1/TESTFOLDER/WhereTheLinkShouldGo, which fails.
>
>Do I need to include the entire Custom Control code in
>this new directory or is there some way of assuring that
>when you click a hyperlink within the control, the same
>path is passed no matter where the custom control

resides?
>
>I am setting the .NavigateUrl for my hyperlinks in
>CreateChildControls()
>
>Thanks in advance for your help.
>.
>

 
Reply With Quote
 
 
 
 
Guest
Posts: n/a
 
      10-23-2003
I used Linkbuttons and js to open my aspx pages within
the class. Please dont worry about repling to this.
Thanks!!
>-----Original Message-----
>I have a composite control containing several
>hyperlinks. I've placed this control on several aspx
>pages and everything works fine at run-time. However,
>within my project I created a sub-directory ( a new
>folder, called TESTFOLDER ) containing another aspx file
>( called test.aspx ). I then dropped my composite
>control onto test.aspx. When I run and go to test.aspx
>and click on one of the links on my custom control, the
>path now contains TESTFOLDER. So instead of
>Project1/WhereTheLinkShouldgo .. I get ..
>Project1/TESTFOLDER/WhereTheLinkShouldGo, which fails.
>
>Do I need to include the entire Custom Control code in
>this new directory or is there some way of assuring that
>when you click a hyperlink within the control, the same
>path is passed no matter where the custom control

resides?
>
>I am setting the .NavigateUrl for my hyperlinks in
>CreateChildControls()
>
>Thanks in advance for your help.
>.
>

 
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
Composite vs non composite Controls Mike ASP .Net Web Controls 4 03-11-2005 05:47 AM
Losing Composite Control property that another Composite Control ... Chad ASP .Net Building Controls 0 02-01-2005 09:01 PM
Possible to create a composite control that has a child control that is a validator that validates the composite control itself? Jonathan Eric Miller ASP .Net Building Controls 2 07-22-2004 10:58 PM
Composite control with dynamic composite controls sleigh ASP .Net 1 02-12-2004 06:24 PM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net 0 07-01-2003 09:26 PM



Advertisments