Re: Converting VB.Net code C#
- From: Mattias Sjögren <mattias.dont.want.spam@xxxxxxxx>
- Date: Tue, 12 Sep 2006 20:49:56 +0200
FYI, there are online language conversion tools that can help you with
this. I bet google can help you find one. The code should look
something like this
public virtual bool CaseSenitiveKeySort
{
get [ return _caseSensitiveKeySort; }
set { _caseSensitiveKeySort = value; }
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
string script = "<script language=\"javascript\"" +
"type=\"text/javascript\">\r\n</script>";
this.Page.RegisterClientScriptBlock(functionName, script);
this.Attributes.Add("onkeypress", "return " + functionName +
"(this," + _caseSensitiveKeySort.ToString().ToLower() + ")");
}
Mattias
--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
.
- Prev by Date: Re: newbie
- Next by Date: Re: VS 2005 SP1??? where?
- Previous by thread: Re: dllimport - object reference not set to instance
- Next by thread: RE: Converting VB.Net code C#
- Index(es):
Relevant Pages
|