Click here to Skip to main content
       

ASP.NET

 
QuestionhttpModule Type Language Module will not load in Visual Studio debugger PinmemberRaimundo2a27-Nov-12 22:50 
AnswerRe: httpModule Type Language Module will not load in Visual Studio debugger PinmvpRichard MacCutchan28-Nov-12 0:10 
GeneralRe: httpModule Type Language Module will not load in Visual Studio debugger PinmemberRaimundo2a28-Nov-12 4:16 
QuestionException: System.ServiceModel.ProtocolException: The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8) Pinmemberindian14327-Nov-12 13:35 
AnswerRe: Exception: System.ServiceModel.ProtocolException: The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8) Pinmemberjkirkerx28-Nov-12 16:55 
GeneralRe: Exception: System.ServiceModel.ProtocolException: The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8) Pinmemberindian14329-Nov-12 7:46 
GeneralRe: Exception: System.ServiceModel.ProtocolException: The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8) Pinmemberjkirkerx29-Nov-12 10:02 
Questionduplicate insert for no reason! PinmemberJassim Rahma27-Nov-12 10:29 
let me first show the code. here is the insert code:
 
try
{
    sql_connection = new MySqlConnection(ConfigurationManager.ConnectionStrings["SQLdb"].ConnectionString);
    sql_connection.Open();
    sql_command = new MySqlCommand("sp_add_support_ticket", sql_connection);
    sql_command.CommandType = CommandType.StoredProcedure;
 
    sql_command.Parameters.AddWithValue("param_support_incident_title", txtSubject.Text);
    sql_command.Parameters.AddWithValue("param_email_address", txtEmailAddress.Text);
    sql_command.Parameters.AddWithValue("param_support_ticket_description", txtMessage.XHTML);
 
    int result_rows = sql_command.ExecuteNonQuery();
 
    Session["message_title"] = "Thank you";
    Session["message_title_Color"] = Color.Blue.ToArgb();
    Session["message_text"] = "We have recieved your feedback and we will get back to you as soon as possible.";
    Session["message_button_title"] = "Back";
    Session["message_button_url"] = "Home.aspx";
 
    Response.Redirect("Message.aspx", false);
}
catch (Exception exp)
{
    Session["message_title"] = "Error";
    Session["message_title_Color"] = Color.Red.ToArgb();
    Session["message_text"] = "Unable to send your message. Please try again later.";
    Session["message_button_title"] = "Back";
    Session["message_button_url"] = Request.UrlReferrer.ToString();
 
    Response.Redirect("Message.aspx", false);
}
finally
{
    if (sql_connection != null)
    {
        if (sql_connection.State == ConnectionState.Open)
            sql_connection.Close();
    }
}
 
and this is my stored procedure:
 
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_add_support_ticket`(IN `param_support_incident_title` varchar(255),IN `param_email_address` varchar(255),IN `param_support_ticket_description` text)
BEGIN
	INSERT INTO support_incidents (support_incident_title, email_address) VALUES (param_support_incident_title, param_email_address);
	INSERT INTO support_tickets (support_incident_id, support_ticket_description) VALUES (LAST_INSERT_ID(), param_support_ticket_description);
END
 
now.... when I fill the form on help.aspx page i get the data insert properly..
 
BUT...............
 
It will also add a new row
 
in support_incodents table with "Thank you" in support_incident_title field
in support_tickets table with "We have recieved your feedback and we will get back to you as soon as possible." in support_ticket_description field
 
if you notice, the text added in the new row is taken from the Session variable! but I really don't understand why it's adding new row and how it's taking Session's variable?!!
 
please help..............

 
Technology News @ http://www.JassimRahma.com

QuestionError: Could not load file or assembly 'log4net, Version=1.2.10.0 PinmemberSuper_Developer26-Nov-12 19:41 
QuestionCould not load file or assembly 'log4net, Version=1.2.10.0 PinmemberSuper_Developer26-Nov-12 19:38 
AnswerRe: Could not load file or assembly 'log4net, Version=1.2.10.0 PinmemberAli Al Omairi(Abu AlHassan)26-Nov-12 20:58 
GeneralRe: Could not load file or assembly 'log4net, Version=1.2.10.0 PinmemberSuper_Developer26-Nov-12 23:38 
GeneralRe: Could not load file or assembly 'log4net, Version=1.2.10.0 PinmemberAli Al Omairi(Abu AlHassan)26-Nov-12 23:54 
GeneralRe: Could not load file or assembly 'log4net, Version=1.2.10.0 PinmemberSuper_Developer27-Nov-12 0:31 
QuestionASP.NET usefull controls PinmemberYoyosch26-Nov-12 19:10 
AnswerRe: ASP.NET usefull controls Pinmemberbatterybuying27-Nov-12 2:38 
GeneralRe: ASP.NET usefull controls Pinmembergilvani29-Nov-12 4:37 
AnswerRe: ASP.NET usefull controls PinmemberD Waller8-Dec-12 1:43 
QuestionASP MVC update panel PinmemberYoyosch26-Nov-12 19:04 
AnswerRe: ASP MVC update panel Pinmembergilvani28-Nov-12 2:48 
AnswerRe: ASP MVC update panel Pinmembermayankgupta68828-Nov-12 15:23 
SuggestionIf we click DropDownList items Automatically Select Second DropdownLIst in gridview? Pinmemberhemanth sutapalli26-Nov-12 0:44 
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 

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
Web02 | 2.8.140905.1 | Last Updated 15 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid