mohamed
mohamed

Reputation:

insert into sql server data base from html controls

i have a <h1> that has a news title in it and i want to insert the content of this <h1> into sql server 2008 database how can i do this using c#

Upvotes: 0

Views: 687

Answers (1)

Thea
Thea

Reputation: 8067

Put a server control between your html tag. For example: In this way you can access the lblTitle.Text property from the code behind and then pass it to the database.

Upvotes: 1

Related Questions