G
Guest
Hello,
I am new to .Net world and I need some help in converting VB.Net code to C#.
Public Overridable Property CaseSensitiveKeySort() As Boolean
Get
Return _caseSensitiveKeySort
End Get
Set(ByVal Value As Boolean)
_caseSensitiveKeySort = Value
End Set
End Property
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
MyBase.OnLoad(e) ' call the base class method
Dim script As String
string = "<script language=" & Chr(34) & "javascript" & Chr(34) & " type="
& Chr(34) & "text/javascript" & Chr(34) & ">" & vbCrLf
....................................
....................................
....................................
....................................
script &= "</script>"
Me.Page.RegisterClientScriptBlock(functionName, script)
Me.Attributes.Add("onkeypress", "return " + functionName + "(this," +
_caseSensitiveKeySort.ToString().ToLower() + ")")
End Sub
Thanks in advance
SK
I am new to .Net world and I need some help in converting VB.Net code to C#.
Public Overridable Property CaseSensitiveKeySort() As Boolean
Get
Return _caseSensitiveKeySort
End Get
Set(ByVal Value As Boolean)
_caseSensitiveKeySort = Value
End Set
End Property
Protected Overrides Sub OnLoad(ByVal e As System.EventArgs)
MyBase.OnLoad(e) ' call the base class method
Dim script As String
string = "<script language=" & Chr(34) & "javascript" & Chr(34) & " type="
& Chr(34) & "text/javascript" & Chr(34) & ">" & vbCrLf
....................................
....................................
....................................
....................................
script &= "</script>"
Me.Page.RegisterClientScriptBlock(functionName, script)
Me.Attributes.Add("onkeypress", "return " + functionName + "(this," +
_caseSensitiveKeySort.ToString().ToLower() + ")")
End Sub
Thanks in advance
SK