hey everybody,
I have written a great browser but it is missing a feature (quite a lot
actually, but forget about them for now). that feature just so happens to be
the View > Source function. for those of you who don't what i mean, it is
when you click a button in the view menu that says Page source (in Netscape)
and source (in Internet Explorer). if you click it, notepad opens. in that
window is the html for the page.
anyway, does anyone know how to show the source?
--
Alvo von Cossel I of Germany 8 2245
The easiest way for you to do it would be to make sure you’ve got a copy of
the source saved to some temporary location and launch a copy of notepad via
the Process class with either the /A or /W argument followed by the filename
of this temp file.
If you wanted to stay completely within your code, a new form with a large,
multi-line textbox too would do the job, however for my money I would
probably go with notepad just because of it’s simplicity.
Just for note, with regards to the above arguments, /A opens the file as an
ANSI file while /w opens it as Unicode.
Brendan
"Alvo von Cossel I" wrote: hey everybody,
I have written a great browser but it is missing a feature (quite a lot actually, but forget about them for now). that feature just so happens to be the View > Source function. for those of you who don't what i mean, it is when you click a button in the view menu that says Page source (in Netscape) and source (in Internet Explorer). if you click it, notepad opens. in that window is the html for the page.
anyway, does anyone know how to show the source?
-- Alvo von Cossel I of Germany
hi,
thanks brendan. i want to do it with the new form because it would seem more
simple and it would take up less storage space on your HDD. would you know
how to do that?
--
Alvo von Cossel I of Germany
"Brendan Grant" wrote: The easiest way for you to do it would be to make sure you’ve got a copy of the source saved to some temporary location and launch a copy of notepad via the Process class with either the /A or /W argument followed by the filename of this temp file.
If you wanted to stay completely within your code, a new form with a large, multi-line textbox too would do the job, however for my money I would probably go with notepad just because of it’s simplicity.
Just for note, with regards to the above arguments, /A opens the file as an ANSI file while /w opens it as Unicode.
Brendan
"Alvo von Cossel I" wrote:
hey everybody,
I have written a great browser but it is missing a feature (quite a lot actually, but forget about them for now). that feature just so happens to be the View > Source function. for those of you who don't what i mean, it is when you click a button in the view menu that says Page source (in Netscape) and source (in Internet Explorer). if you click it, notepad opens. in that window is the html for the page.
anyway, does anyone know how to show the source?
-- Alvo von Cossel I of Germany
To do it all within your C# app I would do it as follows:
1. Create a new Windows Form.
2. Add a textbox to the form and name it sourceTextBox
3. Set Multiline to True and Dock to fill on sourceTextBox
4. Add the following property to the code of the Form:
public string Source
{
set
{
sourceTextBox.T ext = value;
}
}
5. When in your code you wish to view the source, simply create a new
instance of your newly created source viewing form, set the Source property
on it equal to the string containing the source, and call the Show() or
ShowDialog() method on it to display it.
Simple enough?
Brendan
"Alvo von Cossel I" wrote: hi,
thanks brendan. i want to do it with the new form because it would seem more simple and it would take up less storage space on your HDD. would you know how to do that?
-- Alvo von Cossel I of Germany
"Brendan Grant" wrote:
The easiest way for you to do it would be to make sure you’ve got a copy of the source saved to some temporary location and launch a copy of notepad via the Process class with either the /A or /W argument followed by the filename of this temp file.
If you wanted to stay completely within your code, a new form with a large, multi-line textbox too would do the job, however for my money I would probably go with notepad just because of it’s simplicity.
Just for note, with regards to the above arguments, /A opens the file as an ANSI file while /w opens it as Unicode.
Brendan
"Alvo von Cossel I" wrote:
hey everybody,
I have written a great browser but it is missing a feature (quite a lot actually, but forget about them for now). that feature just so happens to be the View > Source function. for those of you who don't what i mean, it is when you click a button in the view menu that says Page source (in Netscape) and source (in Internet Explorer). if you click it, notepad opens. in that window is the html for the page.
anyway, does anyone know how to show the source?
-- Alvo von Cossel I of Germany
hi,
i get a message saying: 'Source': member names cannot be the same as their
enclosing type
what does it mean?
by the way, here is the line with the error:
public string Source() // <<Error here
{
set;
{
sourceTextBox.T ext = value;
}
}
--
Alvo von Cossel I of Germany
"Brendan Grant" wrote: To do it all within your C# app I would do it as follows:
1. Create a new Windows Form. 2. Add a textbox to the form and name it sourceTextBox 3. Set Multiline to True and Dock to fill on sourceTextBox 4. Add the following property to the code of the Form: public string Source { set { sourceTextBox.T ext = value; } }
5. When in your code you wish to view the source, simply create a new instance of your newly created source viewing form, set the Source property on it equal to the string containing the source, and call the Show() or ShowDialog() method on it to display it.
Simple enough?
Brendan
"Alvo von Cossel I" wrote:
hi,
thanks brendan. i want to do it with the new form because it would seem more simple and it would take up less storage space on your HDD. would you know how to do that?
-- Alvo von Cossel I of Germany
"Brendan Grant" wrote:
The easiest way for you to do it would be to make sure you’ve got a copy of the source saved to some temporary location and launch a copy of notepad via the Process class with either the /A or /W argument followed by the filename of this temp file.
If you wanted to stay completely within your code, a new form with a large, multi-line textbox too would do the job, however for my money I would probably go with notepad just because of it’s simplicity.
Just for note, with regards to the above arguments, /A opens the file as an ANSI file while /w opens it as Unicode.
Brendan
"Alvo von Cossel I" wrote:
> hey everybody, > > I have written a great browser but it is missing a feature (quite a lot > actually, but forget about them for now). that feature just so happens to be > the View > Source function. for those of you who don't what i mean, it is > when you click a button in the view menu that says Page source (in Netscape) > and source (in Internet Explorer). if you click it, notepad opens. in that > window is the html for the page. > > anyway, does anyone know how to show the source? > > -- > Alvo von Cossel I of Germany
remove the parenthesis... should just be "public string Source" as it's
a property, not a method.
"Alvo von Cossel I" <Al************ @discussions.mi crosoft.com> wrote in
message news:C7******** *************** ***********@mic rosoft.com... hi,
i get a message saying: 'Source': member names cannot be the same as their enclosing type
what does it mean?
by the way, here is the line with the error:
public string Source() // <<Error here { set; { sourceTextBox.T ext = value; } } -- Alvo von Cossel I of Germany
"Brendan Grant" wrote:
To do it all within your C# app I would do it as follows:
1. Create a new Windows Form. 2. Add a textbox to the form and name it sourceTextBox 3. Set Multiline to True and Dock to fill on sourceTextBox 4. Add the following property to the code of the Form: public string Source { set { sourceTextBox.T ext = value; } }
5. When in your code you wish to view the source, simply create a new instance of your newly created source viewing form, set the Source property on it equal to the string containing the source, and call the Show() or ShowDialog() method on it to display it.
Simple enough?
Brendan
"Alvo von Cossel I" wrote:
> hi, > > thanks brendan. i want to do it with the new form because it would seem > more > simple and it would take up less storage space on your HDD. would you > know > how to do that? > > -- > Alvo von Cossel I of Germany > > > "Brendan Grant" wrote: > > > The easiest way for you to do it would be to make sure you've got a > > copy of > > the source saved to some temporary location and launch a copy of > > notepad via > > the Process class with either the /A or /W argument followed by the > > filename > > of this temp file. > > > > If you wanted to stay completely within your code, a new form with a > > large, > > multi-line textbox too would do the job, however for my money I would > > probably go with notepad just because of it's simplicity. > > > > Just for note, with regards to the above arguments, /A opens the file > > as an > > ANSI file while /w opens it as Unicode. > > > > Brendan > > > > > > "Alvo von Cossel I" wrote: > > > > > hey everybody, > > > > > > I have written a great browser but it is missing a feature (quite a > > > lot > > > actually, but forget about them for now). that feature just so > > > happens to be > > > the View > Source function. for those of you who don't what i mean, > > > it is > > > when you click a button in the view menu that says Page source (in > > > Netscape) > > > and source (in Internet Explorer). if you click it, notepad opens. > > > in that > > > window is the html for the page. > > > > > > anyway, does anyone know how to show the source? > > > > > > -- > > > Alvo von Cossel I of Germany
hi,
thanks but now i get an error on one of the curly brackets instead of the
Source:
public string Source
{
set;
{ // <<error here. It says: a get or set accessor expected
sourceTextBox.T ext = value;
}
}
cheers,
--
Alvo von Cossel I of Germany
"Dan Bass" wrote: remove the parenthesis... should just be "public string Source" as it's a property, not a method.
"Alvo von Cossel I" <Al************ @discussions.mi crosoft.com> wrote in message news:C7******** *************** ***********@mic rosoft.com... hi,
i get a message saying: 'Source': member names cannot be the same as their enclosing type
what does it mean?
by the way, here is the line with the error:
public string Source() // <<Error here { set; { sourceTextBox.T ext = value; } } -- Alvo von Cossel I of Germany
"Brendan Grant" wrote:
To do it all within your C# app I would do it as follows:
1. Create a new Windows Form. 2. Add a textbox to the form and name it sourceTextBox 3. Set Multiline to True and Dock to fill on sourceTextBox 4. Add the following property to the code of the Form: public string Source { set { sourceTextBox.T ext = value; } }
5. When in your code you wish to view the source, simply create a new instance of your newly created source viewing form, set the Source property on it equal to the string containing the source, and call the Show() or ShowDialog() method on it to display it.
Simple enough?
Brendan
"Alvo von Cossel I" wrote:
> hi, > > thanks brendan. i want to do it with the new form because it would seem > more > simple and it would take up less storage space on your HDD. would you > know > how to do that? > > -- > Alvo von Cossel I of Germany > > > "Brendan Grant" wrote: > > > The easiest way for you to do it would be to make sure you've got a > > copy of > > the source saved to some temporary location and launch a copy of > > notepad via > > the Process class with either the /A or /W argument followed by the > > filename > > of this temp file. > > > > If you wanted to stay completely within your code, a new form with a > > large, > > multi-line textbox too would do the job, however for my money I would > > probably go with notepad just because of it's simplicity. > > > > Just for note, with regards to the above arguments, /A opens the file > > as an > > ANSI file while /w opens it as Unicode. > > > > Brendan > > > > > > "Alvo von Cossel I" wrote: > > > > > hey everybody, > > > > > > I have written a great browser but it is missing a feature (quite a > > > lot > > > actually, but forget about them for now). that feature just so > > > happens to be > > > the View > Source function. for those of you who don't what i mean, > > > it is > > > when you click a button in the view menu that says Page source (in > > > Netscape) > > > and source (in Internet Explorer). if you click it, notepad opens. > > > in that > > > window is the html for the page. > > > > > > anyway, does anyone know how to show the source? > > > > > > -- > > > Alvo von Cossel I of Germany
In message <BF************ *************** *******@microso ft.com>, Alvo
von Cossel I <Al************ @discussions.mi crosoft.com> writes hey everybody,
I have written a great browser but it is missing a feature (quite a lot actually, but forget about them for now). that feature just so happens to be the View > Source function. for those of you who don't what i mean, it is when you click a button in the view menu that says Page source (in Netscape) and source (in Internet Explorer). if you click it, notepad opens. in that window is the html for the page.
What do you mean when you say you've "written" a browser; do you mean
that you've written one from the ground up (in which case only you know
how to get to the raw html) or that you've embedded the IE browser in
your application?
If it's the latter, then something like:
mshtml.HTMLDocu mentClass doc =
(mshtml.HTMLDoc umentClass)this .axWebBrowser1. Document;
MessageBox.Show (doc.documentEl ement.innerHTML );
should do what you want.
--
Steve Walker
"Alvo von Cossel I" <Al************ @discussions.mi crosoft.com> wrote in
message news:75******** *************** ***********@mic rosoft.com... hi,
thanks but now i get an error on one of the curly brackets instead of the Source:
public string Source { set; { // <<error here. It says: a get or set accessor expected
<snip>
Lose the semicolon after the set This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Christian Schmidbauer |
last post by:
Hello!
I prepare my XML document like this way:
-------------------------------------------------------
PrintWriter writer;
Document domDocument;
Element domElement;
// Root tag
|
by: hetnet |
last post by:
Hello, How can i disabled a menuitem like " View => Source"???
--
Met vriendelijke groet,
Rob van Westrop
|
by: shr |
last post by:
Is there any way by which I can display the source of a html page
using the 'view:source' command, in an iframe??
I tried using this
viewer.location = "view-source:" + viewer.location.href;
where viewer is an iframe.
but it opens the source in a notepad.
Instead of the source getting displayed in the notepad, I would like
the iframe to display the source.
|
by: Michael Hill |
last post by:
I saw a site that looked pretty good, but I could view the source.
2 questions:
1) how can I do the same for my site
2) any way to get around this?
Mike
|
by: lori3laz |
last post by:
How do you disable the right click>view source option on web pages so people
can't view your coding and copy it? What's the html I need to include in my
website to utilize this feature?
Thank you.
| |
by: sierrachang |
last post by:
Why would one not want to sort records in a form using Form Properties
> Datasheet View > Sort Ascending?
It's the fastest way, isn't it?
|
by: Paolo Pignatelli |
last post by:
I have an aspx code behind page that goes something like this in the HTML
view:
<asp:HyperLink id=HyperLink1 runat="server"
NavigateUrl='<%#"mailto:" &
DataBinder.Eval(Container.DataItem,"StoreEmail") & "&Subject=" &
DataBinder.Eval(Container.DataItem,"ProductName")
....
|
by: Nathan Sokalski |
last post by:
My Web.config file contains the following section to register some of my
UserControls:
<pages>
<controls>
<add tagPrefix="NATE" tagName="Banner" src="~/Banner.ascx"/>
<add tagPrefix="NATE" tagName="Navigation" src="~/Navigation.ascx"/>
</controls>
</pages>
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |