473,562 Members | 2,600 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

name property for <form does not appear html page

I have a vb.net page that uses a form as below:

<form id="Visual" name="Visual" method="post" runat="server">

If I run this on my Windows XP development PC then the HTML generated from
it is:

<form name="Visual" method="post" action="Salesre port.aspx?Index =7"
language="javas cript" onsubmit="javas cript:return WebForm_OnSubmi t();"
id="Visual">

As you can see the form still contains the 'name=...'

However if I run the same form on my live Windows 2000 server, the HTML
generated is:

<form method="post" action="Salesre port.aspx?Index =7"
onsubmit="javas cript:return WebForm_OnSubmi t();" id="Visual">

and as you can see the 'name' and 'language' properties are missing.

I need the 'name' property to appear as in my development environment as
this is used by a calendar control that is called from the page.

Has anybody any idea why it appears on my dev PC and not my live server?

Is it a versioning issue, and if so how do I go about checking versions etc?
Thanks, Mike.

Jun 8 '06 #1
7 1537
Hi Mike,

Thank you for your post.

I was unable to repro the problem you described. Simply create an empty
WebForm with the form declaration you provided will produce same result on
Windows XP and 2000. Since the html source your described contains some
other attributes, I think you must have been using custom code to modify
the form. Would you mind posting some more code or creating a repro project
for that? Also, please tell me which ASP.NET version you are using. Thanks.
Regards,
Walter Wang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 9 '06 #2
Walter,

First of all apologies as the live server the code is running on is Windows
2003 Web Server, and not Windows 2000 Server as I put in my first post! (I
have 2 live servers!)

I tried a blank form as you suggested, and it had the same result.

Interestingly when the start of the form is as follows:

<form name="TestForm" id="form1" runat="server">

The development PC (Windows XP) comes back with:

<form name="form1" method="post" action="Test.as px" id="form1">

i.e. the name has been changed to 'form1' from 'TestForm'. This would not
be a problem for me, but it not appearing at all does!

The live Windows 2003 server still comes back without a name, i.e.:

<form method="post" action="Test.as px" id="form1">

I think it must be due to slight differences in the versions of .Net running
- How do I as you suggest check the versions that are running?, and what do I
do if the Windows 2003 server is out of date?
Thanks, Mike.
"Walter Wang [MSFT]" wrote:
Hi Mike,

Thank you for your post.

I was unable to repro the problem you described. Simply create an empty
WebForm with the form declaration you provided will produce same result on
Windows XP and 2000. Since the html source your described contains some
other attributes, I think you must have been using custom code to modify
the form. Would you mind posting some more code or creating a repro project
for that? Also, please tell me which ASP.NET version you are using. Thanks.
Regards,
Walter Wang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 9 '06 #3
Hi Mike,

Thank you for your update.
The name attribute is only valid on the <form> and form elements (such as
<input>, <textarea>, <select>). It's used to specify the name to associate
with the name/value pair that is submitted on a form post.

For example:

<input type=checkbox name=foo value=1>

If checked will submit with foo=1.

In the DOM you can reference form elements from the form.elements
collection by specifying the name as the index. If the name is not unique,
the collection returns an array of elements rather than the element. You
can look up form elements by name:

document.getEle mentsByName(nam eValue)

Note: if always returns an array even if only one element is found.

The id attribute is from the XML world, and is unique for any node, not
just for form element. To find any html element by id:

document.getEle mentById(idValu e)

This only returns one dom node.

Based on my research, the name attribute is always generated by ASP.NET and
forced set to its id attribute value, regarding whether or not you
specified it manually. Also it works the same way either in ASP.NET 1.1 and
2.0.

To check the ASP.NET version used in a website, in IIS manager, you can
open the Properties dialog of the website and find a tab named "ASP.NET",
there's a Combobox to change the ASP.NET version, --if you've installed
multiple .NET framework versions.

Hope this helps.

Regards,
Walter Wang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 9 '06 #4
It's very strange that it should be produced, yet isn't on the live 2003 web
server.

The versions of ASP.NET are:

- 2.0.50215.0 on the Windows 2003 Web Server, and
- 2.0.50727 on the dev PC.

Is it worth me trying to update the version on the Windows 2003 Web Server,
and if so where is the best place to get it from?
Thanks, Mike.

"Walter Wang [MSFT]" wrote:
Hi Mike,

Thank you for your update.
The name attribute is only valid on the <form> and form elements (such as
<input>, <textarea>, <select>). It's used to specify the name to associate
with the name/value pair that is submitted on a form post.

For example:

<input type=checkbox name=foo value=1>

If checked will submit with foo=1.

In the DOM you can reference form elements from the form.elements
collection by specifying the name as the index. If the name is not unique,
the collection returns an array of elements rather than the element. You
can look up form elements by name:

document.getEle mentsByName(nam eValue)

