.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Kaviya Balasubramanian
Imran Ghani
Post New Web Links

Navigate to htm, mht, pdf or txt

Posted By:      Posted Date: October 25, 2010    Points: 0   Category :WPF
 

I have what seems to be a simple request but am struggling to find an elegant solution.

I need to be able to navigate to files of types htm, mht, pdf and txt.

My project is a Windows WPF navigation application.

My XAML pages are saved in a subfolder "pages".
The files that I wish to navigate to are saved in a "help" folder.

I would like to be able to easily implement the navigation from a HyperLink or a Button.

The solution needs to work while in VS2010 running in Debug mode or Release mode and then also the deployed solution.

A solution that seems to work is:

1: Adding the folder location as a settings property (e.g. My.Settings.HelpLocation)
1: Adding a button and a webbrowser control to the xaml and
2: then in the button click event...

Private Sub btnHello_Click(ByVal sender As System.Object, _
                    ByVal e As System.Windows.RoutedEventArgs) Handles btnHello.Click

    WebBrowser1.Source = New Uri("file:///" & My.Settings.HelpLocation & "/hello.htm", UriKind.Absolute)

End Sub

This works in debug and release mode while running in VS2010 but the Settings have


View Complete Post


More Related Resource Links

Visual Basic: Navigate The .NET Framework And Your Projects With The My Namespace

  

The My Namespace is best described as a speed-dial for the .NET Framework. It provides an intuitive navigation hierarchy that exposes existing .NET functionality through easily understood root objects. Here Duncan Mackenzie explains it all.

Duncan Mackenzie

MSDN Magazine Visual Studio 2005 Guided Tour 2006


Visual Basic: Navigate the .NET Framework and Your Projects with "My"

  

The next version of Visual Basic, Visual Basic 2005, will include some powerful new features. One of the most interesting is the My language extensions: My.Application, My.Computer, My.Forms, My.Resources, My.Settings, My.User, and My.WebServices. The My language extensions take the idea of helper functions to a whole new level because they include so much functionality out of the box. Called "a speed-dial for the .NET Framework" by the author, the My extensions are a feature you won't want to overlook.

Duncan Mackenzie

MSDN Magazine May 2004


SharePoint: SharePoint Portal Server Makes Your Intranet More Manageable and Easier to Navigate

  

Most large organizations have mounds of disjointed information in a variety of formats spread out across an enterprise. To make the most efficient use of that information, it must be readily accessible, easy to identify, and simple to navigate. SharePoint Portal Server 2001 unifies information by allowing members of any organization to create, share, and publish documents from a single access point. This article covers the services in SPS that can help an organization improve workflow and information management.

Darrin Bishop

MSDN Magazine September 2001


When i click on any other folder in the document library that will navigate to default view of DL?

  

Hi

I have document library with having some folder in the same ,i have displayed my library in the page as Treeview, so when i click on any of the folder in the library i need to navigate allitems.aspx page i.e default view page of the document library ,the document library having views.Suppose when i am in other view i have selected folder from library treeview folder is changing but view not navigate to default view.

pls help 

 


When the user want click on document library that should be navigate default view

  

Hi

I have document library which is having folders,the document library i have displayed as tree view in the left side of the page.

Here Document library having views,suppose i have selected one view on the document library it is navigating the particular view that is good but when i am trying to click document library folder still the page in same view do not navigate the default view .

I need when ever i click on any of the folder in document library that should navigate defualt view ,could you please help me on this.

Really its need urgent...

thanks


how to navigate from one WPF form to another?????

  
hi, i created a project in c# and added the wpf windows in the expression blend 4. After adding these windows what all that i can see in the solution explorer are the Window_name.xaml files. now i have created a button in the MainWindow.xaml window, now i want to navigate form this WPF window to the another WPF window named as Window2.xaml on the button click. can any one suggest me the possible code in c# ??????    

How to Click image to Navigate to next image

  
 In Detail.aspx , I know this code will show the image <img src="Handler.ashx?PhotoID=<%# Eval("PhotoID") %>&Size=L" class="photo_198" style="border:4px solid white" alt='Photo Number <%# Eval("PhotoID") %>' /> And does any one could add a URL href to allow user navigate to next image via click current image ?   

How to navigate through a list stored in session

  
Hi I have a problem where I would have a dataset that I would break into 5 new generic LIST<>. Now the user needs to see one record at a time and navigate through the list Fields like               From date : Text box with calendar                To Date : Text box with calendar               Manager Reporting To : Drop down list                Buttons on Move Back  and move Forward Now I would have 4 such similar lists which I have to pick up from the audit table. When the user clicks on move back and move forward buttons he should be able to navigate through records in my list that I have fetched in the beginning . I can store it in a session or viewstate till it gets updated again. How do I achieve this. Should I be writing  a webmethod to go back and pick up the next record agian and display Can I also a gridview instead of textboxes. What should be the simplest way to achieve this. Thanks!      

