Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

Maximum ASP
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! (Pro...  URLControl Return trip
Previous Previous
 
Next Next
New Post 5/30/2008 5:42 PM
Unresolved
User is offline toadkicker
29 posts
10th Ranked


URLControl Return trip 

I have the URLControl on an edit page. Users may come back to this page and edit their entries over and over and over and over again. Each visit back to the page shows the URLControl is back to its default set up as though they never picked a file from it before. I assumed that the URL property took care of that, but maybe I'm wrong? So how does one set the URLControl so on return trips to the page it persists the data users selected previously? I have my values being stored in a column and returned in a public property.

 

Thanks and have a good weekend!

 
New Post 6/2/2008 8:08 AM
User is offline Fooberichu
414 posts
www.seeleyware.com
8th Ranked


Re: URLControl Return trip 

You'll need to set the URL for the control during the OnInit phase of the page/control lifecycle because it has some hard-coded stuff into PageLoad on the control that makes it impossible to change the URL later.  In a nutshell:

protected override void OnInit(EventArgs e)
{
    UrlControl1.Url = "someSetting"; // where some setting is whatever you have saved to your database from a previous UrlControl.Url reading
}

You can also change the type by setting UrlControl1.UrlType = "N" (none), "F" file, "U" user, "T" tabs


-- Fooberichu
http://www.seeleyware.com
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! (Pro...  URLControl Return trip
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Cygnusoft Custom Software
Cygnusoft has been providing cutting-edge custom software solutions for 20 years. Cygnusoft is also a leading start-up incubator, helping our partners build successful new businesses.
www.cygnusoft.com
Digicon: DotNetNuke design and development
Digicon is based in Brisbane, Queensland, Australia
digicon.com.au
Live Visitor Tracking & Live Chat For DotNetNuke
Track your visitors in real time and add live chat for sales & support. Free Trial.
www.whoson.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP