Hello,
I need to check for forms in html on the web, and I found this: http://msdn2.microsoft.com/en-us/lib...rm(VS.90).aspx
But I can't find this property in C#...
Am I doing something wrong? Is there something else that dose it?
If not, I guess I'll need to make my own method that will do it.
Please help,
Ofir. 7 1545
Ofir,
Are you using this in ASP.NET? This property is offered through the
Page object (which exposes it through the Request object on the Page), or
you can get it from the static Current property on the HttpContext class
(which will return the current context, which exposes the HttpRequest
instance through the Request property, which you can access the Form
property through).
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"ofiras" <of****@gmail.comwrote in message
news:19**********************************@f3g2000h sg.googlegroups.com...
Hello,
I need to check for forms in html on the web, and I found this: http://msdn2.microsoft.com/en-us/lib...rm(VS.90).aspx
But I can't find this property in C#...
Am I doing something wrong? Is there something else that dose it?
If not, I guess I'll need to make my own method that will do it.
Please help,
Ofir.
Thanks for explaining,
I'm not using asp.net, so can I get the form info in some another way
that can be used in .NET?
Thanks,
Ofir.
I want to get the values from a web page on the net.
I have its URL, and I know how to get his html with WebClient, so a
method that takes html code and returns all the forms names and
fields.
I'll be happy if I will get their place in the html code, but I can do
it myself so it's not important.
Thanks,
Ofir.
Thanks,
But I don't know how to use Dom... I guess I need System.CodeDom, but
how do I get the form elements from it?
As I saw in this article: http://blogs.msdn.com/tims/archive/2...ml-with-c.aspx
I need to use HtmlPage class with using System.Windows.Browser, but
the C# doesn't have this namespace.
Please help,
Ofir.
I guess I need System.CodeDom
CodeDom is something completely unrelated - don't go near that for
this...
I need to use HtmlPage class with using System.Windows.Browser
Well, System.Windows.Forms.WebBrowser may be a good equivalent; this
wraps ShDocVw, so you get the same DOM as IE / DHTML uses... but other
DOMs are available for HTML. But if WebBrowser works for you...
Marc
I don't get it...
How do I make DOM? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Brent |
last post by:
Hi,
I want to build an app (C#, windows app, or web app, shouldn't make a
difference) that submits an address to the canada post website's address
lookup and then scrape the postal code out of the...
|
by: davidw |
last post by:
I always use NameValueCollection. But I read an article says the only
differece between Hashtable and NameValueCollection is that
NameValueCollection could accept more than one value with same key?...
|
by: Stu |
last post by:
Hi,
I have a class that is going to format all the fileds in a form post and
send them in an html email.
How do I pass the Request.Form contenst to a class? I know I can get the raw
data by...
|
by: Denise |
last post by:
I have posted a similar message in 2 other forums but got no response. I
have spent more hours than I can count researching this. Can anyone provide
some insight...?
Our ASP.Net application...
|
by: msnews.microsoft.com |
last post by:
Hi,
Is it possible to gain access to the actual html stream send to the client?
I am thinking of something like:
private void Page_Load(object sender, System.EventArgs e)
{
if (...
|
by: MrDotNet |
last post by:
Hi
I want pass NameValueCollection as parameter in webmethod.
I try it but that give me error.
Here is Error.
You must implement the Add(System.String) method on...
|
by: Scott Durrett |
last post by:
I have 2 pages. Page1 is a .html page with a form, hidden input, and a
submit button. I have the action set to Post.
<form id="form1" action="paymentcatch.aspx" method="post">
<input...
|
by: Mr. SweatyFinger |
last post by:
I'll never understand this
for each ?? in request.form.items
response.write ??
next
what the heck is ?? and how do yo dim it?
can it be any name?
|
by: Harry Haller |
last post by:
I want to duplicate the form data, edit it to remove some items (such
as __EVENTTARGET, __EVENTVALIDATION, etc) and save it to a log.
How can I make a duplicate (editable) copy of the Form...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |