在两页之间传递日期和时间值 [英] Passing Date and Time Value between two pages

查看:88
本文介绍了在两页之间传递日期和时间值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

非常感谢我所做的事情,以及如何将日期和时间从一个ASP页面传递到另一页面.

这是我的emp.aspx页面



thanks a lot i have done it and ,how to pass the date and time from one asp page to the other.

this is my emp.aspx page



protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        GridViewRow row = GridView1.SelectedRow;
        
        String dt = GridView1.SelectedRow.Cells[1].Text;
        String sal = GridView1.SelectedRow.Cells[2].Text;
       
        Response.Redirect("empupdate.aspx?dt=" + dt + "&sal=" +sal);
     }



我的第二个文件empupdate.aspx



my second file empupdate.aspx

protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            
            TextBox3.Text = Page.Request.QueryString["dt"].ToString();
            TextBox4.Text = Page.Request.QueryString["sal"].ToString();
            
            
        }
    }


我需要更改什么才能在empupdate.aspx的texbox3中获取日期和时间值.


what i need to change to get the date and time value in the texbox3 of the empupdate.aspx

推荐答案

How to: Pass Values Between ASP.NET Web Pages[^] should be able to help you (if that was your question).


这篇关于在两页之间传递日期和时间值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