Click here to Skip to main content
       

ASP.NET

 
GeneralRe: If we click DropDownList items Automatically Select Second DropdownLIst in gridview? PinmemberAli Al Omairi(Abu AlHassan)26-Nov-12 19:21 
GeneralRe: If we click DropDownList items Automatically Select Second DropdownLIst in gridview? PinmemberRobert Bettinelli3-Dec-12 15:25 
QuestionYahoo Wweather: XMLDOCUMENT, XPATHDOCUMENT or ... PinmemberJassim Rahma25-Nov-12 23:12 
QuestionClickonce deployment Pinmemberkareem olamilekan25-Nov-12 13:07 
AnswerRe: Clickonce deployment PinmentorKeith Barrow26-Nov-12 2:40 
Questionwhy it's adding this to the database?!! Pinmemberjrahma24-Nov-12 11:16 
AnswerRe: why it's adding this to the database?!! Pinmemberjkirkerx24-Nov-12 18:10 
Question(This webpage has a redirect loop) Problem Pinmemberjrahma24-Nov-12 11:05 
Hi,
 
Why I am getting the above error with this code?
 
protected void btnSend_Click(object sender, EventArgs e)
{
    if (txtMessage.Text == "")
    {
        Session["message_title"] = "Error";
        Session["message_title_Color"] = Color.Red.ToArgb();
        Session["message_text"] = "Please enter your message.";
        Session["message_button_title"] = "Back";
        Session["message_button_url"] = Request.UrlReferrer.ToString();
    }
 
    create_support_ticket create_support_ticket = new create_support_ticket();
    create_support_ticket.add_support_ticket(txtSubject.Text, txtEmailAddress.Text, txtMessage.XHTML);
}
 
and this is the add_support_ticket:
 
public void add_support_ticket(string support_incident_title, string email_address, string support_ticket_description)
{
    support_sql_connection = new MySqlConnection(ConfigurationManager.ConnectionStrings["SQLdb"].ConnectionString);
    support_sql_connection.Open();
    support_sql_command = new MySqlCommand("sp_add_support_ticket", support_sql_connection);
    support_sql_command.CommandType = CommandType.StoredProcedure;
 
    support_sql_command.Parameters.Add("param_support_incident_title", MySqlDbType.VarChar).Value = support_incident_title;
    support_sql_command.Parameters.Add("param_email_address", MySqlDbType.VarChar).Value = email_address;
    support_sql_command.Parameters.Add("param_support_ticket_description", MySqlDbType.Text).Value = support_ticket_description;
 
    int result_rows = support_sql_command.ExecuteNonQuery();
 
    support_sql_command.Dispose();
    support_sql_connection.Close();
 
    HttpContext.Current.Session["message_title"] = "Thank you";
    HttpContext.Current.Session["message_title_Color"] = Color.Blue.ToArgb();
    HttpContext.Current.Session["message_text"] = "We have recieved your feedback and we will get back to you as soon as possible.";
    HttpContext.Current.Session["message_button_title"] = "Back";
    HttpContext.Current.Session["message_button_url"] = "Home.aspx";
 
    HttpContext.Current.Response.Redirect("Message.aspx");
}

AnswerRe: (This webpage has a redirect loop) Problem Pinmemberjkirkerx24-Nov-12 18:21 
SuggestionShould i change my asked question? Pinmemberanglo007223-Nov-12 22:29 
GeneralI'm find C# asp.net linkedin sample code PinmemberSerdar Şengül22-Nov-12 21:14 
GeneralRe: I'm find C# asp.net linkedin sample code PinmvpRichard MacCutchan22-Nov-12 23:57 
GeneralRe: I'm find C# asp.net linkedin sample code [modified] PinmemberCommDev8-Dec-12 23:23 
QuestionPaypal Website Payments Standard Integration using NVP [modified] PinmemberZaf Khan22-Nov-12 18:21 
AnswerRe: Paypal Website Payments Standard Integration using NVP Pinmemberjkirkerx24-Nov-12 19:59 
GeneralRe: Paypal Website Payments Standard Integration using NVP PinmemberZaf Khan24-Nov-12 22:07 
GeneralRe: Paypal Website Payments Standard Integration using NVP Pinmemberjkirkerx25-Nov-12 8:08 
GeneralRe: Paypal Website Payments Standard Integration using NVP PinmemberZaf Khan25-Nov-12 19:44 
QuestionProblem With List View Pinmemberggaurav bhandari22-Nov-12 2:09 
AnswerRe: Problem With List View PinmemberParwej Ahamad22-Nov-12 6:08 
GeneralRe: Problem With List View Pinmemberd0cvb22-Nov-12 10:28 
GeneralRe: Problem With List View PinmemberParwej Ahamad22-Nov-12 18:35 
QuestionChecking the size of a cookie Pinmembersuzyb22-Nov-12 1:46 
AnswerRe: Checking the size of a cookie PinmemberZaf Khan23-Nov-12 6:04 
GeneralRe: Checking the size of a cookie Pinmembersuzyb23-Nov-12 9:49 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 27 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid