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  |  

AspDotNetStoreFront
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
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.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Edit Content button with QueryString
Previous Previous
 
Next Next
New Post 6/2/2008 1:48 PM
User is offline J I
1 posts
10th Ranked


Edit Content button with QueryString 

Hello there, I'm developing a simple module that allows the user to enter text into the FCK Editor, and in the display view, display it as formatted HTML. This part works fine, and I'm able to add new content and have it show fine. The problem I'm having is with editing previously created content. The view control takes a query string parameter to pull the records from the database. So when I go into the edit control, it needs to be able to pull this same parameter. Is this type of editing ability already built in, or will I have to implement it myself? And if I do, how do I pass the query string from view control to the edit control?

 
New Post 6/2/2008 7:03 PM
User is offline William Severance
842 posts
www.wesnetdesigns.com
7th Ranked






Re: Edit Content button with QueryString 

If KeyID is an integer containing the value obtained from the query string parameter passed into the view control, you can pass it to the method EditUrl (defined in PortalModuleBase from which your module controls inherit) and then use the resulting URL string to either set the NavigateURL property of a link button or image button or force a redirect to this URL to transfer to the edit control as follows:

Dim myEditURL As String = EditURL ("KeyID", KeyID.ToString())
lnkEdit.NavigateURL = myEditURL

' ************* OR - in the button click handler ******************

Response.Redirect (EditURL ("KeyID", KeyID.ToString(), True)


Bill, WESNet Designs
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Edit Content button with QueryString
 


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.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

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