Click here to Skip to main content
15,919,778 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTo Display news in datewise for every day there will be news only one time the date should come ( in datagrid or repeater) Pin
nandaranipet8-Aug-09 1:14
nandaranipet8-Aug-09 1:14 
AnswerRe: To Display news in datewise for every day there will be news only one time the date should come ( in datagrid or repeater) Pin
Abhijit Jana8-Aug-09 2:26
professionalAbhijit Jana8-Aug-09 2:26 
AnswerRe: To Display news in datewise for every day there will be news only one time the date should come ( in datagrid or repeater) Pin
Muhammad Mazhar8-Aug-09 3:34
Muhammad Mazhar8-Aug-09 3:34 
AnswerRe: To Display news in datewise for every day there will be news only one time the date should come ( in datagrid or repeater) Pin
Arindam Sinha8-Aug-09 5:34
Arindam Sinha8-Aug-09 5:34 
AnswerRe: To Display news in datewise for every day there will be news only one time the date should come ( in datagrid or repeater) Pin
Abhishek Sur8-Aug-09 8:11
professionalAbhishek Sur8-Aug-09 8:11 
QuestionImage reading problem Pin
rk267928-Aug-09 0:05
rk267928-Aug-09 0:05 
AnswerRe: Image reading problem Pin
Abhijit Jana8-Aug-09 2:24
professionalAbhijit Jana8-Aug-09 2:24 
Questionaja slide show [modified] Pin
4anusha47-Aug-09 23:55
4anusha47-Aug-09 23:55 
AnswerRe: aja slide show Pin
Abhijit Jana8-Aug-09 2:11
professionalAbhijit Jana8-Aug-09 2:11 
AnswerRe: aja slide show Pin
4anusha48-Aug-09 2:12
4anusha48-Aug-09 2:12 
GeneralRe: aja slide show Pin
Abhijit Jana8-Aug-09 2:22
professionalAbhijit Jana8-Aug-09 2:22 
AnswerRe: aja slide show Pin
4anusha48-Aug-09 2:27
4anusha48-Aug-09 2:27 
GeneralRe: aja slide show Pin
Abhijit Jana8-Aug-09 2:35
professionalAbhijit Jana8-Aug-09 2:35 
Questionadobe flash palyer Pin
RajaAhmed7-Aug-09 23:14
RajaAhmed7-Aug-09 23:14 
AnswerRe: adobe flash palyer Pin
Manas Bhardwaj8-Aug-09 0:01
professionalManas Bhardwaj8-Aug-09 0:01 
Questiondatabase Pin
mylogics7-Aug-09 23:11
professionalmylogics7-Aug-09 23:11 
hii..
i hav populated a html editor from database at pageload event.
now i hav edited the data in html editor and thrugh button click m tryin to update the database.
but its not workin properly.it shows the same data back.I hav written the code n query properly.....
can anybody let me know why its happening....thnks in advanc....
the code is:


protected void Page_Load(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Jajaipur"].ConnectionString);
string str = "Select Description From SubMenu Where (SubMenuId=100)";
SqlDataReader dr = null;
SqlCommand cmd = new SqlCommand(str, conn);
conn.Open();
dr = cmd.ExecuteReader();
if (dr.Read())
{
Editor1.Content = dr["Description"].ToString();

}
conn.Close();
}
protected void btnsubmit_click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Jajaipur"].ConnectionString);
string str = "Update SubMenu Set Description='"+ Editor1.Content +"' Where (SubMenuId=100)";
SqlCommand cmd = new SqlCommand(str, conn);
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();


}
AnswerRe: database Pin
Blue_Boy8-Aug-09 0:01
Blue_Boy8-Aug-09 0:01 
GeneralRe: database Pin
mylogics8-Aug-09 0:53
professionalmylogics8-Aug-09 0:53 
AnswerRe: database Pin
Manas Bhardwaj8-Aug-09 1:11
professionalManas Bhardwaj8-Aug-09 1:11 
GeneralRe: database Pin
mylogics8-Aug-09 2:47
professionalmylogics8-Aug-09 2:47 
Questionpupup window Pin
Nafiseh Salmani7-Aug-09 22:36
Nafiseh Salmani7-Aug-09 22:36 
AnswerRe: pupup window Pin
mylogics7-Aug-09 22:40
professionalmylogics7-Aug-09 22:40 
GeneralRe: pupup window Pin
Nafiseh Salmani7-Aug-09 22:42
Nafiseh Salmani7-Aug-09 22:42 
AnswerRe: pupup window Pin
4anusha47-Aug-09 22:45
4anusha47-Aug-09 22:45 
GeneralRe: pupup window Pin
Nafiseh Salmani8-Aug-09 0:12
Nafiseh Salmani8-Aug-09 0:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.