asp.net c# conversion help in vb.net
-
Hi all please help me to convert following code
public partial class _Default : System.Web.UI.Page , ICallbackEventHandler **I face difficulty here** { IList list = null; protected void Page_Load(object sender, EventArgs e) { // Register the client callbacks RegisterClientCallbacks(); } private void RegisterClientCallbacks() { string callbackRef = ClientScript.GetCallbackEventReference(this, "arg", "RecieveServerData", "context"); string script = String.Empty; if (!ClientScript.IsClientScriptBlockRegistered("CallServer")) { script = "function CallServer(arg,context) { " + callbackRef + "}"; ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServer", script, true); } } public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } }
-
Hi all please help me to convert following code
public partial class _Default : System.Web.UI.Page , ICallbackEventHandler **I face difficulty here** { IList list = null; protected void Page_Load(object sender, EventArgs e) { // Register the client callbacks RegisterClientCallbacks(); } private void RegisterClientCallbacks() { string callbackRef = ClientScript.GetCallbackEventReference(this, "arg", "RecieveServerData", "context"); string script = String.Empty; if (!ClientScript.IsClientScriptBlockRegistered("CallServer")) { script = "function CallServer(arg,context) { " + callbackRef + "}"; ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServer", script, true); } } public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } }
amistry_petlad wrote:
Hi all please help me to convert
Visit Convert C# to VB
please don't forget to vote on the post that helped you.
-
Hi all please help me to convert following code
public partial class _Default : System.Web.UI.Page , ICallbackEventHandler **I face difficulty here** { IList list = null; protected void Page_Load(object sender, EventArgs e) { // Register the client callbacks RegisterClientCallbacks(); } private void RegisterClientCallbacks() { string callbackRef = ClientScript.GetCallbackEventReference(this, "arg", "RecieveServerData", "context"); string script = String.Empty; if (!ClientScript.IsClientScriptBlockRegistered("CallServer")) { script = "function CallServer(arg,context) { " + callbackRef + "}"; ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServer", script, true); } } public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } }
What difficulty? :doh: :sigh: Here the class implements ICallbackEventHandler and iherits from Page class !!!
Thanks, Arindam D Tewary
-
Hi all please help me to convert following code
public partial class _Default : System.Web.UI.Page , ICallbackEventHandler **I face difficulty here** { IList list = null; protected void Page_Load(object sender, EventArgs e) { // Register the client callbacks RegisterClientCallbacks(); } private void RegisterClientCallbacks() { string callbackRef = ClientScript.GetCallbackEventReference(this, "arg", "RecieveServerData", "context"); string script = String.Empty; if (!ClientScript.IsClientScriptBlockRegistered("CallServer")) { script = "function CallServer(arg,context) { " + callbackRef + "}"; ClientScript.RegisterClientScriptBlock(this.GetType(), "CallServer", script, true); } } public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } }
-
yes
-
yes
Partial Class _Default Inherits System.Web.UI.Page Implements ICallbackEventHandler Dim lst As IList Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements ICallbackEventHandler.RaiseCallbackEvent 'Operations End Sub End Class
implement all functions in ICallbackEventHandler in same way. If you are not able to do come back.EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
-
amistry_petlad wrote:
Hi all please help me to convert
Visit Convert C# to VB
please don't forget to vote on the post that helped you.
Imran Khan Pathan wrote:
Visit Convert C# to VB
It's a bad tool. It generates incorrect code most of the time.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
Partial Class _Default Inherits System.Web.UI.Page Implements ICallbackEventHandler Dim lst As IList Public Sub RaiseCallbackEvent(ByVal eventArgument As String) Implements ICallbackEventHandler.RaiseCallbackEvent 'Operations End Sub End Class
implement all functions in ICallbackEventHandler in same way. If you are not able to do come back.EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.
help me to handle this code in vb.net I have put one textbox and when someone try to type inside the like name it will be fetch from the datbase and listout that names below in the textbox area then he can select and submit that text. e.g. example suppose somebody push his first two letter 'am' then the request goes like criteria inside and fetch that name list like amit ,amika,amrita and so on and that person select one name and submit that name. so for that I have got one application from the code project but i have to need some help for initial part. so please anybody can help me its urgent
Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Partial Class _Default Inherits System.Web.UI.Page Implements ICallbackEventHandler Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load **RegisterClientCallbacks()** End Sub Protected Sub RegisterClientCallbacks() Dim callbackRef As String Dim script As String callbackRef = ClientScript.GetCallbackEventReference(Me, "arg", "RecieveServerData", "context") script = String.Empty If Not ClientScript.IsClientScriptBlockRegistered("CallServer") Then script = "function CallServer(arg,Context) { " + callbackRef + "}" ClientScript.RegisterClientScriptBlock(Me.GetType(), "CallServer", script, True) End If //help me to write this code in vb.net //c# public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } //end c# End Sub
this codebehind it is in .cs now moving on .aspx pageSearch var word = ''; var UP = 38; var DOWN = 40; var ENTER = 13; var index = -1; var TAB = 9; var BACKSPACE = 8; var table = null; var rows = null; var selectedRow = null; function GetProducts(e) { var keynum var keychar var num</x-turndown>
-
help me to handle this code in vb.net I have put one textbox and when someone try to type inside the like name it will be fetch from the datbase and listout that names below in the textbox area then he can select and submit that text. e.g. example suppose somebody push his first two letter 'am' then the request goes like criteria inside and fetch that name list like amit ,amika,amrita and so on and that person select one name and submit that name. so for that I have got one application from the code project but i have to need some help for initial part. so please anybody can help me its urgent
Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Partial Class _Default Inherits System.Web.UI.Page Implements ICallbackEventHandler Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load **RegisterClientCallbacks()** End Sub Protected Sub RegisterClientCallbacks() Dim callbackRef As String Dim script As String callbackRef = ClientScript.GetCallbackEventReference(Me, "arg", "RecieveServerData", "context") script = String.Empty If Not ClientScript.IsClientScriptBlockRegistered("CallServer") Then script = "function CallServer(arg,Context) { " + callbackRef + "}" ClientScript.RegisterClientScriptBlock(Me.GetType(), "CallServer", script, True) End If //help me to write this code in vb.net //c# public string GetCallbackResult() { return HtmlTableHelper.ConvertProductListToTable(list); } public void RaiseCallbackEvent(string eventArgument) { if (String.IsNullOrEmpty(eventArgument)) return; list = ProductRepository.GetProducts(eventArgument); } //end c# End Sub
this codebehind it is in .cs now moving on .aspx pageSearch var word = ''; var UP = 38; var DOWN = 40; var ENTER = 13; var index = -1; var TAB = 9; var BACKSPACE = 8; var table = null; var rows = null; var selectedRow = null; function GetProducts(e) { var keynum var keychar var num</x-turndown>
public Function GetCallbackResult() as String Implements ICallbackEventHandler.GetCallbackResult return HtmlTableHelper.ConvertProductListToTable(list) End Function public sub RaiseCallbackEvent(byval eventArgument as string )Implements ICallbackEventHandler.RaiseCallbackEvent if String.IsNullOrEmpty(eventArgument)<>True then list = ProductRepository.GetProducts(eventArgument) end if End Sub
EVEN THE WORD IMPOSSIBLE SAYS I M POSSIBLE.