Invisible Textbox fails to save to Access DB

  • Thread starter Thread starter Benj Nunez
  • Start date Start date
B

Benj Nunez

Hello experts,

Is it possible to save records to a database even though the Textbox
where
the data came from is NOT VISIBLE in the form? I did this and now it
seems
that I can't save a record.

I have 10 fields already filled up with default values (e.g. '1'). I
want to
hide it so that I could simply make it visible again should the need
arises.


Thank you in advance.


Cheers,


Benj
 
The big question is; Why have a user-interface element that you have no
intention of using?


--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Are you doing winforms for webforms development?

in webforms, you want to use a

<input id="hidTitleID" type="hidden" name="hidTitleId" runat="server">

//code behind
string titleID = this.hidTitleID.value;

...

in winforms, then you should be able to find the value ..even on a hidden
textbox.
however, I wouldn't do this, I would just keep a private _memberVariable to
hold the value.

...

Good luck.
 

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

Back
Top