473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Master Pages and changin ID of form tag !!

Hi,

I'm using Framework V2.0 beta 2, I useed a master page, and a content
page.

I put my FORM tag in master page, and I set id of FORM tag to something
like "form1" but when I view source of rendered page, I saw that
ASP.NET chaned id of FORM tag to "aspnetForm".

I mean I have this tag in master page file :

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

but after page is rendered, ASP.NET Changed it to :

<form method="post" action="Default.aspx" id="aspnetForm">

as you see id attribute of Form tag is changed.

Is name of forms a static "aspnetFrom" string ?, so I can use it in my
client scripts, or this is a asp.net 2.0 beta 2 bug ?

-madani

Nov 19 '05 #1
1 1885
Not sure, as I have not played in this manner. From JavaScript, you can
always access the zero item in the forms collection and avoid naming issues.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"madani" wrote:
Hi,

I'm using Framework V2.0 beta 2, I useed a master page, and a content
page.

I put my FORM tag in master page, and I set id of FORM tag to something
like "form1" but when I view source of rendered page, I saw that
ASP.NET chaned id of FORM tag to "aspnetForm".

I mean I have this tag in master page file :

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

but after page is rendered, ASP.NET Changed it to :

<form method="post" action="Default.aspx" id="aspnetForm">

as you see id attribute of Form tag is changed.

Is name of forms a static "aspnetFrom" string ?, so I can use it in my
client scripts, or this is a asp.net 2.0 beta 2 bug ?

-madani

Nov 19 '05 #2

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

Similar topics

14
by: multiformity | last post by:
So I have been working on an opensource project for a while, and decided to really try to make it look better after focusing on the functionality most of this time. Up to now, I have simply used a...
0
by: Greg | last post by:
Hi, I'm trying to use the TreeView control in .NET 2.0 along with master pages and have encountered a problem. I have a master page for my site... pretty standard... on that page I have my...
2
by: Paul | last post by:
Hello: I am struggling with something that would seem to be very easy. I am using a master page. On the content page (which includes the master page), I have a form with a submit input type...
2
by: SR | last post by:
I have started a web site using ASP.NET 2.0. I would like to centralize all of my classes in a StyleSheet but I cannot figure out how to link the StyleSheet to a Content Page since there is no...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
4
by: Diane Yocom | last post by:
I'm trying to use an Atlas UpdatePanel to just update a label when a text box has changed. The problem is that my textbox is in a user control and I'm using Master Pages - with the combination of...
8
by: JT | last post by:
Hi, I have done a fair amount of style editing inline in ASP. I'm now using VS 2005 with a standard web project (not Web Application Project). This is my first foray into CSS in a style sheet...
3
by: Rich | last post by:
Hi, I want to use 2 master pages, one for the main part of the site, the other for the admin pages. They are quite similar, with many shared elements. Ideally I would like to have a parent...
4
by: Karthik | last post by:
I am converting all my asp.net pages to asp.net 2.0 for supporting master pages. I get the following error in runtime. A page can have only one server-side Form tag. Description: An...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
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
1
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...
0
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,...
0
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,...
0
jinu1996
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...

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.