| Server IP : 199.79.62.161 / Your IP : 216.73.216.245 [ Web Server : Microsoft-IIS/10.0 System : Windows NT MDUS-PP-WB12 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_5096(nirmaowd) ( 0) PHP Version : 8.3.30 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/INETPUB/VHOSTS/nirmalamatha.edu.in/ponnuguruvayurappan.org/Admin/ |
Upload File : |
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class admin_flashnews : System.Web.UI.Page
{
ConnectionDB cdb = new ConnectionDB();
public string str_OldContent = "";
protected void Page_Load(object sender, EventArgs e)
{
if (Convert.ToString(Session["snmadmin"]) != "verified") Response.Redirect("Default.aspx?msg=Please Login");
if (!IsPostBack)
{
string flash = string.Format("SELECT FNews FROM FlashNews");
str_OldContent = cdb.GetValue(flash);
}
}
protected void btn_UpdateContent_Click(object sender, EventArgs e)
{
string s = EditorValue.Value;
string updat = string.Format("UPDATE FlashNews SET FlashNews.FNews = '{0}'", EditorValue.Value);
if (cdb.Execute(updat))
{
Response.Redirect("message.aspx?msg= Flash News updated Successfully");
}
}
}