從文件夾HelperScripts復制出來
this
this
在CSDN上看到朋友們說怎麼把FreeTextBox內容寫入數據庫中
news
字段ID(自增)contentaddtime(getdate)
privatevoidPage_Load(objectsender
{
//Putusercodetoinitializethepagehere
if(!IsPostBack)
{
SqlConnectionmyConn=newSqlConnection(
SqlCommandmyCmd=newSqlCommand(
myConn
SqlDataReadermyDr
myDr=myCmd
myDr
Response
myDr
myConn
}
}
privatevoidButton
{
SqlConnectionmyConn=newSqlConnection(
SqlCommandmyCmd=newSqlCommand(
myConn
myCmd
myConn
}
From:http://tw.wingwit.com/Article/program/net/201311/15741.html