473,396 Members | 2,087 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.

URGENT help needed. Trying to get panels to work...

I downsized my code below...my text boxes work out okay with this
format, it is just the dropdownboxes that give me an error. I need this
to work so I can press on with other pressing things...thanks for the
help! Right now I am so far behind.

Compiler Error Message: BC30456: 'text' is not a member of
'System.Web.UI.WebControls.DropDownList'.
Line 29: litResponse.text+="<b>Invoice Location</b>:" &
txtInvLoc.text & "<br>"

Sub doInsert(Source as Object, E as EventArgs)
pnl2.visible="true"
litResponse.text+="<b><i>The information provided is now being
processed</b>.<p>"
litResponse.text+="<b>Invoice Location</b>:" & txtInvLoc.text &
"<br>"
End Sub

<td>
Invoice
Location&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<asp:dropdownlist id="txtInvLoc"
runat="server" Width="200px">
<asp:ListItem
Value="001">001</asp:ListItem>
<asp:ListItem
Value="002">002</asp:ListItem>
<asp:ListItem
Value="003">003</asp:ListItem>
</asp:dropdownlist>
<br />
</td>
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #1
2 948
GSK
You can't get the selected drop-down text or value this way. Try
txtInvLoc.SelectedValue, or txtInvLoc.SelectedItem.Text.

- gsk.

"TN Bella" <ti********@nav-international.com> wrote in message
news:eB***************@TK2MSFTNGP11.phx.gbl...
I downsized my code below...my text boxes work out okay with this
format, it is just the dropdownboxes that give me an error. I need this
to work so I can press on with other pressing things...thanks for the
help! Right now I am so far behind.

Compiler Error Message: BC30456: 'text' is not a member of
'System.Web.UI.WebControls.DropDownList'.
Line 29: litResponse.text+="<b>Invoice Location</b>:" &
txtInvLoc.text & "<br>"

Sub doInsert(Source as Object, E as EventArgs)
pnl2.visible="true"
litResponse.text+="<b><i>The information provided is now being
processed</b>.<p>"
litResponse.text+="<b>Invoice Location</b>:" & txtInvLoc.text &
"<br>"
End Sub

<td>
Invoice
Location&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
<asp:dropdownlist id="txtInvLoc"
runat="server" Width="200px">
<asp:ListItem
Value="001">001</asp:ListItem>
<asp:ListItem
Value="002">002</asp:ListItem>
<asp:ListItem
Value="003">003</asp:ListItem>
</asp:dropdownlist>
<br />
</td>
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #2
Thanks for the reply. Since I am using 1.0 .net framework I had to set
it up like this:

litResponse.text+="<b>Invoice Location</b>:" &
txtInvLoc.Items(txtInvLoc.SelectedIndex).Value & "<br>"

Have a great day!

*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

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

Similar topics

1
by: AndrewDucker | last post by:
I've just started working with some people that have an odd setup and I'm wondering if someone can point out a better way of doing things (or what I'm doing wrong). They have a base form class,...
3
by: Jonas | last post by:
Hi! I have aspx-page where I use multiple panels to make room for more controls than would otherwise fit onto one page. On submit, the controls on all panels, visible or not, should be validated...
4
by: Random | last post by:
The way I've built my page is to take the user through a multi-form process, only rendering those controls that are needed for each section. The ViewState is working the way I want it to,...
3
by: Bernie Walker | last post by:
Hello, I have a asp.net application that collects input from users and stores data in SQL database. One of the options of the application is to store file attachments. When the user wants to...
7
by: meenasamy | last post by:
Hi all, i need to create a function that takes three parameters( Original currency, needed currency, amount) i need to convert from the original currency to the needed currency the amount and...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
1
by: Anoop | last post by:
Hi, Requirement: Create Edit Forms dynamically i.e. at runtime in C#.net. The child contol(s) information e.g. no.of control, their type(lable/textbox), enabled/disabled etc. is coming from the...
0
by: VBLearner | last post by:
Hi I am taking intermediate level VB.Net class. Currently, we are doing the second review project which is quite big. It is a voting system where we display the participants for Candiadets and...
2
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi Guys, I have a real serious problem that stoped me doing any progress in my project. in one of my webpages I have a wizard of more then 13 pages and in every page some Ajax controls,...
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?
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.