473,396 Members | 2,004 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,396 software developers and data experts.

aspnetform and master pages

bm
Does anyone know how to get a form's name to be anything other than
"aspnetform" when using master pages?

Thanks,

Brent

beta 2


Nov 19 '05 #1
2 3692
Name it whatever you want and try to access it by name using the FindControl
method. It sounds like you are reading the name used by the compiler which
can be read using Trace. I wouldn't have much more to say.

<%= Clinton Gallagher

"bm" <bm*****@bellsouth.net> wrote in message
news:Wc******************@bignews5.bellsouth.net.. .
Does anyone know how to get a form's name to be anything other than
"aspnetform" when using master pages?

Thanks,

Brent

beta 2

Nov 19 '05 #2
bm
Clinton,

Allow me to clarify.

The problem is that i have a lot of javascript that references the form
id/name -- on the client side. I prefer not to have to change the form
id/name all over the place if i can simply get asp.net to name it what i've
told it to name it.

I've got a form in a page that's using a master page. The form looks like
so:

<form runat=server id=MyForm>

what gets rendered on the client is:

<form id=aspnetForm action=somepage.aspx method=post>

thus all of my javascript that references MyForm.somejavascriptfct is
invalid.

So i dont think that a server side use of FindControl will help here.

Thanks,

Brent

"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:eR**************@TK2MSFTNGP10.phx.gbl...
Name it whatever you want and try to access it by name using the
FindControl method. It sounds like you are reading the name used by the
compiler which can be read using Trace. I wouldn't have much more to say.

<%= Clinton Gallagher

"bm" <bm*****@bellsouth.net> wrote in message
news:Wc******************@bignews5.bellsouth.net.. .
Does anyone know how to get a form's name to be anything other than
"aspnetform" when using master pages?

Thanks,

Brent

beta 2


Nov 19 '05 #3

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

Similar topics

1
by: Sasha | last post by:
Hi all asp.net proffesionals out there, How do you implement master pages in your applications? What libraries do you use and what have been your experience? Sasha
5
by: Michael Herman \(Parallelspace\) | last post by:
1. What are some compelling solutions for using Master/Content pages with Web Pages? 2. If a content area has a web part zone with web parts, what is the user experience like when "editting" the...
20
by: Alan Silver | last post by:
Hello, In classic ASP, I used to use two include files on each page, one before and one after the main content, to provide a consistent layout across a web site. That way I could just change the...
1
by: Alan Silver | last post by:
Hello, I am just experimenting with master pages, and am trying to add a content placeholder in the <head> section, so that individual pages can set their own page title and meta tags. The...
17
by: Rob R. Ainscough | last post by:
Again another simple concept that appears NOT to be intuitive or I'm just stupid. I've read the WROX book and the example doesn't actually show how the .master page links in the other content...
0
by: Mark Rae | last post by:
Hi, Is there anyway to force a master page to retain the name of the form as programmed instead of changing it to aspnetForm? According to all the articles I've found on this so far:...
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...
13
by: Kirk | last post by:
I have been reading Scott Allen's article on Master Pages (http:// odetocode.com/Articles/450.aspx) but I am having problems understanding a concept. Specifically, I have created a property...
4
by: =?Utf-8?B?Um9u?= | last post by:
How do I assign a name to the form element in a master page/ child page situation? I have included a name= in my form declaration...asp.net always changes it to aspnetForm. Is there a way to...
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:
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
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
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...
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
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...

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.