Monday 26 October 2015

Data Transfer in asp.net



WebForm1 


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ASPproject
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnTransfer_Click(object sender, EventArgs e)
        {
            Server.Transfer("WebForm2.aspx");
        }

        public string Name
        {
            get {
                return txtName.Text;
            }
     
        }
        public string Email
        {
            get {
                return txtEmail.Text;
            }
        }
    }
}






                                                                        WebForm2 


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ASPproject
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //Page lastPage=(Page)Context.Handler;
            //lblName.Text = ((TextBox)lastPage.FindControl("txtName")).Text;
            //lblEmail.Text = ((TextBox)lastPage.FindControl("txtEmail")).Text;


        }
    }
}

1 comment:

  1. How to Play Casino: Easy Guide to playing slots on
    Casino poormansguidetocasinogambling.com games 바카라 사이트 are played by 4 players, the average time 바카라사이트 they take turns is around 14:20. The house is divided 출장샵 into three https://tricktactoe.com/ distinct categories: the house

    ReplyDelete