Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Sir Due to long Http Address in C # i found Error Server Error in '/' Application. HTTP Error 400 - Bad Request.

Sir Due to long Http Address in C # i found Error Server Error in '/' Application. HTTP Error 400 - Bad Request.

Scheduled Pinned Locked Moved C#
databasedesignsysadminsecurityhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 11449797
    wrote on last edited by
    #1

    Sir Hear Is My Code Actually Sir I have 6 Combobox and 12 text box and two Image Buttons 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; using EmployeeFunction.DAL; namespace MUP.hr { public partial class frmemp : System.Web.UI.Page { Newemployee objQuerySatus = new Newemployee(); protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { Displaydesignation(); Displaydepartment(); } } catch (Exception ex) { lblMsg.Visible = true; lblMsg.Text = ex.Message; } } public void Displaydesignation() { DataSet dsStatus = objQuerySatus.Displaydesignation(); Session["Query"] = dsStatus; if (dsStatus.Tables[0].Rows.Count > 0) { cmbdesig.Items.Add("--Select--"); cmbdesig.DataTextField = "desig_name"; cmbdesig.DataValueField = "desig_name"; cmbdesig.DataSource = dsStatus; cmbdesig.DataBind(); } } public void Displaydepartment() { DataSet dsStatus = objQuerySatus.Displaydepartment(); Session["Query"] = dsStatus; if (dsStatus.Tables[0].Rows.Count > 0) { cmbdept.Items.Add("--Select--"); cmbdept.DataTextField = "DEPT_NAME"; cmbdept.DataValueField = "DEPT_NAME"; cmbdept.DataSource = dsStatus; cmbdept.DataBind(); //cmbdesig.DataSource = dsStatus.Tables[0]; //cmbdesig.DataBind(); } } protected void CMBQUALI_SelectedIndexChanged(object sender, EventArgs e) { } protected void CMBGENDER_SelectedIndexChanged(object sender, EventArgs e) { } protected void CMBMARRIED_SelectedIndexChanged(object sender, EventArgs e) { } protected void CMBRELIGN_SelectedIndexChanged(object sender, EventArgs e) {

    OriginalGriffO 1 Reply Last reply
    0
    • U User 11449797

      Sir Hear Is My Code Actually Sir I have 6 Combobox and 12 text box and two Image Buttons 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; using EmployeeFunction.DAL; namespace MUP.hr { public partial class frmemp : System.Web.UI.Page { Newemployee objQuerySatus = new Newemployee(); protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { Displaydesignation(); Displaydepartment(); } } catch (Exception ex) { lblMsg.Visible = true; lblMsg.Text = ex.Message; } } public void Displaydesignation() { DataSet dsStatus = objQuerySatus.Displaydesignation(); Session["Query"] = dsStatus; if (dsStatus.Tables[0].Rows.Count > 0) { cmbdesig.Items.Add("--Select--"); cmbdesig.DataTextField = "desig_name"; cmbdesig.DataValueField = "desig_name"; cmbdesig.DataSource = dsStatus; cmbdesig.DataBind(); } } public void Displaydepartment() { DataSet dsStatus = objQuerySatus.Displaydepartment(); Session["Query"] = dsStatus; if (dsStatus.Tables[0].Rows.Count > 0) { cmbdept.Items.Add("--Select--"); cmbdept.DataTextField = "DEPT_NAME"; cmbdept.DataValueField = "DEPT_NAME"; cmbdept.DataSource = dsStatus; cmbdept.DataBind(); //cmbdesig.DataSource = dsStatus.Tables[0]; //cmbdesig.DataBind(); } } protected void CMBQUALI_SelectedIndexChanged(object sender, EventArgs e) { } protected void CMBGENDER_SelectedIndexChanged(object sender, EventArgs e) { } protected void CMBMARRIED_SelectedIndexChanged(object sender, EventArgs e) { } protected void CMBRELIGN_SelectedIndexChanged(object sender, EventArgs e) {

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      And what part of that code do you think might be relevant? For starters, when you post code fragments, use a code block properly: This text describes the problem. <pre lang="cs">This is the code fragment</pre> And you end up with: Sir Hear Is My Code Actually Sir I have 6 Combobox and 12 text box and two Image Buttons

      using EmployeeFunction.DAL;

      namespace MUP.hr
      {
      public partial class frmemp : System.Web.UI.Page
      {
      Newemployee objQuerySatus = new Newemployee();

              protected void Page\_Load(object sender, EventArgs e)
              {
      

      But...the important things are: 1) Don't just dump it on us. Commented out code is useless, as are empty methods. So remove them! 2) Then show us the relevant code fragment to your problem. You aren't: none of that code has anything obvious to do with HTTP addresses, much less "long ones". So check that you have the right file - because that one probably isn't it. Help us to help you!

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups