Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Please help with databinding question!Please help with databinding question!
Previous
 
Next
New Post
9/26/2007 12:44 PM
 

I have a module that rotates a series of user defined images on the home page. Pretty simple. I also want to let the user define an internal link for each image. To that end I have a field,

<asp:TextBox ID="LinkPathTextBox" runat="server" Text='<%# Bind("LinkPath") %>' Width="264px" Visible="true"></asp:TextBox>

that, when populated with data, inserts that data into the correct database table. If I put data in that field directly, it works on submit. However, I want to leverage the urlControl control provided by dnn. I've added the kind of control that I want,

<Portal:URL ID="link1" runat="server" ShowFiles="false" ShowLog="False" ShowNewWindow="False" ShowTabs="True" ShowTrack="False" ShowUrls="False" UrlType="F" Width="300"></Portal:URL>

but now, when someone selects one of the portal pages from that urlControl, I need that selection to get placed in the TextBox "LinkPathTextBox".

Short of some javascript hack, please help me understand how to do this. It's probably very simple, but I haven't the first clue where to go to figure it out.

To demonstrate the abyss that is my ignorance my thoughts run like this:

<asp:TextBox ID="LinkPathTextBox" runat="server" Text='<Portal:URL ID="link1" runat="server" ShowFiles="false" ShowLog="False" ShowNewWindow="False" ShowTabs="True" ShowTrack="False" ShowUrls="False" UrlType="F" Width="300"></Portal:URL><%# Bind("LinkPath") %>' Width="264px" Visible="true"></asp:TextBox>

 
New Post
9/26/2007 5:55 PM
 

So, the following code worked. It gives me the tab ID, which I can then process in a way that works. I would prefer to get the tabName, but this will do.

                        <Portal:URL ID="link1" Url='<%# Bind("LinkPath") %>' runat="server" ShowFiles="false"
                            ShowLog="False" ShowNewWindow="False" ShowTabs="True" ShowTrack="False" ShowUrls="False"
                            UrlType="F" Width="300"></Portal:URL>

 
New Post
9/26/2007 6:53 PM
 

have a look at the NavigateURL() method - it should do what you need.

Westa

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Please help with databinding question!Please help with databinding question!


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out