Click here to Skip to main content
16,006,475 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPassing command line arguments to vb.net Pin
vbTom8-Dec-03 11:40
vbTom8-Dec-03 11:40 
GeneralRe: Passing command line arguments to vb.net Pin
Dave Kreskowiak8-Dec-03 11:47
mveDave Kreskowiak8-Dec-03 11:47 
GeneralRe: Passing command line arguments to vb.net Pin
vbTom8-Dec-03 12:09
vbTom8-Dec-03 12:09 
GeneralCustom Control Pin
Robert Breault8-Dec-03 10:29
Robert Breault8-Dec-03 10:29 
GeneralRe: Custom Control Pin
Cliff Wellman8-Dec-03 10:45
Cliff Wellman8-Dec-03 10:45 
GeneralRe: Custom Control Pin
Cliff Wellman9-Dec-03 4:12
Cliff Wellman9-Dec-03 4:12 
GeneralTreeView Control Pin
phase18-Dec-03 6:11
phase18-Dec-03 6:11 
GeneralASP.NET VB Execute a String to Change Label Text Pin
etihwl8-Dec-03 4:53
etihwl8-Dec-03 4:53 
I am new to ASP.NET and looking for help.
I am attempting to change the text on objects dropdowns, textbox, and so on.
I reviewed the information on executing string but I am having problems, below is the code and the error.
Could someone tell me what I am doing wrong.
Thank you.


Dim exeInstrt as string = "BUTN2.text = 'WORKS2'"
exeInstrt = Replace(exeInstrt,"'","''")
Execute(exeInstrt)



Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30469: Reference to a non-shared member requires an object reference.

Source Error:

Line 19: Dim exeInstrt as string = "BUTN2.text = 'WORKS2'"
Line 20: exeInstrt = Replace(exeInstrt,"'","''")
Line 21: Execute(exeInstrt)
Line 22: ' Response.Write(exeInstrt & "
")
Line 23: Unsure | :~ Unsure | :~
GeneralRe: ASP.NET VB Execute a String to Change Label Text Pin
Ian Darling8-Dec-03 5:25
Ian Darling8-Dec-03 5:25 
GeneralRe: ASP.NET VB Execute a String to Change Label Text Pin
etihwl8-Dec-03 5:36
etihwl8-Dec-03 5:36 
GeneralRe: ASP.NET VB Execute a String to Change Label Text Pin
Ian Darling8-Dec-03 5:48
Ian Darling8-Dec-03 5:48 
GeneralRe: ASP.NET VB Execute a String to Change Label Text Pin
etihwl8-Dec-03 6:40
etihwl8-Dec-03 6:40 
GeneralRe: ASP.NET VB Execute a String to Change Label Text Pin
Ian Darling8-Dec-03 7:03
Ian Darling8-Dec-03 7:03 
GeneralRe: ASP.NET VB Execute a String to Change Label Text Pin
etihwl8-Dec-03 7:07
etihwl8-Dec-03 7:07 
GeneralRe: ASP.NET VB Execute a String to Change Label Text Pin
Ian Darling8-Dec-03 7:53
Ian Darling8-Dec-03 7:53 
GeneralCode required in VB.NET in emergency Pin
Member 7071198-Dec-03 0:31
Member 7071198-Dec-03 0:31 
GeneralRe: Code required in VB.NET in emergency [edited] Pin
Colin Angus Mackay8-Dec-03 2:59
Colin Angus Mackay8-Dec-03 2:59 
GeneralPrint All - ICON Pin
Andy H8-Dec-03 0:05
Andy H8-Dec-03 0:05 
GeneralRe: Print All - ICON Pin
Ian Darling8-Dec-03 0:10
Ian Darling8-Dec-03 0:10 
QuestionString to button????? Pin
KwGuy7-Dec-03 20:47
KwGuy7-Dec-03 20:47 
AnswerRe: String to button????? Pin
cnurse8-Dec-03 0:37
cnurse8-Dec-03 0:37 
GeneralToolbox icons for multiple controls in windows control library (.NET) Pin
cnurse7-Dec-03 13:50
cnurse7-Dec-03 13:50 
GeneralRe: Toolbox icons for multiple controls in windows control library (.NET) Pin
J. Dunlap7-Dec-03 14:43
J. Dunlap7-Dec-03 14:43 
Generalbanging my head Pin
cnurse7-Dec-03 16:06
cnurse7-Dec-03 16:06 
GeneralHelp needed re: printing .txt file Pin
Fionn7-Dec-03 13:42
Fionn7-Dec-03 13:42 

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.