VB language with server side tags in .aspx pages in modern browsers

%3CLINGO-SUB%20id%3D%22lingo-sub-2609372%22%20slang%3D%22en-US%22%3EVB%20language%20with%20server%20side%20tags%20in%20.aspx%20pages%20in%20modern%20browsers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2609372%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3Bwe%20heard%20that%20VB%20client%20side%20script%20will%20not%20work%20in%20modern%20browsers.%20we%20have%20the%20inline%20code%20written%20in%20VB%20language%20with%20server%20side%20tags%20in%20.aspx%20pages.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EWill%20that%20code%20will%20work%20in%20modern%20browsers%20as%20the%20code%20written%20in%20server%20side%20tags%20as%20per%20below%20code%2C%20it%20should%20be%20executed%20at%20IIS%20level.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3ECould%20you%20please%20let%20us%20know%20server%20side%20code%20with%20vb%20language%20code%20will%20work%20in%20modern%20browsers%20or%20not%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%26lt%3B%25%3CBR%20%2F%3E'%20If%20GPLocale%20is%20set%2C%20we%20redirect%20as%20usual.%20If%20it's%20not%20set%2C%20we%20need%3CBR%20%2F%3E'%20to%20run%20the%20client-side%20script%20at%20the%20bottom%20of%20the%20page%20to%20set%20the%3CBR%20%2F%3E'%20cookie%2C%20and%20then%20come%20back%20here%20with%20the%20original%20URL.%3CBR%20%2F%3EIf%20Not%20Request.Cookies(%22GPLocale%22)%20Is%20Nothing%20Then%3CBR%20%2F%3EIf%20Request.Cookies(%22GPLocale%22).Value%20%26lt%3B%26gt%3B%20DF.EMPTY_STR%20Then%3C%2FP%3E%0A%3CP%3EDim%20strCaseNum%3CBR%20%2F%3EDim%20strOrderNum%3CBR%20%2F%3EDim%20strCD%3CBR%20%2F%3EDim%20currentQueryString%3CBR%20%2F%3EDim%20queryString%20as%20QueryString%3CBR%20%2F%3E%3CBR%20%2F%3E'currentQueryString%20should%20be%20appended%20to%20the%20redirect%20to%20RedirectLogic.aspx%20as%20pages%20are%20converted%3CBR%20%2F%3E'Pages%20should%20redirect%20to%20%2FMSInternal%2FRedirectLogic.aspx%20%2B%20currentQueryString%20which%20will%20session%3CBR%20%2F%3E'settings%20and%20redirection%20to%20the%20new%20page%3CBR%20%2F%3E'Note%3A%20Before%20a%20link%20is%20redirect%20make%20sure%20the%20approapriate%20logic%20is%20in%20RedirectLogic.aspx%3CBR%20%2F%3E%3CBR%20%2F%3EcurrentQueryString%20%3D%20Request.QueryString.ToString()%3CBR%20%2F%3EqueryString%20%3D%20new%20QueryString()%3C%2FP%3E%0A%3CP%3EResponse.Expires%20%3D%200%3C%2FP%3E%0A%3CP%3E'Setup%20Session%3CBR%20%2F%3E'If%20OASIS%20UserID%20passed%20in%2C%20ensure%20that%20it%20matches%20current%20users%3CBR%20%2F%3EIf%20Request.QueryString(%22OID%22)%20%26lt%3B%26gt%3B%20%22%22%20Then%3CBR%20%2F%3ESession(%22OASISUserID%22)%20%3D%20Request.QueryString(%22OID%22)%3CBR%20%2F%3EEnd%20If%3C%2FP%3E%0A%3CP%3EIf%20Request.QueryString(%22OD%22)%20%26lt%3B%26gt%3B%20%22%22%20Then%3CBR%20%2F%3ESession(%22OD%22)%20%3D%20Request.QueryString(%22OD%22)%3CBR%20%2F%3EEnd%20If%3C%2FP%3E%0A%3CP%3EIf%20Request.QueryString(%22CD%22)%20%26lt%3B%26gt%3B%20%22%22%20Then%3CBR%20%2F%3ESession(%22CD%22)%20%3D%20Request.QueryString(%22CD%22)%3CBR%20%2F%3EEnd%20If%3C%2FP%3E%0A%3CP%3EIf%20Request.QueryString(%22C%22)%20%26lt%3B%26gt%3B%20%22%22%20Then%3CBR%20%2F%3ESession(%22C%22)%20%3D%20Request.QueryString(%22C%22)%3CBR%20%2F%3EEnd%20If%3C%2FP%3E%0A%3CP%3EIf%20Request.QueryString(%22O%22)%20%26lt%3B%26gt%3B%20%22%22%20Then%3CBR%20%2F%3ESession(%22O%22)%20%3D%20Request.QueryString(%22O%22)%3CBR%20%2F%3EEnd%20If%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%25%26gt%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Hi All,

 we heard that VB client side script will not work in modern browsers. we have the inline code written in VB language with server side tags in .aspx pages.

Will that code will work in modern browsers as the code written in server side tags as per below code, it should be executed at IIS level.

 

Could you please let us know server side code with vb language code will work in modern browsers or not?

 


<%
' If GPLocale is set, we redirect as usual. If it's not set, we need
' to run the client-side script at the bottom of the page to set the
' cookie, and then come back here with the original URL.
If Not Request.Cookies("GPLocale") Is Nothing Then
If Request.Cookies("GPLocale").Value <> DF.EMPTY_STR Then

Dim strCaseNum
Dim strOrderNum
Dim strCD
Dim currentQueryString
Dim queryString as QueryString

'currentQueryString should be appended to the redirect to RedirectLogic.aspx as pages are converted
'Pages should redirect to /MSInternal/RedirectLogic.aspx + currentQueryString which will session
'settings and redirection to the new page
'Note: Before a link is redirect make sure the approapriate logic is in RedirectLogic.aspx

currentQueryString = Request.QueryString.ToString()
queryString = new QueryString()

Response.Expires = 0

'Setup Session
'If OASIS UserID passed in, ensure that it matches current users
If Request.QueryString("OID") <> "" Then
Session("OASISUserID") = Request.QueryString("OID")
End If

If Request.QueryString("OD") <> "" Then
Session("OD") = Request.QueryString("OD")
End If

If Request.QueryString("CD") <> "" Then
Session("CD") = Request.QueryString("CD")
End If

If Request.QueryString("C") <> "" Then
Session("C") = Request.QueryString("C")
End If

If Request.QueryString("O") <> "" Then
Session("O") = Request.QueryString("O")
End If


%>

0 Replies