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  |  

PortalWebHosting
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
 


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
819 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.

 


Faculty of Graduate and Postdoctoral Studies
At the graduate level, the University of Ottawa offers more than 180 graduate certificates, master's degrees and PhDs, as well as interdisciplinary programs such as Women's Studies and Canadian Studies. Many postdoctoral opportunities are available in both the sciences and the humanities. For further information, please consult the site of the Faculty of Graduate and Postdoctoral Studies.
www.grad.uottawa.ca
Vekkin Solutions
Vekkin Solutions provides complete website solutions and custom module development to churches and small businesses.
www.vekkin.com
Powered by Adcuent®.Com
Adcuent® Consulting & Technology offers custom development web applications and hosting projects under the brand of Powered by Adcuent®.Com
www.adcuent.com

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