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.0DNN UrlControl -- fed up with it!DNN UrlControl -- fed up with it!
Previous
 
Next
New Post
2/8/2007 5:01 PM
 
 

So I am building this custom menu builder and I use the built in UrlControl to pick my links for the menu items, but it is a real pain in the bum.  The problem I run into is that if I try to set the Url dynamically from a postback, it doesn't do jack.  If I create a test where it loads the Url from an initial request (so it uses an "itemid" in the query string, for example), that works... but that's just hokey.

So I have a list of my menu items on the left side, and when I click them, I load details for them and attempt to load my Url info into the Url Control.  Since that doesn't work, I decided I had two options:

1) To edit a url (change link), you have to delete and recreate.  == big pain in bum

2) Create my own Web Server Control based on the UrlControl (same functionality, new code).

I chose the latter.  You can get it, if you are interested, from here. (halfway down the page)

Side note: when I'm done with my menu builder, I'll be providing that for free also.


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
2/8/2007 9:24 PM
 

Everybody hates the URLControl. 


Charles Nurse
Chief Architect
Evoq Content Team Lead,
DNN Corp.

Want to contribute to the Platform project? - See here
MVP (ASP.NET) and
ASPInsiders Member
View my profile on LinkedIn
 
New Post
2/9/2007 4:08 AM
 
cnurse wrote

Everybody hates the URLControl. 

Hehehe.... I share the feeling :)


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
New Post
2/9/2007 9:00 AM
 

Hmm... well then maybe this is a breath of fresh air for it.  I have no problem providing the source code now that it is in a custom server control and maybe somebody will want to polish it up a bit and make it something everybody can like.  I left it essentially just the same as the "official" UrlControl (same functionality), but changed a little bit of the code.  I took out the localization stuff (wasn't in the mood to make it work because it didn't matter to me anyway), and for some reason some of the properties won't persist if you set them in designer mode but will do so if you set them in the ASPX declaration.  Again, I wasn't in the mood to fix those things since it is good enough for me at this point.

Glad to hear I wasn't the only person who was ripping my hair out about the control.


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
2/9/2007 9:14 AM
 

If you don't make it a complete control (with localization and everything) - with all the same features and more, it's hard that it will get accepted (even then, if everything is perfect... my experience is that it could be turned down)

But it would be great if the core team (or if we can, and then give it to them?) would make all these standard DNN controls all over again, as server ones with some of the today-common functionalities.

 


Thanks,
Vladan Strigo
NETMedia

My website: Vladan.Strigo.NET

Vladan.Strigo.NET: Projects
* Advanced VS2005 development approach - BlankModule
* DNN & Microsoft Ajax best practices guidance

Vladan.Strigo.NET: Resources
* Comprehensive list of DNN 4 Module development resources

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN UrlControl -- fed up with it!DNN UrlControl -- fed up with it!


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