Master Pages and changin ID of form tag !!

M

madani

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
 
G

Guest

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!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top