Click here to Skip to main content
15,902,812 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionA Question about time processing in vb.net Pin
thanhtc24910-Apr-07 16:57
thanhtc24910-Apr-07 16:57 
AnswerRe: A Question about time processing in vb.net Pin
Christian Graus10-Apr-07 17:13
protectorChristian Graus10-Apr-07 17:13 
AnswerRe: A Question about time processing in vb.net Pin
amaneet10-Apr-07 18:37
amaneet10-Apr-07 18:37 
QuestionLooping through buttons and assign names Pin
TAK7810-Apr-07 12:34
TAK7810-Apr-07 12:34 
AnswerRe: Looping through buttons and assign names Pin
Christian Graus10-Apr-07 13:31
protectorChristian Graus10-Apr-07 13:31 
GeneralRe: Looping through buttons and assign names Pin
TAK7810-Apr-07 14:09
TAK7810-Apr-07 14:09 
GeneralRe: Looping through buttons and assign names Pin
Christian Graus10-Apr-07 14:13
protectorChristian Graus10-Apr-07 14:13 
GeneralRe: Looping through buttons and assign names Pin
TAK7810-Apr-07 14:58
TAK7810-Apr-07 14:58 
Used to code in ActionScript for about 3 years, but still have trouble with syntax in .NET.

Well actual code needs to be:
text='<%# Eval("data") %>' //sorry for that


Here is the code to check if any value was assigned to the button:


For i As Integer = 0 To DataList1.Items.Count - 1

Dim linktext As String

linktext = (CType(Me.DataList1.Items(i).FindControl("materialLabel"), Label).Text)

CType(Me.DataList1.Items(i).FindControl("LinkButton"), LinkButton).Text = linktext

Dim buttonString As String

buttonString = CType(Me.DataList1.Items(i).FindControl("LinkButton"), LinkButton).Text

txtLabel.Text = buttonString

Next

It will display the value of the last button in txtLabel, which would mean that it got assigned the value, but why want it display than?


GeneralRe: Looping through buttons and assign names Pin
Christian Graus10-Apr-07 15:05
protectorChristian Graus10-Apr-07 15:05 
GeneralRe: Looping through buttons and assign names [modified] Pin
TAK7810-Apr-07 15:22
TAK7810-Apr-07 15:22 
GeneralRe: Looping through buttons and assign names Pin
Christian Graus10-Apr-07 17:07
protectorChristian Graus10-Apr-07 17:07 
QuestionLooking for a scheduler plug in Pin
NewbieDave10-Apr-07 7:54
NewbieDave10-Apr-07 7:54 
QuestionCan VBScript be converted to VB.NET? Pin
Zach Burnett10-Apr-07 6:31
Zach Burnett10-Apr-07 6:31 
AnswerRe: Can VBScript be converted to VB.NET? Pin
Tim Carmichael10-Apr-07 10:30
Tim Carmichael10-Apr-07 10:30 
GeneralRe: Can VBScript be converted to VB.NET? Pin
Zach Burnett11-Apr-07 5:48
Zach Burnett11-Apr-07 5:48 
QuestionError: The value for column 'x' in table 'x' is DBNull. Pin
CCG310-Apr-07 6:29
CCG310-Apr-07 6:29 
AnswerRe: Error: The value for column 'x' in table 'x' is DBNull. Pin
J$10-Apr-07 8:32
J$10-Apr-07 8:32 
GeneralRe: Error: The value for column 'x' in table 'x' is DBNull. Pin
CCG310-Apr-07 8:54
CCG310-Apr-07 8:54 
Questionhyperterminal to front end Pin
manni_n10-Apr-07 4:18
manni_n10-Apr-07 4:18 
QuestionRepaint causes CPU loading and failed test Pin
VFaul10-Apr-07 3:39
VFaul10-Apr-07 3:39 
AnswerRe: Repaint causes CPU loading and failed test Pin
KevinMac10-Apr-07 15:14
KevinMac10-Apr-07 15:14 
GeneralRe: Repaint causes CPU loading and failed test Pin
KevinMac10-Apr-07 15:16
KevinMac10-Apr-07 15:16 
GeneralRe: Repaint causes CPU loading and failed test Pin
VFaul13-Apr-07 3:14
VFaul13-Apr-07 3:14 
GeneralRe: Repaint causes CPU loading and failed test Pin
KevinMac13-Apr-07 3:47
KevinMac13-Apr-07 3:47 
QuestionVB.NET Dynamic WebServices URL Pin
BarcodeMike110-Apr-07 3:30
BarcodeMike110-Apr-07 3:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.