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.0How to pass an itemId to another .ascx control with NavigateUrlHow to pass an itemId to another .ascx control with NavigateUrl
Previous
 
Next
New Post
6/15/2006 2:00 PM
 
Hi people

Help! I have surfed NavigateUrl on the asp.net dotnetnuke forums and the forums here and this code should work. I want to pass the itemId to a control that is not the default Edit control of EditUrl but while...

Response.Redirect(NavigateURL(Me.TabId, "EditAim", "Mid=" & ModuleId.ToString))

oes take me to the right control, when I add the ItemId parameter like so...

Response.Redirect(NavigateURL(Me.TabId, "EditAim", "Mid=" & ModuleId.ToString, "ItemId=" & ItemId.ToString))

This code does NOT pass the ItemId into the query string and in fact takes me to my original blank control key.

It must be obvious but I cannot see what am I doing wrong. Please help

Many thanks in advance

Geoffrey


Geoffrey Morton-Haworth www.yalaworld.net
 
New Post
6/15/2006 2:28 PM
 
Try
Response.Redirect(NavigateURL(Me.TabId, "EditAim", _
   new string(){"Mid=" & ModuleId.ToString , "ItemId=" & ItemId.ToString}))

.  You are currently using the wrong overload.
 
New Post
6/15/2006 4:56 PM
 
Many, many thanks. I have just been trying out this suggestion and I get error messages about converting to Integer which I dont think I am doing. Meanwhile by continuing trial and error this code seems to be working now...

Response.Redirect(NavigateURL(Me.TabId, "EditAim", "Mid=" & ModuleId.ToString, "ItemId=" & ItemId.ToString))

... although that was what I thought I had been doing, although it now seems it is using the wrong overload.

Judging from the number of threads and posts about NavigateUrl and EditUrl a lot of people get quite confused by the overloads. I am not quite sure, for example, what the hover message ParamArray Additional Parameters() to String is looking for. Do you know anywhere that this is explained in basic terms for new people.

Kind regards

And thanks again for a rapid helpful response.

Geoffrey Morton-Haworth www.yalaworld.net
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to pass an itemId to another .ascx control with NavigateUrlHow to pass an itemId to another .ascx control with NavigateUrl


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