I assigned the two textbox values.
This. textbox1.text = SDR ["topictitle"]. tostring ();
This. webeditor1.text = SDR ["topicconent"]. tostring ();
Then I want to update the value, but I cannot get the value or the original value if this. textbos. text is not used. What should I do !!!
That is to say, the update is updated, but the original value does not get the edited value. What should I do !!
Int topicid = convert. toint32 (request. querystring ["ID"]. tostring ());
String updatesql = "Update topic set topictitle = '" + this. textbox1.text + "', topicconent = '" + this. webeditor1.text + "'where topicid =" + topicid;
If (sh.exe ccommand (updatesql ))
{
This. lblinfo. Text = "edited !! ";
}
It's fixed just now !! Thank you for reminding me !!!
When binding data
If (! Ispostback)
{
This. BIND ();
}
That's all!
Cause: Write it in pageload. Otherwise, write the value back for each commit.
In ASP. net2.0, use the gridview to display the news title. How to add a new or image after the news title on the current day
Write the following classes in the background or common class:
Public static string news_pic (datetime T)
{
If (T. Date = datetime. Now. Date)
{
Return "images/new.gif ";;
}
Else
{
Return "images/no.gif ";
}
}
Frontend page call
In the template, call "width =" 22 "Height =" 9 "/>