Ask a Question related to ASP.NET General, Design and Development.
-
David Wier #1
Re: <asp:DropDownList >
It just doesn't work like that - - you need to either bind data to the
datalist in code, or manually add the items, one by one, where you're doing
it.
How are you arriving at 'strItems'?
David Wier
[url]http://aspnet101.com[/url]
[url]http://aspexpress.com[/url]
"C" <c@nospam.com> wrote in message
news:07ad01c35d05$1ad4f710$a001280a@phx.gbl...> Hi,
>
> I have a drop down on my aspx as below.
>
> In between my opening and closing tags I render out the
> Items by populating a variable with the items.
>
>
> <asp:DropDownList id="selProf" runat=server>
> <%=strItems%>
> </asp:DropDownList>
>
> However, I get code block not supported. Why is this?
>
> Thanks,
> C
David Wier Guest
-
Dropdownlist Cascade
Hi Guys I have two dropdownlists (A and B) Both get their values from a database When i select a value from dropdownlist A It is suppose to do... -
DropDownList
Hi I looked everywhere to solve my problem but with no success. On page there is a dropdownlist control which is binded to a database. When I... -
Dropdownlist help please
Hi there, I'm a newbie to Dreamweaver MX 2004 and ASP.NET. I'm having trouble with a simple application that involves the user selecting a value... -
Add a dropDownList
Hello, Could you please give me an exemple how to add a dropdownlist in a datagrid. With this following code, I bind a datatable to a datagrid,... -
HELP with ASP.NET DropDownList Box ! : )
Hi all, I have a DropDownList on my page created in Design Time calledddlDate. In code, I do the following: 1 ddlDate = New DropDownList() <-... -
David Wier #2
Re: <asp:DropDownList >
For different ideas on how this works --- Check out:
[url]http://aspnet101.com/aspnet101/aspnet/codesample.aspx?code=ddlArrayList[/url]
[url]http://aspnet101.com/aspnet101/aspnet/codesample.aspx?code=ddlTextValue[/url]
[url]http://aspnet101.com/aspnet101/aspnet/codesample.aspx?code=otherddl[/url]
David Wier
[url]http://aspnet101.com[/url]
[url]http://aspexpress.com[/url]
"C" <c@nospam.com> wrote in message
news:07ad01c35d05$1ad4f710$a001280a@phx.gbl...> Hi,
>
> I have a drop down on my aspx as below.
>
> In between my opening and closing tags I render out the
> Items by populating a variable with the items.
>
>
> <asp:DropDownList id="selProf" runat=server>
> <%=strItems%>
> </asp:DropDownList>
>
> However, I get code block not supported. Why is this?
>
> Thanks,
> C
David Wier Guest
-
C #3
Re: <asp:DropDownList >
I called a Function which takes value from my database
and interweaves them with html and then populates my
variable strItems.
strItems will contain <asp:LIstItem>Test1</asp:ListItem>
etc etc.
????
bind data to the>-----Original Message-----
>It just doesn't work like that - - you need to eitherwhere you're doing>datalist in code, or manually add the items, one by one,>it.
>How are you arriving at 'strItems'?
>
>David Wier
>[url]http://aspnet101.com[/url]
>[url]http://aspexpress.com[/url]
>
>
>"C" <c@nospam.com> wrote in message
>news:07ad01c35d05$1ad4f710$a001280a@phx.gbl...>>> Hi,
>>
>> I have a drop down on my aspx as below.
>>
>> In between my opening and closing tags I render out the
>> Items by populating a variable with the items.
>>
>>
>> <asp:DropDownList id="selProf" runat=server>
>> <%=strItems%>
>> </asp:DropDownList>
>>
>> However, I get code block not supported. Why is this?
>>
>> Thanks,
>> C
>
>.
>C Guest



Reply With Quote

