Mitchel's Forums

Subject: NavigateUrl vs EditUrl
Prev Next
You are not authorized to post a reply.

AuthorMessages
r_honeyUser is Offline
Regular User
Regular User
Posts:70

05/14/2008 12:38 PM  

Even after some searching, I am not precisely clear about the differences between the NavigateUrl & EditUrl methods, and when should I use which one???

In would be extremely helpful, if somebody could explain precisely their differences, and intended uses???

Also, I passed a string "Action=Add" in cmdArgs of EdittUrl. How do I retrieve it on the destination control???

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5501

05/14/2008 12:50 PM  
Navigate url is used to navigate to different pages or different controls. Edit URL is used to navigate to edit controls. The main difference is that EditUrl injects a moduleid parameter in that allows the switch to edit mode to occur.

Cmd arguments are passed via querystring, so you can reference them via standard .NET Request.Querystring methods.

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

This site is hosted by 3Essentials

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
r_honeyUser is Offline
Regular User
Regular User
Posts:70

05/15/2008 3:40 AM  

Can you please explain the parameters in the following overload of EditUrl:

"Public Function EditUrl(ByVal KeyName As String, ByVal KeyValue As String, ByVal ControlKey As String, ByVal ParamArray AdditionalParameters() As String) As String"

I mean every control (except the primary View Control) has a key associated to it. So, what does KeyName or KeyValue signify here??? What should be passed as their values?

Also, what are AdditionalParameters? Is there any special syntax to be used for strings being passed to AdditionalParameters???

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:5501

05/15/2008 11:18 PM  
KeyName = Your first Querystring Param, for example ItemId
KeyValue = Your first Querystring value, for example 3
ControlKey = The key for the control you are going to as set in the .DNN file
ParamArray = any additional parameters needed

For example, to pass itemID to your edit control you could do

EditUrl("ItemID", 1, "Edit")

-Mitchel Sellers
MCITP, MCPD, MCTS
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

This site is hosted by 3Essentials

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
r_honeyUser is Offline
Regular User
Regular User
Posts:70

05/16/2008 1:43 AM  

Thanx!!!

You are not authorized to post a reply.
Forums >Development Discussion >DotNetNuke > NavigateUrl vs EditUrl



ActiveForums 3.7