Click here to Skip to main content
15,884,099 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionFLUX Pin
L Viljoen10-Dec-15 22:43
professionalL Viljoen10-Dec-15 22:43 
AnswerRe: FLUX Pin
Richard MacCutchan11-Dec-15 2:08
mveRichard MacCutchan11-Dec-15 2:08 
GeneralRe: FLUX Pin
L Viljoen14-Dec-15 20:35
professionalL Viljoen14-Dec-15 20:35 
Questionhosting aspx page as a domain Pin
Member 119197229-Dec-15 20:18
Member 119197229-Dec-15 20:18 
AnswerRe: hosting aspx page as a domain Pin
Wombaticus9-Dec-15 22:54
Wombaticus9-Dec-15 22:54 
GeneralRe: hosting aspx page as a domain Pin
Member 1191972210-Dec-15 17:51
Member 1191972210-Dec-15 17:51 
GeneralRe: hosting aspx page as a domain Pin
Member 1191972210-Dec-15 20:22
Member 1191972210-Dec-15 20:22 
QuestionPopulate a Dropdown list based on another one in VB.NET Pin
hm97-Dec-15 5:20
hm97-Dec-15 5:20 
C#
Hi

I want to be able to populate a drop down list based on the selection of another one or others using vb.net and also pass the value selected to another page or within the same page. for instance one drop down to select a country and a second one to populate the cities based on the first selection. I added one in the code below one below so need to add another one and populate it based on the selection in the first one. I am not using a Database. I just want the selection from the list as it is added manually.. Can you please advise of an example on how to achieve this or help exapand the code below . Thanks

<Script Runat="Server">
Sub Button_Click( s As Object, e As EventArgs )
if IsValid then  
response.redirect ("test.aspx?id=" & countries.Text & " ")
end if
end sub
</script>

    Select a Country <asp:dropdownlist id="countries" runat="server" 
="" appenddatabounditems="true">
    <asp:listitem>France
     <asp:listitem>Spain
      <asp:listitem>USA
       <asp:listitem>Italy
      <asp:listitem>England
     

    <asp:button id="Button1" runat="server" text="Search..." onclick="Button_Click">
    </form>

AnswerRe: Populate a Dropdown list based on another one in VB.NET Pin
Md. Marufuzzaman8-Dec-15 3:47
professionalMd. Marufuzzaman8-Dec-15 3:47 
Questionsql query with an alias having space in asp.net code behind Pin
Member 119197226-Dec-15 22:24
Member 119197226-Dec-15 22:24 
AnswerRe: sql query with an alias having space in asp.net code behind Pin
F-ES Sitecore6-Dec-15 22:34
professionalF-ES Sitecore6-Dec-15 22:34 
Questionproduct Photos are getting stretched when uploaded. Pin
S S.Afsar6-Dec-15 5:30
S S.Afsar6-Dec-15 5:30 
SuggestionRe: product Photos are getting stretched when uploaded. Pin
Richard MacCutchan6-Dec-15 6:04
mveRichard MacCutchan6-Dec-15 6:04 
AnswerRe: product Photos are getting stretched when uploaded. Pin
F-ES Sitecore6-Dec-15 22:36
professionalF-ES Sitecore6-Dec-15 22:36 
QuestionScanning a qr code from a sticker with barcode scanner in asp.net Pin
Member stephano4-Dec-15 5:35
Member stephano4-Dec-15 5:35 
QuestionRe: Scanning a qr code from a sticker with barcode scanner in asp.net Pin
Richard MacCutchan4-Dec-15 6:52
mveRichard MacCutchan4-Dec-15 6:52 
AnswerRe: Scanning a qr code from a sticker with barcode scanner in asp.net Pin
F-ES Sitecore6-Dec-15 22:41
professionalF-ES Sitecore6-Dec-15 22:41 
QuestionApplication Test in Window phone Pin
sanket1644-Dec-15 3:15
sanket1644-Dec-15 3:15 
Questioncase statement in sql command in aspx file Pin
Member 119197223-Dec-15 23:30
Member 119197223-Dec-15 23:30 
AnswerRe: case statement in sql command in aspx file Pin
Richard Deeming4-Dec-15 1:13
mveRichard Deeming4-Dec-15 1:13 
Questionhow to add jqgird when i selected a dropdown list Pin
Member 104505891-Dec-15 21:57
Member 104505891-Dec-15 21:57 
QuestionRe: how to add jqgird when i selected a dropdown list Pin
Richard MacCutchan1-Dec-15 22:11
mveRichard MacCutchan1-Dec-15 22:11 
QuestionAccess data from a Web forms Website using a Windows App Pin
jkirkerx1-Dec-15 10:18
professionaljkirkerx1-Dec-15 10:18 
AnswerRe: Access data from a Web forms Website using a Windows App Pin
Wombaticus2-Dec-15 1:01
Wombaticus2-Dec-15 1:01 
GeneralRe: Access data from a Web forms Website using a Windows App Pin
jkirkerx2-Dec-15 6:30
professionaljkirkerx2-Dec-15 6:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.