Anuradika

Hi friends,

I am new to VB.Net. I am using VS 2005. I have to call a website, which has 3 frame, after calling the first main mapge, example : index.html (contains 3 frames), i need to open search.html in the "main" frame. How do i do this.

Please guide me ...

Thanks in advance !

Anuradika




Re: Internet Explorer Web Development Web Browser with Vb.Net

Sidheshwar

The Code will not create any problems , if u have used Web Browser Control (I hope So)

It will automatically take care of everything.

Rgds

Sidheshwar





Re: Internet Explorer Web Development Web Browser with Vb.Net

Anuradika

Could you please give me an example on how to do it pls..




Re: Internet Explorer Web Development Web Browser with Vb.Net


Re: Internet Explorer Web Development Web Browser with Vb.Net

Anuradika

Hi there,

Thanks alot for the reply, will try that out.

I did try this, but it doesnt work at all :-

Dim webcontrol As New WebBrowser
webcontrol.Navigate("http://index1.html")
webcontrol.Navigate("http://edit.asp ID=1" , "main")






Re: Internet Explorer Web Development Web Browser with Vb.Net

Anuradika

hm..even using the example code, it still not showing the pahe.html in the "main" frame, instead its showing as a new window...but the spelled it correctly...

any idea on what i shall do..






Re: Internet Explorer Web Development Web Browser with Vb.Net

Sidheshwar

Hello Anu

The Scenerio goes like this

1) index.html ( This will have 3 frames, One for Left Pane as 'content' , One for Header as 'Head' and last for displaying all important stuff that is 'main' )

2) See, your code will go like this
webcontrol.Navigate("http://localhost/index.html")

Now I assume that the 'left' frame will have a link to edit.asp
So in the Anchor <A> tag you have to mention
like this
< A href='edit.asp ID=1' target='main'> Edit Page </A>


No any extra work you have to do.

Dont access the edit page like this , this will not navigate to main frame.
//webcontrol.Navigate("http://edit.asp ID=1" , "main")

Rgds

Sidheshwar





Re: Internet Explorer Web Development Web Browser with Vb.Net

Anuradika

Thanks a lot for the reply...but since im using VB.net..how to use ahref ..

im confused here






Re: Internet Explorer Web Development Web Browser with Vb.Net

Sidheshwar

Hi,

Now, Lets try without using VB.NET Browser Contyrol, dont even think of .NET for a while.

Try to execute the (html/htm/asp) pages into Internet Explorer/Netscape/FireFox.

If your pages executes successfully here , then I think there would be no problem in executing the same thing in VB.net using Browser Controls

Sidheshwar.





Re: Internet Explorer Web Development Web Browser with Vb.Net

Anuradika

I have found the solution :-

Dim webcontrol As New WebBrowser

System.Diagnostics.Process.Start(http://localhost.html)

webcontrol.Navigate(http://localhost/scripter/scripter_edit.asp, "main")

Thank u so much for helping out