使用母版页进行跨页面发布 [英] Cross page posting with Master page

查看:129
本文介绍了使用母版页进行跨页面发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用

母版页时,我无法通过使用跨页面发布来引用值。


目前我在CLR的beta 2上运行。


任何想法...


谢谢


Atul

I am not able to reference values by using cross page postings when using
master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul

推荐答案

你有什么问题?


-Brock

DevelopMentor
http://staff.develop.com/ballen
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
当使用母版页时,我无法通过使用跨页面发布来引用值。

目前我在CLR的beta 2上运行。

任何想法...

Atul
I am not able to reference values by using cross page postings when
using master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul






非常感谢Brock的回复回来,我实际上被困了。


我的问题是我正在使用从一个页面到另一个页面的跨页面发布。

它似乎工作正常我不使用师父页面,但是当我使用高手

页面时,代码参考在第二页上不起作用。


TextBox textbox1;

textbox1 =(TextBox)PreviousPage.FindControl(" TextBox1");

第二页上的
textbox1显示带有母版页的null。


我在母版页中有表格标签,所以我在想是否是

问题或者是什么工作。


提前谢谢。


Atul


" Brock Allen"写道:
Many thanks Brock for responding back, I am actually stuck.

K my problem is that I am using cross page posting from one page to another.
It seems to work fine if I do not use Master page but the moment I use master
page the code reference does not work on the second page.

TextBox textbox1;
textbox1= (TextBox)PreviousPage.FindControl("TextBox1");

on the second page textbox1 shows null with master page.

I do have form tag in master page so I am thinking whether that is the
problem or what is the work around.

Thanks in advance.

Atul


"Brock Allen" wrote:
你有什么问题?

-Brock
DevelopMentor
http://staff.develop.com/ballen
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
我无法参考使用母版页时使用跨页面发布的值。

目前我在CLR的beta 2上运行。

任何想法......

谢谢

Atul
I am not able to reference values by using cross page postings when
using master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul




你有什么问题?


-Brock

DevelopMentor
http://staff.develop.com/ballen
What problem are you having?

-Brock
DevelopMentor
http://staff.develop.com/ballen
当使用母版页时,我无法通过使用跨页面发布来引用值。

目前我在CLR的beta 2上运行。

任何想法......

非常感谢

Atul
I am not able to reference values by using cross page postings when
using master page.

Currently I am runing on beta 2 of CLR.

Any ideas...

Thanks

Atul






这篇关于使用母版页进行跨页面发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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