Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > C# to VB help

Reply
Thread Tools

C# to VB help

 
 
Mirnes
Guest
Posts: n/a
 
      05-25-2007
Hello,

Can someone provide me with VB code for following C# code:

Code 1:
{
IndexerSchedule.Install(20);
}


Code 2:
{
DataTable dtResult = SiteSearch.Search(txtWord.Text);
DataView dvResult = new DataView(dtResult);
dvResult.Sort = "count DESC";
DataGrid1.Visible=true;
DataGrid1.DataSource=dvResult;
DataGrid1.DataBind();
}

Thanks in advance!

 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      05-25-2007
On May 25, 2:51 pm, Mirnes <leme...@yahoo.com> wrote:
> Hello,
>
> Can someone provide me with VB code for following C# code:
>
> Code 1:
> {
> IndexerSchedule.Install(20);
> }
>
> Code 2:
> {
> DataTable dtResult = SiteSearch.Search(txtWord.Text);
> DataView dvResult = new DataView(dtResult);
> dvResult.Sort = "count DESC";
> DataGrid1.Visible=true;
> DataGrid1.DataSource=dvResult;
> DataGrid1.DataBind();
> }
>
> Thanks in advance!


IndexerSchedule.Install(20)

Dim dtResult As DataTable = SiteSearch.Search(txtWord.Text)
Dim dvResult As DataView = New DataView(dtResult)
dvResult.Sort = "count DESC"
DataGrid1.Visible=True
DataGrid1.DataSource=dvResult
DataGrid1.DataBind()

 
Reply With Quote
 
 
 
 
Juan T. Llibre
Guest
Posts: n/a
 
      05-25-2007
IndexerSchedule.Install(20)


Dim dtResult As DataTable = SiteSearch.Search(txtWord.Text)
Dim dvResult As New DataView(dtResult)
dvResult.Sort = "count DESC"
DataGrid1.Visible = True
DataGrid1.DataSource = dvResult
DataGrid1.DataBind()




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espanol : http://asp.net.do/foros/
======================================
"Mirnes" <> wrote in message
news: ups.com...
> Hello,
>
> Can someone provide me with VB code for following C# code:
>
> Code 1:
> {
> IndexerSchedule.Install(20);
> }
>
>
> Code 2:
> {
> DataTable dtResult = SiteSearch.Search(txtWord.Text);
> DataView dvResult = new DataView(dtResult);
> dvResult.Sort = "count DESC";
> DataGrid1.Visible=true;
> DataGrid1.DataSource=dvResult;
> DataGrid1.DataBind();
> }
>
> Thanks in advance!
>



 
Reply With Quote
 
Mirnes
Guest
Posts: n/a
 
      05-25-2007
Thanks a lot for prompt response!

Mirnes

 
Reply With Quote
 
Kirk
Guest
Posts: n/a
 
      05-25-2007
On May 25, 9:24 am, Mirnes <leme...@yahoo.com> wrote:
> Thanks a lot for prompt response!
>
> Mirnes


You can get instant conversions to VB from here:

http://www.developerfusion.co.uk/Uti...sharptovb.aspx

Just FYI....

 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      05-25-2007
Hi, Mimes.

In the future, you might want to consider running the code
you want translated through one of these converters :

http://www.eggheadcafe.com/articles/...converter.aspx

http://www.developerfusion.co.uk/uti...btocsharp.aspx
http://www.developerfusion.co.uk/uti...sharptovb.aspx

http://dotnetspider.com/codeconvert/

http://www.carlosag.net/Tools/CodeTr...r/default.aspx

You might get the translation even faster!





Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
======================================
"Mirnes" <> wrote in message
news: ups.com...
> Thanks a lot for prompt response!
>
> Mirnes
>



 
Reply With Quote
 
Turkbear
Guest
Posts: n/a
 
      05-25-2007
On Fri, 25 May 2007 10:13:16 -0400, "Juan T. Llibre" <> wrote:

>Hi, Mimes.
>
>In the future, you might want to consider running the code
>you want translated through one of these converters :

snip
>http://www.developerfusion.co.uk/uti...btocsharp.aspx
>http://www.developerfusion.co.uk/uti...sharptovb.aspx
>snip
>
>You might get the translation even faster!
>
>
>
>


Unfortunately, those sites ( actually that app has a problem,)


Server Error in '/Utilities' Application.
--------------------------------------------------------------------------------

Input string was not in a correct format.



If anyone knows the admins, they should let them know..





 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      05-25-2007
re:
!> Input string was not in a correct format

You *do* need to input correct code in whatever language
you request be translated to the other language.

If your input is not correctly formatted, you get that message.

It's a variation of the "garbage in, garbage out" computing principle.
You *must* feed the translator correct code.




Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaņol : http://asp.net.do/foros/
======================================
"Turkbear" <> wrote in message news:...
> On Fri, 25 May 2007 10:13:16 -0400, "Juan T. Llibre" <> wrote:
>
>>Hi, Mimes.
>>
>>In the future, you might want to consider running the code
>>you want translated through one of these converters :

> snip
>>http://www.developerfusion.co.uk/uti...btocsharp.aspx
>>http://www.developerfusion.co.uk/uti...sharptovb.aspx
>>snip
>>
>>You might get the translation even faster!
>>
>>
>>
>>

>
> Unfortunately, those sites ( actually that app has a problem,)
>
>
> Server Error in '/Utilities' Application.
> --------------------------------------------------------------------------------
>
> Input string was not in a correct format.
>
>
>
> If anyone knows the admins, they should let them know..
>
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Help Help Pentax S5i Help needed (Please) The Martian Digital Photography 14 06-20-2008 07:56 AM
HELP - HELP - HELP =?Utf-8?B?S2ltb24gSWZhbnRpZGlz?= ASP .Net 4 03-09-2006 12:46 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 1 07-16-2004 01:12 PM
HELP WANTED HELP WANTED HELP WANTED Harvey ASP .Net 0 07-16-2004 10:00 AM
HELP! HELP! HELP! Opening Web Application Project Error =?Utf-8?B?dHJlbGxvdzQyMg==?= ASP .Net 0 02-20-2004 05:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57