Click here to Skip to main content
12,447,721 members (56,428 online)
   

ASP.NET

 
GeneralRe: ASP.NET usefull controls Pin
gilvani29-Nov-12 4:37
membergilvani29-Nov-12 4:37 
AnswerRe: ASP.NET usefull controls Pin
D Waller8-Dec-12 1:43
memberD Waller8-Dec-12 1:43 
QuestionASP MVC update panel Pin
Yoyosch26-Nov-12 19:04
memberYoyosch26-Nov-12 19:04 
AnswerRe: ASP MVC update panel Pin
gilvani28-Nov-12 2:48
membergilvani28-Nov-12 2:48 
AnswerRe: ASP MVC update panel Pin
mayankgupta68828-Nov-12 15:23
membermayankgupta68828-Nov-12 15:23 
SuggestionIf we click DropDownList items Automatically Select Second DropdownLIst in gridview? Pin
hemanth sutapalli26-Nov-12 0:44
memberhemanth sutapalli26-Nov-12 0:44 
GeneralRe: If we click DropDownList items Automatically Select Second DropdownLIst in gridview? Pin
Ali Al Omairi(Abu AlHassan)26-Nov-12 19:21
memberAli Al Omairi(Abu AlHassan)26-Nov-12 19:21 
GeneralRe: If we click DropDownList items Automatically Select Second DropdownLIst in gridview? Pin
Robert Bettinelli3-Dec-12 15:25
memberRobert Bettinelli3-Dec-12 15:25 
QuestionYahoo Wweather: XMLDOCUMENT, XPATHDOCUMENT or ... Pin
Jassim Rahma25-Nov-12 23:12
memberJassim Rahma25-Nov-12 23:12 
QuestionClickonce deployment Pin
kareem olamilekan25-Nov-12 13:07
memberkareem olamilekan25-Nov-12 13:07 
AnswerRe: Clickonce deployment Pin
Keith Barrow26-Nov-12 2:40
mentorKeith Barrow26-Nov-12 2:40 
Questionwhy it's adding this to the database?!! Pin
jrahma24-Nov-12 11:16
memberjrahma24-Nov-12 11:16 
AnswerRe: why it's adding this to the database?!! Pin
jkirkerx24-Nov-12 18:10
memberjkirkerx24-Nov-12 18:10 
Question(This webpage has a redirect loop) Problem Pin
jrahma24-Nov-12 11:05
memberjrahma24-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 Pin
jkirkerx24-Nov-12 18:21
memberjkirkerx24-Nov-12 18:21 
SuggestionShould i change my asked question? Pin
anglo007223-Nov-12 22:29
memberanglo007223-Nov-12 22:29 
GeneralI'm find C# asp.net linkedin sample code Pin
Serdar Şengül22-Nov-12 21:14
memberSerdar Şengül22-Nov-12 21:14 
GeneralRe: I'm find C# asp.net linkedin sample code Pin
Richard MacCutchan22-Nov-12 23:57
mvpRichard MacCutchan22-Nov-12 23:57 
GeneralRe: I'm find C# asp.net linkedin sample code Pin
CommDev8-Dec-12 23:23
memberCommDev8-Dec-12 23:23 
QuestionPaypal Website Payments Standard Integration using NVP Pin
Zaf Khan22-Nov-12 18:21
memberZaf Khan22-Nov-12 18:21 
AnswerRe: Paypal Website Payments Standard Integration using NVP Pin
jkirkerx24-Nov-12 19:59
memberjkirkerx24-Nov-12 19:59 
GeneralRe: Paypal Website Payments Standard Integration using NVP Pin
Zaf Khan24-Nov-12 22:07
memberZaf Khan24-Nov-12 22:07 
GeneralRe: Paypal Website Payments Standard Integration using NVP Pin
jkirkerx25-Nov-12 8:08
memberjkirkerx25-Nov-12 8:08 
GeneralRe: Paypal Website Payments Standard Integration using NVP Pin
Zaf Khan25-Nov-12 19:44
memberZaf Khan25-Nov-12 19:44 
QuestionProblem With List View Pin
ggaurav bhandari22-Nov-12 2:09
memberggaurav bhandari22-Nov-12 2:09 
AnswerRe: Problem With List View Pin
Parwej Ahamad22-Nov-12 6:08
memberParwej Ahamad22-Nov-12 6:08 
GeneralRe: Problem With List View Pin
d0cvb22-Nov-12 10:28
memberd0cvb22-Nov-12 10:28 
GeneralRe: Problem With List View Pin
Parwej Ahamad22-Nov-12 18:35
memberParwej Ahamad22-Nov-12 18:35 
QuestionChecking the size of a cookie Pin
suzyb22-Nov-12 1:46
membersuzyb22-Nov-12 1:46 
AnswerRe: Checking the size of a cookie Pin
Zaf Khan23-Nov-12 6:04
memberZaf Khan23-Nov-12 6:04 
GeneralRe: Checking the size of a cookie Pin
suzyb23-Nov-12 9:49
membersuzyb23-Nov-12 9:49 
GeneralRe: Checking the size of a cookie Pin
Zaf Khan23-Nov-12 11:43
memberZaf Khan23-Nov-12 11:43 
QuestionRemove tick/check box from ASP.NET Checkbox control Pin
thes@int21-Nov-12 6:48
memberthes@int21-Nov-12 6:48 
AnswerRe: Remove tick/check box from ASP.NET Checkbox control Pin
jkirkerx21-Nov-12 12:46
memberjkirkerx21-Nov-12 12:46 
Questionweb service creation Pin
Member 961924321-Nov-12 6:17
memberMember 961924321-Nov-12 6:17 
AnswerRe: web service creation Pin
mark merrens21-Nov-12 6:24
membermark merrens21-Nov-12 6:24 
QuestionReturn multiple result set to Generic List Pin
yesu prakash20-Nov-12 23:38
memberyesu prakash20-Nov-12 23:38 
AnswerRe: Return multiple result set to Generic List Pin
David Mujica21-Nov-12 3:14
memberDavid Mujica21-Nov-12 3:14 
QuestionButtons are not working for enterkey press Pin
rakeshs31220-Nov-12 22:27
memberrakeshs31220-Nov-12 22:27 
AnswerRe: Buttons are not working for enterkey press Pin
jkirkerx22-Nov-12 18:03
memberjkirkerx22-Nov-12 18:03 
QuestionSchedule and post comments to FaceBook wall using ASP.Net Pin
Hu Dhaval20-Nov-12 21:56
memberHu Dhaval20-Nov-12 21:56 
AnswerRe: Schedule and post comments to FaceBook wall using ASP.Net Pin
Dhol Gaurav20-Nov-12 22:24
memberDhol Gaurav20-Nov-12 22:24 
GeneralRe: Schedule and post comments to FaceBook wall using ASP.Net Pin
Hu Dhaval20-Nov-12 22:32
memberHu Dhaval20-Nov-12 22:32 
AnswerRe: Schedule and post comments to FaceBook wall using ASP.Net Pin
Richard Deeming21-Nov-12 2:10
memberRichard Deeming21-Nov-12 2:10 
QuestionCOMPILATION error "object reference not set to an instance of an object" Pin
AnnLogan20-Nov-12 20:47
memberAnnLogan20-Nov-12 20:47 
QuestionRe: COMPILATION error "object reference not set to an instance of an object" Pin
n.podbielski20-Nov-12 21:11
membern.podbielski20-Nov-12 21:11 
AnswerRe: COMPILATION error "object reference not set to an instance of an object" Pin
AnnLogan20-Nov-12 21:49
memberAnnLogan20-Nov-12 21:49 
GeneralRe: COMPILATION error "object reference not set to an instance of an object" Pin
Richard MacCutchan21-Nov-12 3:16
mvpRichard MacCutchan21-Nov-12 3:16 
AnswerRe: COMPILATION error "object reference not set to an instance of an object" Pin
n.podbielski22-Nov-12 20:07
membern.podbielski22-Nov-12 20:07 
QuestionTab index with firefox issue Pin
rakeshs31220-Nov-12 19:43
memberrakeshs31220-Nov-12 19:43 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 25 Aug 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid