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

DropDownList - Is it Possible to get at the TextField Contents

Is it possible to get at the TextField Contents of a SelectedValue in a
DropDownList in ASP ?

Thank You

May 30 '06 #1
7 1211
"mosscliffe" <pa***********@googlemail.com> wrote in message
news:11**********************@r44g2000cwb.googlegr oups.com...
Is it possible to get at the TextField Contents of a SelectedValue in a
DropDownList in ASP ?


SelectedItem.Text
May 30 '06 #2
Many thanks, you can't imagine how long I have been searching for this.
I came across all sorts of solutions involving JAVASCRIPT.

Thanks Again

May 30 '06 #3
"mosscliffe" <pa***********@googlemail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Many thanks, you can't imagine how long I have been searching for this.
I came across all sorts of solutions involving JAVASCRIPT.


No disrespect intended (and because we've had quite a few lengthy
discussions on this recently), but you could have found the answer on Google
in under a minute...

http://www.google.com/search?sourcei...+text+selected
May 30 '06 #4
I take your point, but I can assure you that I did try, mainly in this
group. I obviously did not have the right query text.

You probably can not imagine how hard it is trying to learn all about
this ASP.NET, when the bottom line is unless you know all the events
and their sequence, you will be frustrated every day.

I have come to ASP.NET as a result of purchasing the VWD Express book.
I thought it was at long last my way into doing data based websites.

Well it can, but then you want to do something a bit different, because
you are programming for the real world and then your headaches begin.

To be very facetious PostBack happens if you look away from the screen.

Today I discoverd that using a button to go to another page goes
through PageLoad of the calling Page. There will be a reason for this,
but it is not something that would be obvious to a beginner.

Another frustration today - I am trying to use FilterExpression on a
DataSource, fine it works, when I end up having to programmatically
enter the expression - but guess what - it keeps getting cleared. It
is probably me, although I can't see where - but it is bound to have
something to do with PostBack.

And as for the 76 ways of either specyfying or entering parameters -
don't get me started. The answer is probably some sort of list hidden
in your own control, but that will be in October's list of new bits to
find out about.

I gave myself a mark out of a hundred about 3 weeks ago, based on my
competence level with all this VB2005, ASp.NET etc - it was 22% and
that was based on doing some VBASIC years ago and a working knowledge
of HTML 3. I would say I have progressed to about 26% That is a gain
of 4% in three weeks. Now I know I am not stupid, because in my day I
was a Senior System Programmer on IBM mainframes, but this is the
steepest learning curve I have ever encountered.

Remember when Windows first came to our knowledge it was Windows 3 and
about 4 years before any decent software came. The learning curve in
those days was very high, but today it is much higher and the hardest
and most frustrating part is you just get to a level of competence and
'Bill' moves the GoalPosts and at the end of the day, it is mainly just
making things 'Prettier'. I have quite a reasonably quick machine, but
it just crawls with this VWD Express RANTS OVER

So, thank you again for your help, but be patient there is so much to
learn and almost every task has 20 ways of achieving it. Most of the
time one is just overwhelmed by the solutions, that one can not see the
simple answer.

Tim

May 30 '06 #5
"mosscliffe" <pa***********@googlemail.com> wrote in message
news:11**********************@y43g2000cwc.googlegr oups.com...
I take your point, but I can assure you that I did try, mainly in this
group. I obviously did not have the right query text.
I guess not!
You probably can not imagine how hard it is trying to learn all about
this ASP.NET, when the bottom line is unless you know all the events
and their sequence, you will be frustrated every day.
LOL! Nobody was born knowing the .NET Framework! I reckon I know about 10%
of it really well. If you do a search on the history of this newsgroup,
you'll see that I ask about half as many questions as I answer.
Well it can, but then you want to do something a bit different, because
you are programming for the real world and then your headaches begin.
Ah yes, but that's where a good grounding in the basics really helps. I'd
suggest either buying one of the WROX introductory books, or working through
the samples and tutorials in the SDK.
To be very facetious PostBack happens if you look away from the screen.
:-)
Today I discoverd that using a button to go to another page goes
through PageLoad of the calling Page. There will be a reason for this,
but it is not something that would be obvious to a beginner.
But only if you tell it to... If all you need a button for is to go to
another page, you don't need it do do a PostBack - just make it go to the
page client-side using JavaScript.
Another frustration today - I am trying to use FilterExpression on a
DataSource, fine it works, when I end up having to programmatically
enter the expression - but guess what - it keeps getting cleared. It
is probably me, although I can't see where - but it is bound to have
something to do with PostBack.
That's what ViewState is for.
So, thank you again for your help, but be patient there is so much to
learn and almost every task has 20 ways of achieving it. Most of the
time one is just overwhelmed by the solutions, that one can not see the
simple answer.


