页面错误4004中的帧 [英] Frame in a Page error 4004

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

问题描述

我有一个页面,在堆栈面板中左侧有一个树形视图
在右半部分,我有一个带有两个数据网格的框架

我在一个数据网格单元格中有一个超链接按钮
当我选择该超链接时,我想在该框架中加载其他页面.
该页面也具有类似的datagrid控件.
我收到4004错误URI可能无效.

例如,我可以直接从主页直接调用该页面.

好像框架不想用新页面用数据网格替换当前页面.
任何帮助将不胜感激

I have a page that in a stackpanel I have a treeview on the left
On the right half I have a frame with two datagrids

I have a hyperlinkbutton in one of the datagrid cells
When I select that hyperlink I want to load a different page in that frame.
That page also has similar datagrid controls.
I get a 4004 error URI may be invalid.

I can call the page directly from the home page for example with no problem.

It is as if the frame doesn''t want to replace current page with datagrids with a new page.
Any help would be appreciated

推荐答案

我不确定您的操作方式,但是如果您要更改iframe src属性,我想您是在客户端执行此操作因此需要确保您使用的是完整的网址.
I am not sure how you are doing this but if you are changing the iframe src attribute I assume you are doing it on the client side and therefore need to make sure you are using the full url.


Ryan
似乎断断了我的评论,这又是...

1)这是带有超链接单元格的datagrid的片段

Ryan
It seems to have cut off my comment here it is again...

1) Here is a snippet of the datagrid with the hyperlink cell

<sdk:DataGridTemplateColumn CanUserReorder="True" CanUserResize="True" CanUserSort="True" Width="Auto">
                        <sdk:DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <HyperlinkButton Content="(view)" Tag="{Binding countries}"

                                                 NavigateUri="/CountrySummary"                                                 TargetName="UserGroupFrame" VerticalAlignment="Center"></HyperlinkButton>
                            </DataTemplate>




我假设回到主页上,我有一个
< urimapper:urimapping uri ="/{pageName}" mappinguri ="/Views/{pageName} .xaml" xmlns:urimapper =#unknown">
它将生成完整的uri.




I am assuming back on my main page where I have a
<urimapper:urimapping uri="/{pageName}" mappeduri="/Views/{pageName}.xaml" xmlns:urimapper="#unknown">
it will generate the complete uri.


Ryan
我将URI设置为完整路径,并对其进行了修复???
为什么不从主页抓取mapuri并将其修复??
谢谢
Ryan
I made the URI the full path and that fixed it???
Why didn''t the mapuri from the main page grab and fix it???
Thanks


这篇关于页面错误4004中的帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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