473,385 Members | 1,320 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.

Individual FormID on a web content page ?

If I want to set the form ID on a web content page, how can I do it ?

Cheers
Apr 18 '07 #1
4 1257
"Just Me" <news.microsoft.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
If I want to set the form ID on a web content page, how can I do it ?
If you're referring to the slightly puzzling renaming of the form in a
MasterPage / ContentPage scenario to "aspnetForm", then AFAIK you can't...
http://www.google.co.uk/search?hl=en...etform&spell=1
Apr 18 '07 #2
OK, thanks for that, yes that is exactly what I am referring to. The reason
im asking is that I want to make the css clear what I am referring to by
prefixing the selector with the form ID

#formname .className #id etc etc

I guess I can set this by coding it, but it seems a little odd that you cant
do it at design time.


"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:e5**************@TK2MSFTNGP04.phx.gbl...
"Just Me" <news.microsoft.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>If I want to set the form ID on a web content page, how can I do it ?

If you're referring to the slightly puzzling renaming of the form in a
MasterPage / ContentPage scenario to "aspnetForm", then AFAIK you can't...
http://www.google.co.uk/search?hl=en...etform&spell=1

Apr 18 '07 #3
"Just Me" <news.microsoft.comwrote in message
news:uv**************@TK2MSFTNGP05.phx.gbl...
OK, thanks for that, yes that is exactly what I am referring to. The
reason im asking is that I want to make the css clear what I am referring
to by prefixing the selector with the form ID

#formname .className #id etc etc

I guess I can set this by coding it, but it seems a little odd that you
cant do it at design time.
I totally agree with you! There are some parts of ASP.NET that are totally
unfathomable to me, and this is one of them... :-)

I've never been able to get a satisfactory explanation as to why forcing the
ID of a MasterPage's <asp:Formtag to 'aspnetForm' is a "good idea"...

However, what is definitely a "bad idea" is hard-coding DOM element names
into your CSS, especially with MasterPages (and other UserControls), because
of the way they are renamed dynamically at render-time...
Apr 18 '07 #4
Yes, I agree with you regarding those elements which are dynamically
renamed, they should be avoided. I have read somehwere that you should be
able to override the UniqueID property. Thats one possibly for tomorrow to
look at as its late here.

Perhaps I am missing the point with .net, but its seems that although we
have these wonderfull new schemes, it would sometimes appear that those who
design them dont have real world development experience.

Im sure this isnt true, but it feels that way sometimes.

Another example is the new naming convention which is like
myInstanceNameTextBox instead of txtTextBox. Well, I dont know about anyone
else, but to me this is a crazy way of doing it. When I type me. or this.
using prefixes I then get the ability to list all the available controls by
type ( which usually represent the majority of the members of the form
class. Now all the wizards use the new convention.

Im sure somone has a rational, but I dont know what it is. So far, I really
havent found that much in 2005 which I can trully say has made my life that
much easier. In fact its the opposite, the new controls dont really fit into
a DLL like before.
"Mark Rae" <ma**@markNOSPAMrae.netwrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
"Just Me" <news.microsoft.comwrote in message
news:uv**************@TK2MSFTNGP05.phx.gbl...
>OK, thanks for that, yes that is exactly what I am referring to. The
reason im asking is that I want to make the css clear what I am referring
to by prefixing the selector with the form ID

#formname .className #id etc etc

I guess I can set this by coding it, but it seems a little odd that you
cant do it at design time.

I totally agree with you! There are some parts of ASP.NET that are totally
unfathomable to me, and this is one of them... :-)

I've never been able to get a satisfactory explanation as to why forcing
the ID of a MasterPage's <asp:Formtag to 'aspnetForm' is a "good
idea"...

However, what is definitely a "bad idea" is hard-coding DOM element names
into your CSS, especially with MasterPages (and other UserControls),
because of the way they are renamed dynamically at render-time...

Apr 18 '07 #5

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

Similar topics

12
by: jonathan.beckett | last post by:
Hi All, For the past few months I have been working on an open source Apache/PHP/MySQL content management system - and have recently made it available for download. It's still very much a...
0
by: jonathan.beckett | last post by:
Hi All, I have just made version 0.4.8 of the PluggedOut CMS Content Management System available for download - it's free, and covered by the GPL. It's still very much a work in progress...
0
by: dinoo | last post by:
Hi, I need your help. I have different panes in a page for example, Header, Footer and content pane. But I would like to print only the content pane without header, footer. I do not want to...
0
by: Managed Code | last post by:
Hello All, Here is my issue and thanks in advance for any assistance. I have a base page with a dropdownlist that fires an event with the selected index. The content page catches the event and...
7
by: Rolf Welskes | last post by:
Hello, Master-Content in asp.net is very powerful. But: I have the following: One Master-Form. 30 Content-Forms which are the webpages used. Each of this content-forms must have own...
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
5
by: Nalaka | last post by:
Hi, I have a asp.net application with forms authentication enabled. Users create private (database driven) messages (pages; like a message board) that is only viewed by logged in users. Now I...
2
by: ericisjusteric | last post by:
I have a page with multiple iframes and need to have the user (ie6) be able to click a button to refresh any one of the iframes - but also to click another button at the top of the page to refresh...
3
by: smith1966 | last post by:
Please Help ... I need to reference a particular control that exists on a "tabbed" page eg TABCtl5 has 3 "pages" I have focus set to "TABClt5(Page-1)". I need to access the content of a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
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...
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: 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$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.