Hi there. I am a little confused. SelectedValue is a property of ListBox and
dropdownlist. However it isnt in the list of properties in intellisence (html
view i am not talking about code behind where it does list it). So when I
create my asp:ListBox and try to set SelectedValue=( to a databind value) it
has a squiggly line under it and says 'not recognised property of list box'.
The thing is, it works, so i have ignored it, but I would quite like to know
why this happens? Is it something I've missed?
Thanks. 2 1600
Louise,
<asp:ListBox id="ListBox1" runat="server">
<asp:ListItem Value="test1">t est1</asp:ListItem>
<asp:ListItem Value="test2" Selected="True" >test2</asp:ListItem>
<asp:ListItem Value="test3">t est3</asp:ListItem>
</asp:ListBox>
forums, articles, news -> www.ProjectThunder.com
-Calvin Luttrell
"louise raisbeck" <lo************ @discussions.mi crosoft.com> wrote in message news:B6******** *************** ***********@mic rosoft.com... Hi there. I am a little confused. SelectedValue is a property of ListBox and dropdownlist. However it isnt in the list of properties in intellisence (html view i am not talking about code behind where it does list it). So when I create my asp:ListBox and try to set SelectedValue=( to a databind value) it has a squiggly line under it and says 'not recognised property of list box'. The thing is, it works, so i have ignored it, but I would quite like to know why this happens? Is it something I've missed? Thanks.
hi thanks calvin. I know that you can set an individual list item to be
selected, my question was more that if it works anyway, why does it put the
squiggly line under it in html view (I am setting the selectedvalue to a
datalist databind item), so in the definition of the dropdownlist i have
SelectedValue=' <%# DataBinder.Eval (Container.Data Item,
"genderid").ToS tring() %>'
It works, but always underlines 'SelectedValue' . SelectedValue IS a property
of Dropdownlist, so why doesnt it like it?
Thanks and happy new year.
"Calvin Luttrell" wrote: Louise,
<asp:ListBox id="ListBox1" runat="server"> <asp:ListItem Value="test1">t est1</asp:ListItem> <asp:ListItem Value="test2" Selected="True" >test2</asp:ListItem> <asp:ListItem Value="test3">t est3</asp:ListItem> </asp:ListBox>
forums, articles, news -> www.ProjectThunder.com
-Calvin Luttrell
"louise raisbeck" <lo************ @discussions.mi crosoft.com> wrote in message news:B6******** *************** ***********@mic rosoft.com... Hi there. I am a little confused. SelectedValue is a property of ListBox and dropdownlist. However it isnt in the list of properties in intellisence (html view i am not talking about code behind where it does list it). So when I create my asp:ListBox and try to set SelectedValue=( to a databind value) it has a squiggly line under it and says 'not recognised property of list box'. The thing is, it works, so i have ignored it, but I would quite like to know why this happens? Is it something I've missed?
Thanks This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Chris |
last post by:
Our company developed the last couple of years a development tool:
using this tool we configure and program (using SQL, and Java-Script)
very, very easy an application. The output of the effort is a
state-of-the art n-tier, j2ee, pure-java/xml-Application - but without
coding one single line java. And: the application looks really sexy.
Some of the mentioned features are patented in US. Everything goes
well, our customers loves this way of...
|
by: jbailo |
last post by:
Subject: dotnet is a farce.
You know, I was always impressed with
the way one could write a http program
with c# or java. To me, it showed how
'superior' these languages are because
they made it so 'easy' to
set up connection points, open a socket,
send the request.
|
by: Bruce Duncan |
last post by:
I know this has to be easy, but I can't seem to figure it out. I'm debuggin' someone elses code...
x="hello";
+x+"world"
....and I don't get it! What does the "+x+"world" do? If I alert(x) the only thing that comes out is "hello". I also wondered why it doesn't error without the ";" at the end of the line.
I appreciate the help...
-Bruce Duncan
|
by: Adam Clauss |
last post by:
I have a folder containing many subfolders (and subfolders and....) all containing various .cs files. Is there any "easy" way to
get them all added to the solution. Preferable would be that the folders are actually created in the Solution Explorer so that I
can find things easily.
Its easy to select multiple files out of a single folder, but not recursively into subfolders.
Any ideas?
--
Adam Clauss
|
by: Brian |
last post by:
Hello all,
I have an form to Enter a Name with letters from A to Z in buttons.
When you click a button, it should append the text associated with
that button to a text box.
Instead of having an EventHandler for every button with a click event
of:
| |
by: Adjo |
last post by:
Okay, I've seen all the examples of using comboboxes on webforms when
using simple values. And in the issue-tracker starterkit there is a way
to use comboboxes with id/value foreign keys in a smart (but hard!)
way.
I think every developer needs bound comboboxes to store foreign
keyvalues while displaying the user-friendly value as it is stored in
the foreign table, so there must be plenty of you that have found a way
to do so...
In a...
|
by: Ghislain Tanguay |
last post by:
I have a compiled vb.net app and I want to give the user a choice to launch
it from the start line command and pass it a parameter or not. How can I do
that in my code? Is it possible?
Ex. : MyApp.exe "Go"
|
by: Alex |
last post by:
Hi I'm wondering if there is an easy way to analize log files in php?
I'm sure there is a program somethere on the internet. If anyone can
point me to one it would be great.
I have a log file which contains regular entries as well as some XML
formatted info.
I need XML formatted stuff. Is there an easy way to pull xml data from
this file and process it?
P.S. I'm not very proficient with XML parsing and processing - any tips
|
by: erokar |
last post by:
Which tools would you use? I want the interface design to be as easy
and fast as possible, all ideology aside. I'm considering either
IronPython+Visual Studio or Python+Qt -- but I'm open for other
suggestions.
Visual Studio seems to offer the easiest solution, but is IronPython
stable enough? How easy is the IronPython/Visual Studi integration?
What about IronPython Studio?
|
by: Andy B |
last post by:
How hard/easy is it to use/learn VB compared to c#?
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |