Click here to Skip to main content
15,897,718 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: what is ajax Pin
RepliCrux19-Jul-07 12:50
RepliCrux19-Jul-07 12:50 
AnswerIt's called GOOGLE Pin
leckey19-Jul-07 13:03
leckey19-Jul-07 13:03 
AnswerRe: what is ajax Pin
Vasudevan Deepak Kumar19-Jul-07 18:35
Vasudevan Deepak Kumar19-Jul-07 18:35 
Questionplease do help me ....its about gridview + validating it Pin
vickycruise19-Jul-07 11:02
vickycruise19-Jul-07 11:02 
AnswerHOW MANY VIOLATIONS?!? Pin
leckey19-Jul-07 11:32
leckey19-Jul-07 11:32 
QuestionWeb user controls and urls in asp.net 1.1 Pin
jojoStoneHead19-Jul-07 9:47
jojoStoneHead19-Jul-07 9:47 
AnswerRe: Web user controls and urls in asp.net 1.1 Pin
doWhileSomething19-Jul-07 10:52
doWhileSomething19-Jul-07 10:52 
GeneralRe: Web user controls and urls in asp.net 1.1 [modified] Pin
jojoStoneHead19-Jul-07 11:08
jojoStoneHead19-Jul-07 11:08 
Thanks here is the code:
----------------------------------------------------

Dim sPath As String = Request.Path.ToLower
Dim iStart As Integer = sPath.LastIndexOf("/") + 1
Dim iFirst As Integer = sPath.IndexOf("/", 0) + 1
Dim sPage As String
Dim sVirtualDirectory As String
Dim sPage2 As String
Dim sQS As String = Request.QueryString.ToString

Dim cnfg As New ConfigurationHelper(Request.PhysicalApplicationPath & "Config\config.xml")
Dim sDefaultPageName As String = cnfg.GetString("DefaultPage")

sVirtualDirectory = sPath.Substring(0, sPath.IndexOf("/", 1))
If (sPath.IndexOf(".aspx") - iStart) > 0 Then
sPage = sPath.Substring(iStart, sPath.IndexOf(".aspx") - iStart)
sPage2 = sPath.Substring(0, sPath.IndexOf(".aspx"))

End If


Select Case sPage
Case sDefaultPageName.ToLower
Context.RewritePath(sVirtualDirectory & "/" + sDefaultPageName + ".aspx")
Case Else
Context.RewritePath(sVirtualDirectory & "/" + sDefaultPageName + ".aspx" & "?page=" & sPage2 & "&" & sQS)
End Select
---------------------------------------------------------------------------------------

On the first time the page is loaded it all works fine, but on subsequent clicks on hypelinks in the user controls the rawurl concatinates the path of control


-- modified at 2:51 Friday 20th July, 2007
GeneralRe: Web user controls and urls in asp.net 1.1 Pin
jojoStoneHead19-Jul-07 11:13
jojoStoneHead19-Jul-07 11:13 
GeneralRe: Web user controls and urls in asp.net 1.1 Pin
doWhileSomething19-Jul-07 12:31
doWhileSomething19-Jul-07 12:31 
GeneralRe: Web user controls and urls in asp.net 1.1 Pin
jojoStoneHead19-Jul-07 13:31
jojoStoneHead19-Jul-07 13:31 
Questionasp:Calendar Pin
Brendan Vogt19-Jul-07 8:15
Brendan Vogt19-Jul-07 8:15 
AnswerRe: asp:Calendar Pin
kubben19-Jul-07 8:20
kubben19-Jul-07 8:20 
QuestionFormView ASP.Net 2.0 Pin
Amit Kumar G19-Jul-07 8:12
Amit Kumar G19-Jul-07 8:12 
AnswerRe: FormView ASP.Net 2.0 Pin
Amit Kumar G19-Jul-07 8:22
Amit Kumar G19-Jul-07 8:22 
QuestionSharepoint WebPart Button Click Pin
Daaron19-Jul-07 8:09
Daaron19-Jul-07 8:09 
QuestionParse error message [modified] Pin
ASPnoob19-Jul-07 6:27
ASPnoob19-Jul-07 6:27 
AnswerRe: Parse error message Pin
SHatchard19-Jul-07 6:37
SHatchard19-Jul-07 6:37 
GeneralRe: Parse error message Pin
ASPnoob19-Jul-07 8:39
ASPnoob19-Jul-07 8:39 
Questionsessions again Pin
boyindie19-Jul-07 6:26
boyindie19-Jul-07 6:26 
AnswerRe: sessions again Pin
sathesh pandian19-Jul-07 6:49
sathesh pandian19-Jul-07 6:49 
AnswerRe: sessions again Pin
Manas Bhardwaj19-Jul-07 7:11
professionalManas Bhardwaj19-Jul-07 7:11 
GeneralRe: sessions again Pin
boyindie19-Jul-07 7:50
boyindie19-Jul-07 7:50 
AnswerRe: sessions again Pin
doWhileSomething19-Jul-07 8:19
doWhileSomething19-Jul-07 8:19 
GeneralRe: sessions again Pin
boyindie19-Jul-07 11:15
boyindie19-Jul-07 11:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.