TestBox Control Value.

P

pramod

Hi,

I have a WebForm, with number of textbox control and Button control.
In the Click event of the button control i want to get the value from the
Textbox control which user typed, but everytime i am getting empty string
("").

I dont know why it is behaving this way on this webForm.

I have done this so many times but on this particular webform i am getting
this result.

how do i fix this ???


thanks,
-p
 
P

pramod

The code is working, the click event is getting fired.
the problem i am facing is.

I am not able to get the values in the textbox control. as everything is
("").
It does not error out or anything.

I call the function Add of object oPMA_PROJ and passing all this parameter.
i get empty string for Me.ITM_PROJ_ID.Text.
PROJ_ID = oPMA_PROJ.Add(Me.CORP_CD.SelectedItem.Value,
CInt(PROJ_TYPE_ID.Items(PROJ_TYPE_ID.SelectedIndex).Value),
Val(PROJ_PREV_PROJ_ID.Text), PROJ_EXTRN_PROJ_ID.Text, Me.ITM_PROJ_ID.Text )

thanks,
-P
 
K

Ken Cox [Microsoft MVP]

Are you doing something in the Load event that is wiping out the value?

If you step through in the debugger, can you track when the value exists and
when it disappears?
 
P

pramod

Thanks Ken.

Yes it was getting wiped out.

-p
Ken Cox said:
Are you doing something in the Load event that is wiping out the value?

If you step through in the debugger, can you track when the value exists and
when it disappears?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,109
Messages
2,570,671
Members
47,261
Latest member
Hendra45

Latest Threads

Top