c# - Assign TextBox Text into variables -


i trying send email windows forms application.

i have created form getting mail_id , password.

  • textbox1 getting mail_id.
  • textbox2 getting password.

the user enters same in textboxes.

how can assign typed credentials in 2 different variables, can use variables further in program?

e.g.:text in textbox1= variable;text in textbox2= variable;

it's simply:

string firstval = textbox1.text; string secondval = textbox2.text; 

but basic! take book , learn basics, please.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -