Creating a Web UI 
Author Message
 Creating a Web UI

Hello all, I am writing an app in C# and would like to have a Web UI for it,
just as is done with the Visual Studio Start Page.  How is this done for a
stand alone app?  My plan is to have a dynamic start page.  Clicking certain
links would bring up items such as other local pages (dynamic and static),
windows forms, dialog boxes, internet sites, etc.

Thanks for any info.

John



Tue, 12 Oct 2004 08:39:55 GMT  
 Creating a Web UI
Hi Brock.  You can just embed a web browser control in your apps form.  I
believe it is the Explorer component under the component toolbox.

Hope that helps.

Justin


Quote:
> Hello all, I am writing an app in C# and would like to have a Web UI for
it,
> just as is done with the Visual Studio Start Page.  How is this done for a
> stand alone app?  My plan is to have a dynamic start page.  Clicking
certain
> links would bring up items such as other local pages (dynamic and static),
> windows forms, dialog boxes, internet sites, etc.

> Thanks for any info.

> John



Tue, 12 Oct 2004 09:23:33 GMT  
 Creating a Web UI
That I understand, what I'm not clear on is how do use that to interact with
my app?  How would clicking a link on the web page launch a form in my app
or call some function?  How do I get my dynamic page to the web control?
Write it to a temp file then send that file path to the web control?  Or can
html be streamed to the control?


Quote:
> Hi Brock.  You can just embed a web browser control in your apps form.  I
> believe it is the Explorer component under the component toolbox.

> Hope that helps.

> Justin



> > Hello all, I am writing an app in C# and would like to have a Web UI for
> it,
> > just as is done with the Visual Studio Start Page.  How is this done for
a
> > stand alone app?  My plan is to have a dynamic start page.  Clicking
> certain
> > links would bring up items such as other local pages (dynamic and
static),
> > windows forms, dialog boxes, internet sites, etc.

> > Thanks for any info.

> > John



Tue, 12 Oct 2004 10:48:30 GMT  
 Creating a Web UI
I don't know how to do what you guys are talking about.  
But I would use ASP.NET.  At first I was all confused
about ASP.NET and knew absolutely nothing about ASP and
ASP.NET, but it's just like a regular form, but it has a
web interface so it's accessible through any browser and
it does all the XML, session(ing), and all that other junk
behind the scenes.  I didn't know and have to worry about
it.  It does it all.  So just use it as if you would a
regular windows form, but it's in aspx which you can then
upload to a webserver or could be running on your machine
which should be running if you installed VS.NET on that
machine.  If i remember correctly it makes you install IIS.

RAyRAy

Quote:
>-----Original Message-----
>That I understand, what I'm not clear on is how do use

that to interact with
Quote:
>my app?  How would clicking a link on the web page launch
a form in my app
>or call some function?  How do I get my dynamic page to
the web control?
>Write it to a temp file then send that file path to the

web control?  Or can
Quote:
>html be streamed to the control?


message

>> Hi Brock.  You can just embed a web browser control in
your apps form.  I
>> believe it is the Explorer component under the
component toolbox.

>> Hope that helps.

>> Justin



>> > Hello all, I am writing an app in C# and would like

to have a Web UI for
Quote:
>> it,
>> > just as is done with the Visual Studio Start Page.  

How is this done for

- Show quoted text -

Quote:
>a
>> > stand alone app?  My plan is to have a dynamic start
page.  Clicking
>> certain
>> > links would bring up items such as other local pages
(dynamic and
>static),
>> > windows forms, dialog boxes, internet sites, etc.

>> > Thanks for any info.

>> > John

>.



Tue, 12 Oct 2004 17:46:04 GMT  
 Creating a Web UI
Hi Brock,


Quote:
> That I understand, what I'm not clear on is how do use that to interact
with
> my app?  How would clicking a link on the web page launch a form in my app
> or call some function?

    You could monitor the BeforeNavigate2 event. Supposing you came up with
a special url format for links pointing to forms within your application
(e.g. starts with "form:"), you could parse the destination url in the
BeforeNavigate2 event. If the url is a link-to-form url (starts with
"form:"), then cancel the navigation (Cancel event parameter) and open the
form.

Quote:
> How do I get my dynamic page to the web control?
> Write it to a temp file then send that file path to the web control?  Or
can
> html be streamed to the control?

    I don't see that html can be easily streamed to a web control except
with a web server, so your first suggestion seems the most reasonable. If
you were very ambitious, you could create your own protocol handler to
process urls of your very own protocol. This is how the MS help system
works: Notice that the help urls all start with "ms-help:". Also notice that
the url is usable inside _and_ outside the help viewer.

Regards,
Dan



Sat, 16 Oct 2004 05:19:15 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Adding Web Controls to the System.Web.UI.WebControls namespace

2. Web Application UI Template

3. Layout of Custom System.Web.UI.UserControl Objects added to parent

4. Subclassing System.Web.UI.Page

5. System.Web.UI.Page

6. can't find namespace using System.Web.UI.Design

7. Q: SelectedIndexChanged event for System.Web.UI.WebControls.DropDownList

8. Microsoft.Web.UI.WebControls.{MultiPage, TabStrip}

9. Microsoft.Web.UI.WebControls

10. System.Web.UI.WebControls.FontInfo

11. I can not find System.Web.UI.WebControls

12. creating UI thread

 

 
Powered by phpBB® Forum Software