Navigate through a generic list using a webservice

  
Hi I have a problem where I would have a dataset coming to me and I would break into 5 new generic LIST<>. Now the user needs to see one record at a time and navigate through the list Fields like               From date : Text box with calendar                To Date : Text box with calendar               Manager Reporting To : Drop down list                Buttons on Move Back  and move Forward Now I would have 4 such similar lists which I have to pick up from the audit table. When the user clicks on move back and move forward buttons he should be able to navigate through records in my list that I have fetched in the beginning . I can store it in a session or viewstate till it gets updated again. How do I achieve this. Can I also a gridview instead of textboxes. What should be the simplest way to achieve this. Thanks!      

Custom Edit form - close modal dialog and navigate to page

  
Hi, I created one custom edit form for my document library, replaced default save and cancel buttons with input buttons and added the form action to them. Then I set my page as default edit form. When I click edit button, my custom form opens in modal pop up. When I try to save the item by clicking new save button, item gets saved but pop remains as it is. Now, I want the modal pop up to get closed and navigate to page other than the parent page with some parameters after I click save button. How can I achieve this? Thanks!!

Navigate XML in SQL

  
Hello I'm trying navigate inside a xml file, something like this: <root>   <group>     <data1>value</data1>     <data2>value</data2>   </group>   <group>     <data1>value</data1>     <data2>value</data2>     <subgroup>       <data3>value</data3>       <data4>value</data4>     </subgroup>     <subgroup>       <data3>value</data3>       <data4>value</data4>     </subgroup>   </group>   <group>     <data1>value</data1>     <data2>value</data2>     <subgroup>       <data3>value</data3>       <data4>value</data4>     </subgroup>   </group> </root>   I'm using select a.b.value() from @xml.nodes(/root/group) for read the values of data1 and data2; but I don't know what I should do for read the values of data3 and data 4, besides I want read only the data3 and data4 for a specific group.  I ap

How to prevent click sound on Frame.Navigate()

  

I have an application with several different forms which need to be filled in one after the other, so I thought I'd use a frame with pages.

However, I don't want a click sound when navigating to the next page.

Is it possible to get rid of it?

If not I have just discovered that I can set the source Uri instead but it would be nice to be able to use Frame.Navigate().

Thanks


Navigate Menu asp Control Add Items (HOW?) c#

  

I feel like a complete idiot!! :)

I have a asp.net menu control on a default.aspx page

I want to add items to this menu control using the code behind file (C#)

How do I do this?

My menu id is mnuHeader

YES, newB question .. LOL

 

Thanks for your help in advance!!! 


Cant Find the NavigationService.Navigate ..

  
Hi All.
I want to use a code like this : this.NavigationService.Navigate(etc...), but when I write this. i cant find the NavigationService from the menu which automaticy comes ..  i have using System.Navigation namespace but still i cant find Navigation things. Is there any one to help me ? 

Thanks..

How to navigate through AJAX TabContainer Tabs using buttons

  

Hi Forumians,


In a web page i have 5 tabs from 1 st tab to 2 tab

i have to go by a linkbutton click not through header navigation

so i created a link button and in the button click event

i have written the code like below

protected void lnkproceceed2tab3_Click(object sender, EventArgs e)
    {
        TabContainer1.ActiveTab = TabContainer1.Tabs[3];

    }

its sitting in same tab i cant go to the next tab by a link button.


Kindly find a solution and tell me


urgent ! = axWebBrowser navigate occurring only after main method ends

  

So here is the problem

background, I am automating a 3rd party website by filling in a form with select boxes automatically, the problem is that this form is server driven so you have to choose option 1, wait get the document again, choose option 2, wait, get the document again etc.

This is what I have done workign with the mshtml library for the axWebBrowser Control

 

 public void myFireEvent(string currentCB, HTMLSelectElement currElement)

        {

                HTMLDocument myDoc = axWebBrowser1.Document as HTMLDocument;

                string myLink = "javascript:__doPostBack(\'" + currentCB + "\',\'\')";

                axWebBrowser1.Navigate(myLink);

        }

 

private void getManufacturer ()

        {

                HTMLDocument doc = axWebBrowser1.Document as HTMLDocument;

                // ************* 1

                // Get the dropdown li

Document icon and title link in document library don't navigate on click for one user using IE8

  

On a pretty vanilla SharePoint document library, a particular user browsing with IE8 can click on the document icon or the title link for a Word document but nothing happens.  Other document types were not tested, so I can't say if it was specific to Word documents. The user can however pull up the menu at the right of the title and select "Open in Microsoft Office Word" which will open the document in Word and is then able to modify and save the document.  The behavior has not been observed from other users using IE8.  I've reviewed the users Internet Options settings and didn't see anything out of the ordinary and tried disabling pop-up blocker and other potentially interfering features without changing the observed behavior.  The user is from a different location and his configuration may or may not represent the stock configuration at that site, so I can't dismiss it without determining whether it would affect all users at his site.  Word 2007 is installed on the user's machine.

Does this sound familiar?  Any suggestions for troubleshooting?


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend