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

Visual Basic

 
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 
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 
TAK78 wrote:
The data is pulled from the database.


Where ?

TAK78 wrote:
The code for the buttons however is called on the Page_Load, where I use the loop.


OK, if you read from the DB in page prerender or an event, then that code will run after and replace your data.

TAK78 wrote:
I will need a loop for the buttons because I need to assign a new Session value for each one after they are pressed,


Why do you need to use session state at all ?

TAK78 wrote:
And it wouldn't be efficient to create a LinkButton_Click handler for each one, as some pages may have 10 or more buttons.


You should create one click event handler and have it check which button has been pressed, not create an event for each button.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

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 
AnswerRe: VB.NET Dynamic WebServices URL Pin
<b<font color="#6EA3C4">MILAN@Cybage10-Apr-07 19:05
<b<font color="#6EA3C4">MILAN@Cybage10-Apr-07 19:05 
Questiondate fomat Pin
amaneet10-Apr-07 2:22
amaneet10-Apr-07 2:22 
AnswerRe: date fomat Pin
_mubashir10-Apr-07 2:36
_mubashir10-Apr-07 2:36 

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.