母版页怀疑 [英] Master Page Doubt

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

问题描述

大家好,

我创建了一个母版页,您将在其中创建

使用表格设计
1)左侧:纬度(文本框)
经度(文本框)和
查找(按钮)
2)右侧:主要内容(asp:contentplaceholder)
(给出纬度和经度值以在此处显示目的地的Google地图")

问题提出:

当我输入纬度和经度值并单击查找"按钮时,它将在不同页面中显示具有该值的地图.
但是,我希望这些值显示在母版页的主要内容"本身上.我试图仅导航到母版页.但是遇到了同样的问题.

伙计们,在这种情况下请帮助我.
1)如果可以的话,您能给我发送符合此要求的正确代码吗?

2)如果无法使用母版页,那有什么替代方法?

我实际上尝试设计框架,但是,由于框架不建议使用(当我在讨论论坛上看到时).

等待你们的答复.

问候
梧桐:(:((

Hi all,

I have created a master page where you will have

Designed using tables
1)Left side: Latitude(Text Box)
Longitude(Text Box) And
Find(Button)
2)Right Side: Main Content(asp:contentplaceholder)
("Give Latitude and Longitude Values to show the google map of your destination here")

Problem raising:

When i input latitude and longitude values and clicking on Find Button, It is displaying map with that values in different page.
But, i want that values to be shown on the "main content" itself of the master page. I tried to navigate to the master page only. But getting same problem.

Guys, Please help me in this situation.
1)If possible, could you send me the correct code for this requirement?

2)If cannot be possible with Master Pages, What is the alternate?

I actually tried to design frames, But, as frames are not advisable(when i saw on discussion forums).

Awaiting for your reply guys.

Regards
Indu. :( :((

推荐答案

无法理解为什么您面临一个问题,无法在母版页本身的主要内容"上显示值!

在master中设计html,以便可以在UI中显示它们.内容页面将带有google-map.

在运行时,代码将始终通过母版页,将标签控件更新为所需的标签控件.

好像您缺少什么.请仔细阅读母版页概念:
MSDN上的母版页详细信息 [
Couldn''t get why you are facing an issue to show the values on the ''main content'' of the master page itself!

Design your html in master such that you can show them in UI. Content page will have google-map.

At runtime code will always go though the master page, update the lable controls to the one you need to.

Looks like you are missing something. Please go through the Master Page concept:
Master Page details on MSDN[^]

If you still find issue, please post the code details.


框架可以像我在以前的网站中使用的那样工作,但是使用母版页是更好的方法
我会尽快对其进行更新...
frames will work as i have used those in my previous websites, but using master pages is more better way

i will update on it soon...


写道:​​

当我输入纬度和经度值并单击查找"按钮,它将在不同页面中显示具有该值的地图.
但是,我希望这些值显示在母版页的主要内容"本身上.我试图仅导航到母版页.但是遇到了同样的问题.

When i input latitude and longitude values and clicking on Find Button, It is displaying map with that values in different page.
But, i want that values to be shown on the "main content" itself of the master page. I tried to navigate to the master page only. But getting same problem.



该地图将显示在您放置的任何位置.你在说什么都没有道理.如果您要打开一个全新的弹出页面,则问题出在您的代码上.



The map will appear where-ever you put it. What you''re saying makes no sense. If you mean a whole new popup page opens, then the problem is with your code.

写道:​​

2)如果母版页无法实现,什么是替代方法?

2)If cannot be possible with Master Pages, What is the alternate?



母版页一切皆有可能



Anything is possible with master pages

写道:​​

我实际上试图设计框架,但是,由于框架不建议使用(当我在讨论论坛上看到时).

I actually tried to design frames, But, as frames are not advisable(when i saw on discussion forums).



框架可能很有用.但是,它们在您要编写的任何代码上都添加了一层,在这种情况下听起来并不明智.只需将您的google map控件放在您想要的位置,然后将代码连接到它,就没有理由不起作用了.也许您需要编辑您的帖子(不要发布根本不是答案的答案"),以提供您正在使用的代码的一些示例,并更好地描述出了什么问题.



Frames can be useful. However, they add a layer to any code you want to write, and don''t sound advisable in this instance. Just put your google map control where you want it to be, and hook up your code to it, and there''s no reason for it not to work. Perhaps you need to edit your post ( NOT post an ''answer'' that''s not an answer at all ) to provide some samples of the code you''re using, and a better description of what goes wrong.


这篇关于母版页怀疑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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