Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# jferrell 5/22/2008 5:46 PM
I'm having a problem with what seems like something that should be very simple...

in attempting to navigate from a list.ascx to an edit.ascx within a module....

i followed the examples in the Articles & the Downloads modules....

the navigateurl on a hyperlink control (on the List.ascx) is set as follows...

this.hLinkAddNew.NavigateUrl = UrlHelper.GetUrlFromSection(this._customerModule.Section) + "/Edit/-1";

but when the CustomerModule.ParsePathInfo() is called, the only param showing is "/Edit"

why is the "-1" being stripped off? and/or, what am i doing wrong?

thanks,

jerry
# jferrell 5/23/2008 3:11 AM
well, i got a workaround---or maybe I just found the correct way?? who knows....the PathInfo was stripping everything after "/Edit" that I tacked on there...so I figured I'd see what happened if I put my value in front of the "/Edit".....well, it works, ModuleParams now contain both values, the id value is @ [0] and "Edit" is @ [1]....
# martijnb 5/24/2008 1:32 PM
Really strange. ParsePathInfo only checks for slashes, so it should normally just work. What happens when you add a positive number after 'Edit' (/Edit/1)?
# bigshotspicyman 8/1/2008 8:20 AM
I've been under a fierce deadline and haven't had time to go back & review...I do believe that the information was corruted before getting to ParsePathInfo...I'll go back and check soon....