Click here to Skip to main content
15,885,953 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Loading controls on page with UpdatePanel Pin
Łukasz Nowakowski11-Jun-10 0:26
Łukasz Nowakowski11-Jun-10 0:26 
GeneralRe: Loading controls on page with UpdatePanel Pin
Łukasz Nowakowski11-Jun-10 0:37
Łukasz Nowakowski11-Jun-10 0:37 
GeneralRe: Loading controls on page with UpdatePanel Pin
Brij11-Jun-10 2:22
mentorBrij11-Jun-10 2:22 
QuestionCreating foreign key constraints through Sqlcommand.ExecuteNonQuery() Pin
vishnukamath10-Jun-10 23:28
vishnukamath10-Jun-10 23:28 
AnswerRe: Creating foreign key constraints through Sqlcommand.ExecuteNonQuery() Pin
Peace ON11-Jun-10 0:00
Peace ON11-Jun-10 0:00 
QuestionFusion Chart Pin
KhandelwalA10-Jun-10 22:47
KhandelwalA10-Jun-10 22:47 
QuestionHow display Custom Error Page when Javascript Page redirect fails Pin
netnest10-Jun-10 21:46
netnest10-Jun-10 21:46 
AnswerRe: How display Custom Error Page when Javascript Page redirect fails Pin
Peace ON10-Jun-10 22:17
Peace ON10-Jun-10 22:17 
I think you need to do URL Validation at server side.
Once it is validated then you can redirect to that
particular URL.

Use following code to validate URL.

VB
Public Class UrlValidity

Public Shared Function IsValid(ByVal Url As String) As Boolean
Dim sStream As Stream
Dim URLReq As HttpWebRequest
Dim URLRes As HttpWebResponse

Try
     URLReq = WebRequest.Create(Url)
     URLRes = URLReq.GetResponse()
     sStream = URLRes.GetResponseStream()
     Dim reader As String = New StreamReader(sStream).ReadToEnd()
     Return True
Catch ex As Exception
     ‘Url not valid
     Return False
End Try
End Function

End Class



HTH
Jinal Desai - LIVE
Experience is mother of sage....

Questionhow to decide..how much time user use my website...? Pin
koolprasad200310-Jun-10 19:40
professionalkoolprasad200310-Jun-10 19:40 
AnswerRe: how to decide..how much time user use my website...? Pin
Brij10-Jun-10 20:15
mentorBrij10-Jun-10 20:15 
AnswerRe: how to decide..how much time user use my website...? Pin
Peace ON10-Jun-10 21:14
Peace ON10-Jun-10 21:14 
Questionhelp needed with passing parameters Pin
Farraj10-Jun-10 19:07
Farraj10-Jun-10 19:07 
AnswerRe: help needed with passing parameters Pin
m@dhu10-Jun-10 19:40
m@dhu10-Jun-10 19:40 
GeneralRe: help needed with passing parameters Pin
Farraj10-Jun-10 20:26
Farraj10-Jun-10 20:26 
AnswerRe: help needed with passing parameters Pin
Brij10-Jun-10 20:39
mentorBrij10-Jun-10 20:39 
GeneralRe: help needed with passing parameters Pin
Farraj10-Jun-10 20:55
Farraj10-Jun-10 20:55 
GeneralRe: help needed with passing parameters Pin
Brij10-Jun-10 21:15
mentorBrij10-Jun-10 21:15 
QuestionProblem with setting a Hyperlink to DataTextFormatString of RadioButtonList Control Pin
AndyASPVB10-Jun-10 10:46
AndyASPVB10-Jun-10 10:46 
QuestionProblem with CSS Pin
AndyASPVB10-Jun-10 10:33
AndyASPVB10-Jun-10 10:33 
AnswerRe: Problem with CSS Pin
PSK_10-Jun-10 15:56
PSK_10-Jun-10 15:56 
Questionaddin to gridview dynamically Pin
the exile10-Jun-10 9:53
the exile10-Jun-10 9:53 
AnswerRe: addin to gridview dynamically [modified] Pin
raju melveetilpurayil10-Jun-10 10:39
professionalraju melveetilpurayil10-Jun-10 10:39 
QuestionHow to rewrite global resources value programatically?Or how to create a new global resources file for new language dynamically? Pin
mehran.asg10-Jun-10 8:50
mehran.asg10-Jun-10 8:50 
AnswerRe: How to rewrite global resources value programatically?Or how to create a new global resources file for new language dynamically? Pin
PSK_10-Jun-10 16:05
PSK_10-Jun-10 16:05 
QuestionForms Authentication - weird behavior Pin
Member 391904910-Jun-10 5:57
Member 391904910-Jun-10 5:57 

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.