Testa att byta ut page.Request tillRequest i codebehind
Hur skall jag få Dim keyword As String = Request("k") att fungera i codebehind ?Sv:Request i codebehind
Funkar inte med eller utan page
<code>
Partial Class ajaxcb
Inherits System.Web.UI.UserControl
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim keyword As String = Page.Request("k")
If keyword IsNot Nothing And keyword.Trim() <> "" Then
Response.Write("<strong>" & keyword.ToString & " </strong>")
Dim koden As String = Session("login")
If koden = "123" Then
If keyword.ToUpper = "åäö".ToUpper Then _
Response.Write("<strong>HELLO ÅÄÖ</strong>")
Else
Response.Write("<strong>" & koden & " </strong>")
End If
End If
End Sub
End Class
</code>Sv:Request i codebehind
<code>
HttpContext.Current.Request
</code>