Click here to Skip to main content
15,913,854 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Calling controller action method without passing parameter as query string MVC Pin
Afzaal Ahmad Zeeshan13-Dec-15 21:14
professionalAfzaal Ahmad Zeeshan13-Dec-15 21:14 
AnswerRe: Calling controller action method without passing parameter as query string MVC Pin
F-ES Sitecore13-Dec-15 22:56
professionalF-ES Sitecore13-Dec-15 22:56 
Questionhow to host asp.net website Pin
Member 1216284511-Dec-15 1:10
Member 1216284511-Dec-15 1:10 
AnswerRe: how to host asp.net website Pin
Richard MacCutchan11-Dec-15 2:09
mveRichard MacCutchan11-Dec-15 2:09 
AnswerRe: how to host asp.net website Pin
F-ES Sitecore11-Dec-15 2:27
professionalF-ES Sitecore11-Dec-15 2:27 
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 

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.