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.0Edit Content button with QueryStringEdit Content button with QueryString
Previous
 
Next
New Post
6/2/2008 3:48 PM
 

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 9:03 PM
 

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
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Edit Content button with QueryStringEdit Content button with QueryString


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