Click here to Skip to main content
15,885,869 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a column that name address. i want to take 2 textbox to store the address in database. how can i do it.
Posted
Comments
Ajith K Gatty 25-Apr-14 2:22am    
Hi Ravi,
You want to store value of 2 textboxes as single column(named as address) in database. right?

1 solution

you just have to get their values concatenated:
VB

textbox1.text + ' ' + textbox2.text
 
Share this answer
 
v2
Comments
TCS54321 25-Apr-14 1:45am    
TxtCollegeName.Text = dt.Rows(0)("collegename").ToString

i am using this to show the store address in database when i am click on edit button.if a have 2 textbox to store address then how can i show it in text box
Siva Hyderabad 25-Apr-14 2:23am    
TxtCollegeName.Text = dt.Rows[0]["collegename"].ToString();
Txtaddress.Text = dt.Rows[0]["address"].ToString();

string completeaddress = TxtCollegeName.text+''+Txtaddress.Text

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900