Question? Who knows how to help me !!!

Source: Internet
Author: User
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 "/>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.