How can I convert this to asp.net?
In my classic asp app, I have a markup page with a bunch of checkboxes. The checkbox control ID is bscv.

Once a user checks a box and clicks submit, the value is processed on the next page called next.asp.

Based on the value of the checked box, I display the correct dropdown.


I use the following code on next.asp to display the correct dropdown.

    If bsvc = "master" Then
        ' only master was checked
        ' "If the user checks only master checkbox, ...txtmaster with 2 options... is displayed."
    
    %>
    <select id="txtmaster" name="txtmaster">
         	<option value="">-Select a service-</option>
         	<option value="1">1</option>
         	<option value="2">2</option>
         </select>
    <%
    Elseif InStr(bsvc, "master") > 0 Then
        ' Master was checked, but something else was also checked
        ' display txtmaster with all 7 options dropdowon 1 and 2       
    
    %>
     <select id="txtmaster" name="txtmaster">
         	<option value="">-Select a service-</option>
         	<option value="1">1</option>
         	<option value="2">2</option>
         	<option value="3">3</option>
         	<option value="4">4</option>
         	<option value="5">5</option>
         	<option value="6">6</option>
         	<option value="7">7</option>
         </select>
    <%
    Elseif Len(bsvc) > 0 Then
        ' something was checked, but not master
        ' " display only dropdown with 3 to 7 ."
    
    %>
    <select id="txtmaster" name="txtmaster">
    	      <option value="">-Select a service-</option>
               <option value="3">3</option>
    	      <option value="4">4</option>
    	      <option value="4">5</option>
    	      <option value="5">5</option>
    	      <option value="6">6</option>
         	      <option value="7">7</option>
      </select>
    
    <%
    Else
        Response.Write "Error: You did not check any business serviced"
    End If
    %>

This works great.

Now, on asp.net, I am using multiview and I am trying to accomplish the same.

On view1, I have the checkboxes. When I click next, I will like to display the correct dropdownlist based on the value of checked box.

How can I accomplish something similar as the code above?

Thanking you in advance.
How can I convert this to asp.net?
===

In my classic asp app, I have a markup page with a bunch of checkboxes. The checkbox control ID is bscv.

Once a user checks a box and clicks submit, the value is processed on the next page called next.asp.

Based on the value of the checked box, I display the correct dropdown.


I use the following code on next.asp to display the correct dropdown.

    If bsvc = "master" Then
        ' only master was checked
        ' "If the user checks only master checkbox, ...txtmaster with 2 options... is displayed."
    
    %>
    <select id="txtmaster" name="txtmaster">
         	<option value="">-Select a service-</option>
         	<option value="1">1</option>
         	<option value="2">2</option>
         </select>
    <%
    Elseif InStr(bsvc, "master") > 0 Then
        ' Master was checked, but something else was also checked
        ' display txtmaster with all 7 options dropdowon 1 and 2       
    
    %>
     <select id="txtmaster" name="txtmaster">
         	<option value="">-Select a service-</option>
         	<option value="1">1</option>
         	<option value="2">2</option>
         	<option value="3">3</option>
         	<option value="4">4</option>
         	<option value="5">5</option>
         	<option value="6">6</option>
         	<option value="7">7</option>
         </select>
    <%
    Elseif Len(bsvc) > 0 Then
        ' something was checked, but not master
        ' " display only dropdown with 3 to 7 ."
    
    %>
    <select id="txtmaster" name="txtmaster">
    	      <option value="">-Select a service-</option>
               <option value="3">3</option>
    	      <option value="4">4</option>
    	      <option value="4">5</option>
    	      <option value="5">5</option>
    	      <option value="6">6</option>
         	      <option value="7">7</option>
      </select>
    
    <%
    Else
        Response.Write "Error: You did not check any business serviced"
    End If
    %>

This works great.

Now, on asp.net, I am using multiview and I am trying to accomplish the same.

On view1, I have the checkboxes. When I click next, I will like to display the correct dropdownlist based on the value of checked box.

How can I accomplish something similar as the code above?

Thanking you in advance.