Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Bailey Evans   on May 19 In Asp.net Category.

  
Question Answered By: Abriana Rossi   on May 19

here is the code:

Sending Page code  Behind


private void Page_Load(object sender, System.EventArgs e)

{

int PKList = 1870007;

SqlConnection strConn = new
SqlConnection(ConfigurationSettings.AppSettings["connString"].ToString());

string strSP = "Glasseye.ap_GetAccountInformationForPlayerPrimaryKeyList "+
PKList + ", null";

SqlCommand cmd = new SqlCommand(strSP, strConn);

strConn.Open();

SqlDataReader dtrCat = cmd.ExecuteReader();

acct.DataSource = dtrCat;

acct.DataBind();

strConn.Close();

}

public string CasinoName1 { get { return CasinoName.Text; } }

public string First1 { get { return First.Text; } }



#region Web Form Designer generated code

override protected void OnInit(EventArgs e)

{

InitializeComponent();

base.OnInit(e);

}



/// <summary>

/// Required method  for Designer support - do not modify

/// the contents of this method with the code editor.

/// </summary>

private void InitializeComponent()

{

this.Load += new System.EventHandler(this.Page_Load);

}

#endregion

public void Button1_Click(object sender, System.EventArgs e)

{

Server.Transfer("b.aspx");

}

Receiving Page Code Behind:

namespace enterprise

{

public class b : System.Web.UI.Page

{



public a fp;



private void Page_Load(object sender, System.EventArgs e)

{

if (!IsPostBack)

{

fp = (a)Context.Handler;

Response.Write(fp.First1);

}

}



#region Web Form Designer generated code

override protected void OnInit(EventArgs e)

{

//

// CODEGEN: This call is required by the ASP.NET Web Form Designer.

//

InitializeComponent();

base.OnInit(e);

}



private void InitializeComponent()

{

this.Load += new System.EventHandler(this.Page_Load);

}

#endregion

}

}

Share: 

 

This Question has 15 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Repeater Control Or get search suggestion and latest updates.


Tagged: