qns in asp.net with csharp
-
: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
-
: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
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
-
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
-
Well, in your edit file, you do a
Session("id")=id
, and in the the help file you do aid=Session("id")
. Since session variables are not strong typed, you can actually declare a string before theSession(...)
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
-
Well, in your edit file, you do a
Session("id")=id
, and in the the help file you do aid=Session("id")
. Since session variables are not strong typed, you can actually declare a string before theSession(...)
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
-
Well, in your edit file, you do a
Session("id")=id
, and in the the help file you do aid=Session("id")
. Since session variables are not strong typed, you can actually declare a string before theSession(...)
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
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