how can i handle url
-
hiii, i am first time working on master pages. there is problem related url. my folder structure is game(main folder in game) -search(sub folder) in search folder -cricket(in cricket folder)-cricket.aspx -hocky(folder in this)-hocky.aspx now when user login into the website (he has permission to search only) it shows links as, home|cricket|hocky when he click on cricket it should shows the cricket.aspx page when click on hocky it should shows hocky.aspx. but problem is that,when i click on cricket link it shows criket.aspx(and url is localhost/game/search/cricket/cricket.aspx) but after then i click on hocky link when im in cricket.aspx page it will shows the url like this, localhost/game/search/cricket/search/hocky/hocky.aspx which is wrong url the url should be localhost/game/search/hocky/hocky.aspx please, tell me how can i handle this problem? the links path i have used are taken form database and directly assigned by using href to the text(i.e. to the link name)
-
hiii, i am first time working on master pages. there is problem related url. my folder structure is game(main folder in game) -search(sub folder) in search folder -cricket(in cricket folder)-cricket.aspx -hocky(folder in this)-hocky.aspx now when user login into the website (he has permission to search only) it shows links as, home|cricket|hocky when he click on cricket it should shows the cricket.aspx page when click on hocky it should shows hocky.aspx. but problem is that,when i click on cricket link it shows criket.aspx(and url is localhost/game/search/cricket/cricket.aspx) but after then i click on hocky link when im in cricket.aspx page it will shows the url like this, localhost/game/search/cricket/search/hocky/hocky.aspx which is wrong url the url should be localhost/game/search/hocky/hocky.aspx please, tell me how can i handle this problem? the links path i have used are taken form database and directly assigned by using href to the text(i.e. to the link name)
It would be helpful to show the actual code you are using to assign the urls. What does the database results look like? Assuming you are using HyperLink controls,
link.NavigationUrl = "Search/Cricket.aspx";
I know the language. I've read a book. - _Madmatt
-
It would be helpful to show the actual code you are using to assign the urls. What does the database results look like? Assuming you are using HyperLink controls,
link.NavigationUrl = "Search/Cricket.aspx";
I know the language. I've read a book. - _Madmatt
hi, actualy im giving an example of game, <code>Private Sub fillArrFrmLC(ByVal strTmpForMnuArr(,) As String, ByVal intcode As Integer, ByVal intModuleCode As Integer) Dim tmpArr() As String = New String() {}, intCnt As Integer, intIndex As Integer Dim intLen As Integer = strTmpForMnuArr.GetUpperBound(1) If intLen >= 0 Then If intModuleCode = 2 Then For intIndex = 0 To intLen strTmpForSubMnuArr = objClsGlob.fillSubList(strTmpForMnuArr(0, intIndex), "subMnuForSearch", intcode) Dim intLen1 As Integer = strTmpForSubMnuArr.GetUpperBound(1) If intLen1 >= 0 Then tmpArr = Split(strTmpForSubMnuArr(1, 0), ",") 'fillArrFrmLC(, , ) ReDim Preserve arrLinkNames(arrLinkNames.Length) ReDim Preserve arrCodes(arrCodes.Length) ReDim Preserve arrLinks(arrLinks.Length) arrLinkNames(arrLinkNames.Length - 1) = strTmpForMnuArr(1, intIndex) arrLinks(arrLinks.Length - 1) = tmpArr(1) arrCodes(arrCodes.Length - 1) = strTmpForMnuArr(0, intIndex) End If Next Else For intIndex = 0 To intLen strTmpForSubMnuArr = objClsGlob.fillSubList(strTmpForMnuArr(0, intIndex), "subMnu", intcode) Dim intLen1 As Integer = strTmpForSubMnuArr.GetUpperBound(1) If intLen1 >= 0 Then For intCnt = 0 To intLen1 tmpArr = Split(strTmpForSubMnuArr(1, intCnt), ",") ReDim Preserve arrLinkNames(arrLinkNames.Length) ReDim Preserve arrCodes(arrCodes.Length) ReDim Preserve arrLinks(arrLinks.Length) arrLinkNames(arrLinkNames.Length - 1) = tmpArr(0) arrLinks(arrLinks.Length - 1) = tmpArr(1) arrCodes(arrCodes.Length - 1) = strTmpForSubMnuArr(0, intCnt) Next End If Next End If End If End Sub Private Function getModules() As String(,) 'Dim intCode As Integer = Session("currUsr") Dim strTmpArr(,) As String = New String(,) {} strTmpArr = objClsGlob.fillSubList(intCode
-
hi, actualy im giving an example of game, <code>Private Sub fillArrFrmLC(ByVal strTmpForMnuArr(,) As String, ByVal intcode As Integer, ByVal intModuleCode As Integer) Dim tmpArr() As String = New String() {}, intCnt As Integer, intIndex As Integer Dim intLen As Integer = strTmpForMnuArr.GetUpperBound(1) If intLen >= 0 Then If intModuleCode = 2 Then For intIndex = 0 To intLen strTmpForSubMnuArr = objClsGlob.fillSubList(strTmpForMnuArr(0, intIndex), "subMnuForSearch", intcode) Dim intLen1 As Integer = strTmpForSubMnuArr.GetUpperBound(1) If intLen1 >= 0 Then tmpArr = Split(strTmpForSubMnuArr(1, 0), ",") 'fillArrFrmLC(, , ) ReDim Preserve arrLinkNames(arrLinkNames.Length) ReDim Preserve arrCodes(arrCodes.Length) ReDim Preserve arrLinks(arrLinks.Length) arrLinkNames(arrLinkNames.Length - 1) = strTmpForMnuArr(1, intIndex) arrLinks(arrLinks.Length - 1) = tmpArr(1) arrCodes(arrCodes.Length - 1) = strTmpForMnuArr(0, intIndex) End If Next Else For intIndex = 0 To intLen strTmpForSubMnuArr = objClsGlob.fillSubList(strTmpForMnuArr(0, intIndex), "subMnu", intcode) Dim intLen1 As Integer = strTmpForSubMnuArr.GetUpperBound(1) If intLen1 >= 0 Then For intCnt = 0 To intLen1 tmpArr = Split(strTmpForSubMnuArr(1, intCnt), ",") ReDim Preserve arrLinkNames(arrLinkNames.Length) ReDim Preserve arrCodes(arrCodes.Length) ReDim Preserve arrLinks(arrLinks.Length) arrLinkNames(arrLinkNames.Length - 1) = tmpArr(0) arrLinks(arrLinks.Length - 1) = tmpArr(1) arrCodes(arrCodes.Length - 1) = strTmpForSubMnuArr(0, intCnt) Next End If Next End If End If End Sub Private Function getModules() As String(,) 'Dim intCode As Integer = Session("currUsr") Dim strTmpArr(,) As String = New String(,) {} strTmpArr = objClsGlob.fillSubList(intCode
Useless crap!!! Learn how to format the code before posting again.:mad:
I know the language. I've read a book. - _Madmatt