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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Want to PASS DYNAMIC URL created by query into a "Value in another page"Want to PASS DYNAMIC URL created by query into a "Value in another page"
Previous
 
Next
New Post
9/26/2007 12:05 PM
 
Want to PASS DYNAMIC URL created by query into a "Value in another page"
 
Hi there I m trying to make an include file for navigation. and that does it for normal asp pages but I m having problem with details page. hich is after search, and results page. It shows the details of the results page and actual problem this navigation.asp having trouble with results.asp cause results.asp creates the details.asp 's url at the end of the query. So that url with parameters need to be on that navigation.asp
 
All below has include file = inc_navigation.asp and inc_navigation_config.asp files.
Up to 3rd step everything is Ok, but 4th step isn’t. and That’s because the 2nd file (search) makes query and displays on 3rd page and that 3rd page has the 4th page’s URL and I cant pass that URL to Navigation config file ( that query result url should replace this on below config file >   “a_details.asp”    )so that file can display urls in index style on top of each pages.
 
1.http://www.akbuk-didim.com
2. http://www.akbuk-didim.com/a_search.asp
3. http://www.akbuk-didim.com/a_results.asp
4. http://www.akbuk-didim.com/a_details.asp
 
This works because there is no search and query on these pages and the urls are static:
 
http://www.akbuk-didim.com/innova/search2.asp
 
++++++++++++++++++++ here is the navigation config file +++++++++++++
<%
'           SITE NAVIGATION CONFIG
 
arrMenu = Array( _
                                                Array("default.asp","","Home","online"), _
                                                Array("a_search.asp","","Search","online"), _                            
                                                                        Array("a_results.asp", "a_search.asp", "Results","online"), _
                                                                                                Array("a_details.asp", "a_results.asp", "Details","online"), _
                                                Array("about.asp","","About","online") _
                                                }
%>                  
 
 
++++++++++++++++++++++++++
 
THIS SHOULD BE THE URL :
 
"a_details.asp?T_PropertyREF=<%=objRst("T_PropertyREF")%>&mVarTable=[details]"
 
instead of just “a_details.asp”
 
 
++++++++++++++++++++++++++
 
<%
'           SITE NAVIGATION SCRIPT
Dim sCurrPage, n, sFileName
sCurrPage = Request.ServerVariables("SCRIPT_NAME")
n = InstrRev(sCurrPage,"/")
sFileName = Mid(sCurrPage,n+1)
 
Function TopMenu()
            For i = 0 to UBound(arrMenu)
                        Item = arrMenu(i)
                        If Item(1) = "" AND Item(3)<>"hidden" Then
                                    last_item_index = i
                        End If
            Next
           
            For i = 0 to UBound(arrMenu)
                        Item = arrMenu(i)
                        If Item(1) = "" AND Item(3)<>"hidden" Then
                                    if not i = last_item_index Then
                                                If Lcase(Item(0)) = LCase(sFileName) Then
                                                            Response.write "A<span class=mainbuttonactive>" & Item(2) & "</span> <span class=msep>+</span> "
                                                Else
                                                            Response.write "B<a href='" & Item(0) & "' class='mainbutton'>" & Item(2) & "</a> <span class=msep>+</span> "
                                                End If
                                    else
                                                If LCase(Item(0)) = LCase(sFileName) Then
                                                            Response.write "C<span class=mainbuttonactive>" & Item(2) & "</span>"
                                                Else
                                                            Response.write "D<a href='" & Item(0) & "' class='mainbutton'>" & Item(2) & "</a>"
                                                End If
                                    end if
                        End If
            Next
End Function
 
Function GetDetail(sCurrPage)
            For i = 0 to UBound(arrMenu)
                        Item = arrMenu(i)
                        If LCase(Item(0)) = LCase(sCurrPage) Then
                                    GetDetail = Array(Item(0),Item(1),Item(2))
                        End If
            Next
End Function
 
Function Navigation()
            if LCase(sFileName)<>"default.asp" then
                        Response.Write ""
                        Response.Write "<a href='default.asp'>Home</a>" & Position(sFileName)
                        Response.Write ""
            end if
End Function
 
Function Position(sCurrPage)
            if sCurrPage = "" then exit function
            sLink = GetDetail(sCurrPage)(0)
            sParent = GetDetail(sCurrPage)(1)
            sTitle = GetDetail(sCurrPage)(2)
 
            if LCase(sCurrPage) = LCase(sFileName) then
                        Position = Position(sParent) & " \ " & sTitle
            else
                        Position = Position(sParent) & " \ " & "<a href='" & sLink & "'>" & sTitle & "</a>"
            end if
End Function   
 
Function isHaveSubMenu()
            For i = 0 to UBound(arrMenu)
                        Item = arrMenu(i)
                        If LCase(Item(1)) = LCase(sFileName) AND Item(3)<>"hidden" Then
                                    isHaveSubMenu = true
                                    exit function
                        End If
            Next    
            isHaveSubMenu = false
End Function
 
Function SubMenu()
            For i = 0 to UBound(arrMenu)
                        Item = arrMenu(i)
                        If LCase(Item(1)) = LCase(sFileName) AND Item(3)<>"hidden" Then
                                    Response.Write "<a href='" & Item(0) & "'>" & Item(2) & "</a><br>"
                        End If
            Next
End Function   
%>
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Want to PASS DYNAMIC URL created by query into a "Value in another page"Want to PASS DYNAMIC URL created by query into a "Value in another page"


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