thank you! that explains the why..
Now your article only adds up to 6 textboxes
my webapp parses text from a selectedCell in a gridview and when it finds a certain word it adds a textbox to a panel...there could be 2 or 70 I don't find it very wise to instantiate a whole bunch of textboxes when i might be only using 2 and i also need to have some labels in between those textboxes...is it really the only way?
User Profile
Collapse
-
-
ok..so what i do to get it is
I save all the textboxes in a collection so that I don't have to find them in the controls collection ( I assume this shouldn't be a problem given C# only uses references...ma ybe this is bad assumption(?) ) and then i just do
Code://words is a regular string array words[i] = ((TextBox)TBoxes[boxNumber]).Text;
///ok so this is kind of weird to me... right after I...Last edited by Frinavale; Apr 9 '09, 06:22 PM. Reason: Added code tags. Please post code in [code] [/code] tags.Leave a comment:
-
textbox text property empty when added at runtime
This should be fairly trivial I think..but is not working.
I have a textbox that i add at runtime
TextBox tagText = new TextBox();
then i put it in a panel'
PanelWODetails. Controls.Add(ta gText);
once the user enters some text and click on a button I try to grab that text, but the Text property is always empty.
any ideas why this would happen? -
creating word file from asp
Hi
when the user click a button I have to make a word file and put a piece of data in one page, put a second piece of data on a second page and give the user the word file
is there any simple way to do this?
I'm using C# in asp.net
thanks in advance -
yeah it seemed like it was the wrong approach, thats why I was asking, but I ended up doing just that..onclick javascript function that saves on hidden fields and grabs them back onLoad..
thanks for the help anyways :)Leave a comment:
-
mouse position..
Hi
I am doing some asp.net
and I have this ImageMap with a bunch of hotspots on it...
I am trying to figure out how to get the Mouse coordinates when the user clicks on the image...I am guessing the best way is to let javascript grab the location of the mouse..but how do you call a Javascript function from the onClick event of the hotspot? ...if I am thinking it wrong, please feel free to give point a different approach... -
bitmap processing in C
I'm trying to do some processing in .bmp files and I need to use C, I've used it quite a bit except for image processing...an d I'm trying to read the header block and pretty much from there just travel through the pixels and compare it with other file.
I haven't really worked on images before...so any pointers would be appreciated
this is what I'm trying to do to open the file..but I don't seem to be able to parse through the... -
Im gonna have to take you on that offer of examples..I am a little confused on how to create a custom event handler..and how to trigger it mostly...so if it is possible, I would appreciate it,
thanks in advance!...Leave a comment:
-
Accessing UserControls' controls events
I am working on a C# application and I've created UserControls to make it easier to manage all the GUI's components.
I have one very simple user control consisted of a button and a textbox, this simple control is added on-the-fly when the user clicks on "add control" on a form that holds a collection of this controls. The button on the UserControl is to remove itself from the panel.
My question is, how...
No activity results to display
Show More
Leave a comment: