Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

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.
 
Share this answer
 
Comments
Rbucha 29-Dec-11 16:14pm    
Hi Ryan
Here is a snipet of the datagrid:
<sdk:datagridtemplatecolumn.celltemplate>
<datatemplate>
<hyperlinkbutton content="(view)" tag="{Binding countries}"
="" navigateuri="/CountrySummary" targetname="UserGroupFrame" verticalalignment="Center">


I am assuming back on my main page where I have a <urimapper:urimapping uri="/{pageName}" mappeduri="/Views/{pageName}.xaml">
it will generate the complete uri.
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

XML
<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>



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.
 
Share this answer
 
Comments
Wendelius 29-Dec-11 16:31pm    
Instead of adding new solutions, use the "Have a Question or Comment?" button on the original solution to send a message to the author.
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900