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. qns in asp.net with csharp

qns in asp.net with csharp

Scheduled Pinned Locked Moved C#
csharpdatabasecssasp-nethelp
6 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.
  • D Offline
    D Offline
    dhans
    wrote on last edited by
    #1

    :sigh: Have EditModule.aspx form and an helpMod.aspx(popup) form. when image button clicked in Editmodule.aspx, helpmod.aspx opens. Helpmod.aspx is loaded with 2 field "id and name" in grid using sql query. id is kept as link button in the grid. When linkbutton "id" clicked, i need the id must be placed in the "textfield" of EditModule.aspx. Kindly help in this regard.

    dhana

    P 1 Reply Last reply
    0
    • D dhans

      :sigh: Have EditModule.aspx form and an helpMod.aspx(popup) form. when image button clicked in Editmodule.aspx, helpmod.aspx opens. Helpmod.aspx is loaded with 2 field "id and name" in grid using sql query. id is kept as link button in the grid. When linkbutton "id" clicked, i need the id must be placed in the "textfield" of EditModule.aspx. Kindly help in this regard.

      dhana

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      What method are you trying to pass id? You could do a cookie or session variable.

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer

      D 1 Reply Last reply
      0
      • P Paul Conrad

        What method are you trying to pass id? You could do a cookie or session variable.

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer

        D Offline
        D Offline
        dhans
        wrote on last edited by
        #3

        I am using session variable

        dhana

        P 1 Reply Last reply
        0
        • D dhans

          I am using session variable

          dhana

          P Offline
          P Offline
          Paul Conrad
          wrote on last edited by
          #4

          Well, in your edit file, you do a Session("id")=id, and in the the help file you do a id=Session("id"). Since session variables are not strong typed, you can actually declare a string before the Session(...) containing the name of the session variable. This helps prevent typos in the session variable name. ID, iD, id are all different variable names as far as sessions are concerned.

          "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

          D 2 Replies Last reply
          0
          • P Paul Conrad

            Well, in your edit file, you do a Session("id")=id, and in the the help file you do a id=Session("id"). Since session variables are not strong typed, you can actually declare a string before the Session(...) containing the name of the session variable. This helps prevent typos in the session variable name. ID, iD, id are all different variable names as far as sessions are concerned.

            "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

            D Offline
            D Offline
            dhans
            wrote on last edited by
            #5

            kindly write me a clear coding for that, As i am a new programmer. plz

            dhans

            1 Reply Last reply
            0
            • P Paul Conrad

              Well, in your edit file, you do a Session("id")=id, and in the the help file you do a id=Session("id"). Since session variables are not strong typed, you can actually declare a string before the Session(...) containing the name of the session variable. This helps prevent typos in the session variable name. ID, iD, id are all different variable names as far as sessions are concerned.

              "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

              D Offline
              D Offline
              dhans
              wrote on last edited by
              #6

              The follwing is the coding in Editmodule.aspx protected void Page_Load(object sender, EventArgs e) { if (Session["username"] == null) { Response.Redirect("PMSessionExpiry.aspx"); } string strAccess, Filename; strAccess = null; Filename = System.IO.Path.GetFileName(HttpContext.Current.Request.CurrentExecutionFilePath); strAccess = PTSGeneral.File_Found(Session["username"].ToString(), Filename); if (strAccess == "") { Response.Redirect("PMAccess.aspx"); } if (!IsPostBack) { //Fill project name, module name to dropdownlist. PTSGeneral.DDlGetData("select pr_id,pr_name from project_mst order by pr_id", DDLProjectName, "pr_name", "Pr_id"); ProjectId = DDLProjectName.SelectedValue.ToString(); lblModId.Text = CModule.getMaxModuleID(); //PTSGeneral.DDlGetData("select mo_id,mo_name from module_mst where pr_id='" + DDLProjectName.SelectedValue.ToString() + "' order by pr_id,mo_id", lblModId , "mo_id", "mo_name"); PTSGeneral.getUserDetails(ddlModifiedBy); //call script for only accept only numeric value in no.of developer field txtNoofDeveloper.Attributes.Add("onKeypress", "javascript:return inputNumbers()"); } } 2. source contains the following <a href="javascript:OpenPopupPage('HelpMod.aspx','<%= txtModIdSearch.ClientID %>','false');"> <img id="imgHelpMod" onclick="return imgHelpMod_onclick()" src="images/help4.jpg" style="width: 19px" height="19" /></td> 3. helpmodule.aspx has the following No coding. only grid which contains "module id, module name" Kindly give a clear coding how to do and where to write. plz

              dhans

              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