CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.dotnetnuke.custom_modules Tags:
Item Type: NewsGroup Date Entered: 11/21/2005 2:40:13 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 12 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
nixie
Asp.Net User
Best way to make a link11/21/2005 2:40:13 PM

0/0

Hi, can anyone please help.
I'm trying to create a detail page, in which I want to display a link to a website.
The link will be pulled out of a database, so I already have it in an info object.

Lets's say it is called: Institute.Weburl

Now I would like to know the beste way to put it on my page.
I've tried:

  • a html anchor (<a runat="server" id="lnkWeburl" target="_blank"...etc.)
  • a asp:hyperlink (<asp:hyperlink id="lnkWeburl"... etc.)
  • a label with DotNetNuke.Common.Globals.FormatWebsite(Institute.Weburl), but this wouldn't open in a new browser

I've also looked at some stuff about Linkclick.aspx which would use URLTracking. But I don't exactly know how to use it, and it seems a lot of trouble for just putting a link on a page.

So, does anyone have any ideas....can anyone explain how I could use linkclicks, etc. Please let me know

linguinut
Asp.Net User
Re: Best way to make a link11/21/2005 7:39:49 PM

0/0

Sounds like you would best use the hyperlink server control.  Place it where you want on the page, then in the Page_Load event fill your info object and set the NavigateURL property of the hyperlink to the weburl property of the info object.  Code snippet from Page_Load event:

<code>
Dim oCtrl as New YourControllerObject
Dim oInfo as New YourInfoObject

oInfo = oCtrl.Get(YourIndex)

linkOnPage.NavigateUrl = oInfo.WebUrl
</code>

You can set the server control's target to blank, so it opens in a new window.

Hope that helps,
Ling

nixie
Asp.Net User
Betreft: Re: Best way to make a link11/22/2005 8:58:08 AM

0/0

Thanks for your contribution Ling.

You need to make sure however that the Url is formatted correctly. It needs to start with http://, otherwise this wouldn't work.
So you need to use some function like this:

Function FormatURL(ByVal Link As String) As String
      If Not Link.StartsWith("http://") Then
           Link = "http://" & Lin
      
End If
   
      
Return Link.ToString
End Function

But I was wondering if this is the 'standard' way to do this, or if there is some other way (perhaps with linkclick).
I also found another function (dnn4):

DotNetNuke.Common.Utilities.HtmlUtils.FormatWebsite()

Perhaps this would be something?

If anyoune has suggestions, or can explain what these functions do, please let me know.

linguinut
Asp.Net User
Re: Betreft: Re: Best way to make a link11/22/2005 1:57:50 PM

0/0

Have you tried the link module?  No, it will not reach into your custom data table, but it will store the url in the DNN table (Links).  I am not sure what it is that you are seeking.  A standard approach for DNN is to utilize the links module.  Outside of that, you are now into non-DNN standards.  And, at that point, the sky's the limit on how you want to approach the link.  Write your own module...rewrite the links module...copy/paste into a text/html box...it's up to you what size brush you want to use and the color of the paint.

DotNetNuke.Common.Utilities.HtmlUtils.FormatWebsite()???  It's just a link control.  My suggestion is to keep it simple.

Regards,
Ling
imagemaker
Asp.Net User
Re: Betreft: Re: Best way to make a link11/22/2005 7:27:32 PM

0/0

The

Public Function FormatWebsite(ByVal Website As Object) As String

method simply creates a string containing a properly formed HTML anchor tag with the href attribute set to the the Website parameter with the addition of http:// if not already present.  This is what I've been using to create a link which is then databound to a datagrid, datalist, etc.  There is also the

Public Function FormatEmail(ByVal Email As String) As String

which creates a mailto: link from an EMail address with the added benefit that it obfuscates the EMail address through Javascript concatenation of ASCII codes. 


Bill, WESNet Designs
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
The Year's Best Fantasy and Horror: Eighteenth Annual Collection: Eighteenth Annual Collection Authors: Ellen Datlow, Kelly Link, Gavin J. Grant, Pages: 608, Published: 2005
The Airmen and the Headhunters: A True Story of Lost Soldiers, Heroic Tribesmen and the Unlikeliest Rescue of World War II Authors: Judith M. Heimann, Pages: 289, Published: 2007
Linux Device Drivers Authors: Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman, Pages: 615, Published: 2005
High Probability Trading: Take the Steps to Become a Successful Trader Authors: Marcel Link, Pages: 288, Published: 2003
The Loyalty Effect: The Hidden Force Behind Growth, Profits, and Lasting Value Authors: Frederick F. Reichheld, Thomas Teal, Pages: 323, Published: 2001
The Timber-frame Home: Design, Construction, Finishing Authors: Tedd Benson, Pages: 240, Published: 1997
Fast Food Nation: The Dark Side of the All-American Meal Authors: Eric Schlosser, Pages: 356, Published: 2001
Ethernet: The Definitive Guide Authors: Charles E. Spurgeon, Pages: 498, Published: 2000
The Road to Wealth: A Comprehensive Guide to Your Money: Everything You Need to Know in Good and Bad Times Authors: Suze Orman, Pages: 597, Published: 2008