All I can do is to reiterate the importance of getting a structured
grounding in the Framework.
May 30 '06 #6
Mark,

Thanks for the tips - I will try to implement them. I have two WROX
(1000 pages each) books, but it does not make it any easier. What I
really need is a Quick Reference Card, where you look up DropDownList
and there are all the quick notes on the most common aspects of a
control or object. I am very slowly putting together my own.

I do have a problem with JavaScript, because I believe that www, should
have heralded in the very thin client and there is no need for it.
Plus I want to see my pages on my mobile phone and it does not support
JavaScript, plus Javascript is another source of possible hacking.

The most annoying part of all this is I can do most of what I want to
do in code, it's when I try to utilise the controls, I have most of my
problems, but I keep telling myself I will be more productive, if I can
master all these wonderful data controls.

Thank you very much for your answers and interest. I will try to make
a bit more progress and try harder to solve my queries.

Tim

May 30 '06 #7
"mosscliffe" <pa***********@googlemail.com> wrote in message
news:11**********************@j73g2000cwa.googlegr oups.com...
Thanks for the tips - I will try to implement them. I have two WROX
(1000 pages each) books, but it does not make it any easier. What I
really need is a Quick Reference Card, where you look up DropDownList
and there are all the quick notes on the most common aspects of a
control or object. I am very slowly putting together my own.
At the risk of repeating myself, you already have that - it's called the
MSDN Library. Here's the entry for the DropDownList class, which gives
examples on how to use it, and a full list of all its properties and
methods:
http://msdn.microsoft.com/library/de...ClassTopic.asp
I do have a problem with JavaScript, because I believe that www, should
have heralded in the very thin client and there is no need for it.
Ah, well that's a different argument altogether. You simply can't do web
development without at least some JavaScript...
plus Javascript is another source of possible hacking.
???
The most annoying part of all this is I can do most of what I want to
do in code, it's when I try to utilise the controls, I have most of my
problems, but I keep telling myself I will be more productive, if I can
master all these wonderful data controls.


Well indeed - that's why they're there. The GridView alone is worth
upgrading to v2.
May 31 '06 #8

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

Similar topics

1
by: Veverita | last post by:
Hi there I'm hoping that someone can help me with a question I have about javascript syntax. I got an html page that uploads an image and some text field to a database. What I'd like to do...
4
by: Benton | last post by:
Hi there, I am working with ASP.NET. I have a TextBox and DropDownList (for customer info input) that I need to tie up, i.e., when the DropDownList item changes (the customer name), the TextBox...
2
by: Ed | last post by:
Hi, I'm stuck at the moment trying to work out how to access the value of a textfield which gets added in a DIV element. I have functions to add and remove the textfields from the elements as...
0
by: huobazi | last post by:
I have many dropdownlist controls in my ascx (and use LoadControl in a aspx fiel) file,so i write a method "InitList(DropDownList list,string strsql,string TextField,string ValueField)" but when i...
2
by: Christian | last post by:
Hi, I have a datagrid on an ASP.NET page, which has a custom columntemplate. In this columntemplate I would like to have a DropDownList, which is shown, when the user edits the record....
6
by: Sebi | last post by:
Hello all, I'm thinking about overwriting the ListItem, so it can contain x additional values (not only one). Has anybody ever tried this? Has someone got an example (C#)? Can DropDownList...
1
by: Eric W. Holzapfel | last post by:
Hello Group, As far as a dropdownlist, is there a way to access both values for the datatextfield (like a name, etc) AND the value of the datavaluefield (like a record number, or index etc). ...
11
by: Santosh | last post by:
Dear all , i am writting following code. if(Page.IsPostBack==false) { try { BindSectionDropDownlist();
2
by: patro1234 | last post by:
Hi all Please help I am new to Java. While typing in a textfield, I want to transfer its contents to a file or display contents on a label by pressing the enter key. Can anybody please tell me...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.