473,395 Members | 1,457 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,395 software developers and data experts.

Retrieve web form name or id?

Hi guys,

is it possible to retrieve the name or the id of a form in an ASP.Net page?
In the code behind inside the page class, I would like to be able to
reference to that "form object" and to retrieve its name or id. is that at
all possible?

Cheers

Jul 21 '05 #1
4 1486
Edward,

me.name (VBNet)
this.name (C#)

I hope this helps?

Cor
"Edward Lim" <ed************@iinet.net.au>
Hi guys,

is it possible to retrieve the name or the id of a form in an ASP.Net
page?
In the code behind inside the page class, I would like to be able to
reference to that "form object" and to retrieve its name or id. is that at
all possible?

Cheers


Jul 21 '05 #2
JD
Probably something like:

MyPage.Form.UniqueId
Or
MyPage.Form.Name
"Edward Lim" <ed************@iinet.net.au> wrote in message
news:41**********************@per-qv1-newsreader-01.iinet.net.au...
Hi guys,

is it possible to retrieve the name or the id of a form in an ASP.Net page? In the code behind inside the page class, I would like to be able to
reference to that "form object" and to retrieve its name or id. is that at
all possible?

Cheers


Jul 21 '05 #3
JD
Oops forget the MyPage, just "Form.UniqueId" or "Form.Name".
"JD" <no@spam.com> wrote in message news:nLwjd.379639$D%.343549@attbi_s51...
Probably something like:

MyPage.Form.UniqueId
Or
MyPage.Form.Name
"Edward Lim" <ed************@iinet.net.au> wrote in message
news:41**********************@per-qv1-newsreader-01.iinet.net.au...
Hi guys,

is it possible to retrieve the name or the id of a form in an ASP.Net

page?
In the code behind inside the page class, I would like to be able to
reference to that "form object" and to retrieve its name or id. is that at all possible?

Cheers



Jul 21 '05 #4
Hi JD,

I can't seem to find the methods "UniqueId" or "Name" in the form class, and
I presume you actually meant

Request.Form.UniqueId and Request.Form.Name right?

Unless we are talking different version of Dot Net Framework. I am using 1.1
only.

Thanks and Regards,
Edward

"JD" <no@spam.com> wrote in message news:COwjd.70525$R05.10690@attbi_s53...
Oops forget the MyPage, just "Form.UniqueId" or "Form.Name".
"JD" <no@spam.com> wrote in message
news:nLwjd.379639$D%.343549@attbi_s51...
Probably something like:

MyPage.Form.UniqueId
Or
MyPage.Form.Name
"Edward Lim" <ed************@iinet.net.au> wrote in message
news:41**********************@per-qv1-newsreader-01.iinet.net.au...
> Hi guys,
>
> is it possible to retrieve the name or the id of a form in an ASP.Net

page?
> In the code behind inside the page class, I would like to be able to
> reference to that "form object" and to retrieve its name or id. is that at > all possible?
>
> Cheers
>
>
>
>
>



Jul 21 '05 #5

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

Similar topics

5
by: Edward Lim | last post by:
Hi guys, is it possible to retrieve the name or the id of a form in an ASP.Net page? In the code behind inside the page class, I would like to be able to reference to that "form object" and to...
2
by: Frank | last post by:
Can I do this? I add a session var in C# and ultimatly want to pass it into a vbscript client side activeX control. This is what I have so far but get " Object Required:'name2' " error. Can...
2
by: SueA | last post by:
Can anyone help me with the code to retrieve the name of the table that a control on a form (that's built off a query) refers to? For instance: qryMfrsAndBrands is based on the tables:...
6
by: ashok.dhananjeyan | last post by:
Hi, Actually , I wrote one javascript to retrieve the name of the form in one particular page. what i did in this page is, <script> function checkbutton() {
13
by: kev | last post by:
Hi all, I have created a database for equipments. I have a form to register the equipment meaning filling in all the particulars (ID, serial, type, location etc). I have two buttons at the end...
8
by: active | last post by:
Guess I'm looking for someone who likes to work difficult puzzles. I can't seem to ever retrieve a palette handle from the clipboard. Below is a simple test program that demonstrates the...
3
by: David | last post by:
Hi, I have some code in my form as follows, to display 1 to 20 additional sets of fields to enter guest information. I am not sure how to retrieve these guests info so that I can post the info...
21
by: giandeo | last post by:
Hello Experts. Is it possible to retrieve the value from a populated pull down menu from a database and then use that value to access the same database to get the related fields. Example: ...
12
lifeisgreat20009
by: lifeisgreat20009 | last post by:
I am a newbie to Struts and JSP...I have been working on the code below for 5 hours now..I googled a lot but couldn't get much help so finally I am here.. Hoping of getting my problem solved. Please...
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
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: 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
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
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.