Note: if always returns an array even if only one element is found.

The id attribute is from the XML world, and is unique for any node, not
just for form element. To find any html element by id:

document.getEle mentById(idValu e)

This only returns one dom node.

Based on my research, the name attribute is always generated by ASP.NET and
forced set to its id attribute value, regarding whether or not you
specified it manually. Also it works the same way either in ASP.NET 1.1 and
2.0.

To check the ASP.NET version used in a website, in IIS manager, you can
open the Properties dialog of the website and find a tab named "ASP.NET",
there's a Combobox to change the ASP.NET version, --if you've installed
multiple .NET framework versions.

Hope this helps.

Regards,
Walter Wang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 9 '06 #5
Hi Mike,

Thank you for your update.

Looks like you're not running latest version of ASP.NET on the Windows 2003
Server, try to update it.

Please feel free to post here if you need more help.

Regards,
Walter Wang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 12 '06 #6
Walter,

I thought the version of ASP.Net that I had on my live server was V 2.0 -
But it looks like it is older than the first RTM, i.e. 2.0 Original RTM
2.0.50727.42 .

Does this mean that the version I have on my live web server is a Beta, and
I will therefore have to remove it before installing 2.0 Original RTM
2.0.50727.42 ?
Cheers, Mike.

"Walter Wang [MSFT]" wrote:
Hi Mike,

Thank you for your update.

Looks like you're not running latest version of ASP.NET on the Windows 2003
Server, try to update it.

Please feel free to post here if you need more help.

Regards,
Walter Wang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 12 '06 #7
Hi Mike,

Thank you for your update.

Yes you need to remove the old version and install the RTM version.

Please feel free to post here if you need more help.

Regards,
Walter Wang
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 13 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1643
by: hamidi | last post by:
hi how can i have a custom control in a property page? i think i may register a window class, but i don't know how. i think another way may be overriding OnPaint on a CStatic, but i know how to do it only in a dialog, not in a property page. besides, controls may have undefinable IDs, that is a control may get its ID dynamically which is not...
1
5399
by: John Hunter | last post by:
I've recently had a nasty problem with the "Invalid reference to the property Form" error in subforms - nasty because it doesn't seem to consistently happen to all forms which contain the same structure and code. Judging by the forums I've researched, it's not an uncommon error. I'm happy to say I've found a simple solution. OVERVIEW: I...
0
1118
by: Victor Yen | last post by:
Hi, I am a beganer of programming. Now I am using eMbedded Visual C++3.0 to write a program on my PDA. I want to use menu in my dialog box. I think I had successfully added the menu, however, when I move my cursor to the menu and click it, the menu has no any response. Since I use property pages, I think this problem may be caused by property...
1
1473
by: gotFun | last post by:
I am unable to set focus to an IP address control residing on a Property Page, following validation of the IP when the user hits the 'Finish' button on the Property Sheet. I've unsuccessfully tried to use: CWnd::SetFocus CIPAddrCtrl::SetFieldFocus WM_SETFOCUS sent via SendDlgItemMessage (this approach helped set focus to edit and combo...
2
976
by: James Tillery | last post by:
I hope I can describe this correctly: I have a asp.net custom control and I have what I see as a complicated bunch of properties that I would like to have set in there own property page. I'm referring to something like when you go into the properties page of a control and there is a button on a property which if you press calls another page...
1
1368
by: Nate | last post by:
I have my own data type, and I want to create a property page (dialog) for it. Basically, I want to display my object using the PropertyGrid control. If I have a variable of type "font", then the property automatically launches the Font dialog when I click on that property... I want to create a screen like this, but for my data-type...
2
5510
by: genojoe | last post by:
Using ADOX to update a Property does not work. I want to change the Access database for a linked table. My abridged code is: Dim oCAT As ADOX.Catalog oCAT = New ADOX.Catalog oCAT.ActiveConnection = goConnection Dim t As ADOX.Table Dim p As ADOX.Property
1
2425
by: --== Alain ==-- | last post by:
Hi, I have a huge problem... My property does not appear in the "propertyGrid" of "test Container", when i test my custom control. Here is the custom control code : namespace ARListView.Design {
1
1660
by: jobsjournal | last post by:
hi, i'm a newbie here. need help on how to make &lt; appear as &lt; and a&gt; appear as a&gt; without turning to the < and > sign, respectively. just for knowledge thanks jobs
3
10870
by: MyWaterloo | last post by:
I am trying to open my purchase orders form and go to the last record. In the on open command I do: DoCmd.GoToRecord , , acLast Seems straight forward enough...but I keep getting this message "You entered an expression that has invalid reference to the property Form/Report" before the form opens. After I acknowledge the message the form opens...
0
7655
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7577
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...
0
7869
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7627
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...
0
7935
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6221
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5193
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3623
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...
0
903
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.