Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Translate C# to VB2005

Reply
Thread Tools

Translate C# to VB2005

 
 
dancer
Guest
Posts: n/a
 
      05-21-2007
Who can translate this code into VB.net?


On May 19, 4:48 am, "dancer" <(E-Mail Removed)> wrote:
> Using VB2005 and Asp.net
>
> I have a CheckBoxList. One of the items needs to be user-defined. Is it
> possible to put a text box WITHIN a CheckBoxlist?
>
> Meaning - if the user checks "Other" he would also type his definition of
> other.


Hi....


here it goes

for (int i = 0; i < 15; i++)
{
if( (i%2) == 0)
CheckBoxList1.Items.Add(@"<input type='text'
value='yahoo' onClick=""return false;""></input>");
else
CheckBoxList1.Items.Add(i.ToString());
}


Thanks
Masudur


 
Reply With Quote
 
 
 
 
sloan
Guest
Posts: n/a
 
      05-21-2007

This?

http://authors.aspalliance.com/aldot...translate.aspx




"dancer" <(E-Mail Removed)> wrote in message
news:eh%23zPD%(E-Mail Removed)...
> Who can translate this code into VB.net?
>
>
> On May 19, 4:48 am, "dancer" <(E-Mail Removed)> wrote:
> > Using VB2005 and Asp.net
> >
> > I have a CheckBoxList. One of the items needs to be user-defined. Is

it
> > possible to put a text box WITHIN a CheckBoxlist?
> >
> > Meaning - if the user checks "Other" he would also type his definition

of
> > other.

>
> Hi....
>
>
> here it goes
>
> for (int i = 0; i < 15; i++)
> {
> if( (i%2) == 0)
> CheckBoxList1.Items.Add(@"<input type='text'
> value='yahoo' onClick=""return false;""></input>");
> else
> CheckBoxList1.Items.Add(i.ToString());
> }
>
>
> Thanks
> Masudur
>
>



 
Reply With Quote
 
 
 
 
=?Utf-8?B?RGF2aWQgQW50b24=?=
Guest
Posts: n/a
 
      05-22-2007
Actually, "this" can't.
--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# or VB to C++/CLI


"sloan" wrote:

>
> This?
>
> http://authors.aspalliance.com/aldot...translate.aspx
>
>
>
>
> "dancer" <(E-Mail Removed)> wrote in message
> news:eh%23zPD%(E-Mail Removed)...
> > Who can translate this code into VB.net?
> >
> >
> > On May 19, 4:48 am, "dancer" <(E-Mail Removed)> wrote:
> > > Using VB2005 and Asp.net
> > >
> > > I have a CheckBoxList. One of the items needs to be user-defined. Is

> it
> > > possible to put a text box WITHIN a CheckBoxlist?
> > >
> > > Meaning - if the user checks "Other" he would also type his definition

> of
> > > other.

> >
> > Hi....
> >
> >
> > here it goes
> >
> > for (int i = 0; i < 15; i++)
> > {
> > if( (i%2) == 0)
> > CheckBoxList1.Items.Add(@"<input type='text'
> > value='yahoo' onClick=""return false;""></input>");
> > else
> > CheckBoxList1.Items.Add(i.ToString());
> > }
> >
> >
> > Thanks
> > Masudur
> >
> >

>
>
>

 
Reply With Quote
 
=?Utf-8?B?RGF2aWQgQW50b24=?=
Guest
Posts: n/a
 
      05-22-2007
(via Instant VB)
For i As Integer = 0 To 14
If (i Mod 2) = 0 Then
CheckBoxList1.Items.Add("<input type='text'" & ControlChars.CrLf &
"value='yahoo' onClick=""return false;""></input>")
Else
CheckBoxList1.Items.Add(i.ToString())
End If
Next i

--
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
C++ to C# Converter: converts C++ to C#
Instant C++: converts C# or VB to C++/CLI


"dancer" wrote:

> Who can translate this code into VB.net?
>
>
> On May 19, 4:48 am, "dancer" <(E-Mail Removed)> wrote:
> > Using VB2005 and Asp.net
> >
> > I have a CheckBoxList. One of the items needs to be user-defined. Is it
> > possible to put a text box WITHIN a CheckBoxlist?
> >
> > Meaning - if the user checks "Other" he would also type his definition of
> > other.

>
> Hi....
>
>
> here it goes
>
> for (int i = 0; i < 15; i++)
> {
> if( (i%2) == 0)
> CheckBoxList1.Items.Add(@"<input type='text'
> value='yahoo' onClick=""return false;""></input>");
> else
> CheckBoxList1.Items.Add(i.ToString());
> }
>
>
> Thanks
> Masudur
>
>
>

 
Reply With Quote
 
dancer
Guest
Posts: n/a
 
      05-22-2007
Thank you. Now, could you explain to me exactly what it does?



"David Anton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> (via Instant VB)
> For i As Integer = 0 To 14
> If (i Mod 2) = 0 Then
> CheckBoxList1.Items.Add("<input type='text'" & ControlChars.CrLf &
> "value='yahoo' onClick=""return false;""></input>")
> Else
> CheckBoxList1.Items.Add(i.ToString())
> End If
> Next i
>
> --
> David Anton
> www.tangiblesoftwaresolutions.com
> Instant C#: VB to C# converter
> Instant VB: C# to VB converter
> C++ to C# Converter: converts C++ to C#
> Instant C++: converts C# or VB to C++/CLI
>
>
> "dancer" wrote:
>
>> Who can translate this code into VB.net?
>>
>>
>> On May 19, 4:48 am, "dancer" <(E-Mail Removed)> wrote:
>> > Using VB2005 and Asp.net
>> >
>> > I have a CheckBoxList. One of the items needs to be user-defined. Is
>> > it
>> > possible to put a text box WITHIN a CheckBoxlist?
>> >
>> > Meaning - if the user checks "Other" he would also type his definition
>> > of
>> > other.

>>
>> Hi....
>>
>>
>> here it goes
>>
>> for (int i = 0; i < 15; i++)
>> {
>> if( (i%2) == 0)
>> CheckBoxList1.Items.Add(@"<input type='text'
>> value='yahoo' onClick=""return false;""></input>");
>> else
>> CheckBoxList1.Items.Add(i.ToString());
>> }
>>
>>
>> Thanks
>> Masudur
>>
>>
>>



 
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
VB2005 - Untrusted Location Joseph Gruber ASP .Net 4 03-17-2007 11:17 PM
How to Launch the Default e-Mail Agent - VB2005 Larry Rebich ASP .Net 1 11-18-2006 06:24 PM
VB2005 - BugProof - The variable 'var' is either undeclared or was never assigned JulioNobre ASP .Net 0 09-26-2006 01:10 PM
VB2005 EXPRESS Omar Abid ASP .Net 2 09-03-2006 02:40 PM
Inserting data in to xml file with ASP.NET/VB2005 Aaron ASP .Net 0 01-01-2006 05:41 PM



Advertisments