Web:
The Best Way to Make Money Online? (For Beginners) | Caroline ... 61 Constructive Opinions on the Best Way to Make Money Online. [...] Caroline Middlebrook (link to blog post) When I did Internet marketing before from ...
What is the best way to make a Delphi Application completely full ... What is the best way to make a delphi application (delphi 2007 for win32 here) go ... link|offensive? answered Aug 18 at 11:41. onnodb 1290●1●10 ...
Make Money Online Reviews » What’s the best way to make money online? 61 Constructive Opinions on the Best Way to Make Money Online on October 7th, 2007 3:03 am. […] 62. Emigre - Some Useless Info (link to blog post) […] ...
Affiliate Link Cloaking - The Best Way To Protect Your Affiliate ... Mar 13, 2008 ... Affiliate Link Cloaking - The Best Way To Protect Your Affiliate Commissions .... You make your cloaking links more search engine friendly ...
One Way Link Building Tips the easiest way to build a lot of links quickly. We would recommend that you read the following tips and tricks on. how to build the best link structure and ...
What is the best way to make money online without selling anything ... Make Extra Cash At Home Typing Ads for Companies. TAGS: Best Way To Make Money Online, ... here is a link to make money you dont need to but any private ...
What is the Best Way to Build PageRank Throughout a Site? Make it easy for people to link to you Query strings, long urls etc etc .... The best way to build PR throughout a site is to get backlinks. ...
canonical way to make stable link to most recent version of CPAN ... canonical way to make stable link to most recent version of CPAN module documentation? .... Selected Best Nodes · Best Nodes ...
101 Link Building Tips to Market Your Website : SEO Book.com If you impress the people listed well enough, or find a way to make your project .... If you create a blog make sure you list it in a few of the best blog ...
The Best Way To Make Money Online — DoshDosh Survey Dave Starr - Retired Pay (Link to Blog Post) If you’d like to make money online ... Opinions on the Best Way to Make Money Online on May 28, 2008 @ 5:06 am ...

Videos:
How To Make Money Online Best Way On The Planet PROOF!! http://openyourmindtomoney.ws 516-984-1625 How To Make Money Online FAST 2500$ a WEEK How To Make Money Online FAST 2500$ a WEEK How To Make Money O...
FREE Way to Make Money at Home [Online] Earn Easy $500 Daily from the Internet Work at Home Jobs! FREE Way to Make Money at Home Are you Searching for the best way to make money online for FREE? Do you want to earn $500 per day for an easy work ...
How To Actually [Really] Make Money Online FREE [PROOF] Best Way [With Brian Bear] http://MakeRealMoney.us Join the #1 World Ranked Spiderweb Marketer Brian Bear in making money Make FREE Money Online hundreds a Day WATCH THIS!! Bu...
Make money from the internet the genuine way watch my VIDEO PROOF how i do it with Web 2.0 Watch how im earning $800 a week+ Global Domians [Work from home] Best online business for newbies and all experienced Marketers DONT MISS THE BOAT!!!! http://website.ws/pnmarketing SKYPE - paul.nicholls56 EMAIL - [email protected] Make money online free- NO Buying Make money online ...
Ronan Keating-The Way You Make Me Feel! This video has some wonderful pictures of Ronan and the song is one of my personal favourites. I would like to thank the numerous sources for the pic...
Best Way To Make Money Online Over the summer, I have spent many hours researching money making opportunities on the web that didn't require extensive work or personal info. I sta...
Bux.to the best way to make money this is the greatest money mkaing site ever im new at this but i trust iit 100% my link will be at the bottom just click it to go to the webpage and ...
Portal - Credits Song 'Still Alive' The song 'Still Alive' at the end of Portal during the credits. GLaDOS Myspace/MP3/Companion Cube Wallpaper at the bottom of the description. 'Still...
Best Way To Make Money Online! W/ PAYPAL PROOF! http://website.ws/nucks/ - Go here to sign up for a GDI account. for every 1 person you refer you earn $1. and for every person they refer you earn c...
How to make a link clickable on Myspace-Bullentins-Websites . http://www.robert-phillips.us . Dummies' Guide to Making A Link Clickable ON Myspace Or Websites: How to make a clickable link There are more t...




Search This Site:










2 quesions/issues

mysterious error while installing my module.

security issues

ie not displaying correctly

unwanted redirecting to the login page for an authenticated website after postback trigger.

dynamic picture enlarge (zoom in)

existing custom providers for membership, profiles and roles using web services?

connection problem

how to use ssl

encryption db connection string

referencing the htmlhead element from a master page code behind.

possible subportal issue with dnn 3.0.13

parent portal addition failure (dnn 4.0.1)

is visual web developer 2005 express edition free?

treeview selected nodes

edit of stylesheet does not change page

remote debugging , can someone recommend a how-to for setup

doc link

inserting data to more than one table

anyone remeber seeing a swf flash frontend to dnn?

3.1.1 data provider problem

can i move the installed dnn dir to another dir?

default error page

upgrading from 1.1 to 2.0 with flash remoting

dedicated dnn support?

it keeps telling it is not declare even though it is there ..please help !!

lost data on global variable after button-click

treeview-expand-no icon

cookie based on value from dataset

ms crm / outlook web. statically positioned, dynamic menu selection. how is this done?

 
All Times Are GMT