Click here to Skip to main content
15,891,248 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to change the value of dropdowm list items? Pin
jaimin851-Dec-14 23:46
jaimin851-Dec-14 23:46 
Questiongive me lots of best Ideas Pin
owais_ahmed_ansari11-Nov-14 1:38
owais_ahmed_ansari11-Nov-14 1:38 
AnswerRe: give me lots of best Ideas Pin
ZurdoDev11-Nov-14 1:49
professionalZurdoDev11-Nov-14 1:49 
AnswerRe: give me lots of best Ideas Pin
Dominic Burford11-Nov-14 4:33
professionalDominic Burford11-Nov-14 4:33 
AnswerRe: give me lots of best Ideas Pin
Jameel VM11-Nov-14 20:33
Jameel VM11-Nov-14 20:33 
AnswerRe: give me lots of best Ideas Pin
Shweta N Mishra11-Nov-14 22:31
professionalShweta N Mishra11-Nov-14 22:31 
AnswerRe: give me lots of best Ideas Pin
Dusara Maulik12-Nov-14 2:46
Dusara Maulik12-Nov-14 2:46 
QuestionWith MultiView control, page is blank Pin
samflex10-Nov-14 3:02
samflex10-Nov-14 3:02 
Greetings experts,

We would like to present a preview page to our users to verify information they had entered before submitting to the database.

I decided to implement this using MultiView control.

However, as soon as I added the MultiView bit, page is no longer display information for users to to complete unless I add ActiveViewIndex="0" to the markup.

Problem is I am already doing so on code behind.

Also, when I enter a value and click Continue>>, the next page is blank as well.

I know I am doing something silly. Your assistance is greatly appreciated.


PHP
form id="form1" runat="server" class="ajax_form  avia-builder-el-5  el_after_av_textblock  avia-builder-el-last " data-avia-form-id="1">

<asp:MultiView ID="myMultiView" runat="server">
   <asp:View ID="vwUserInput" runat="server">
      <!-- All user textboxes for input here -->
<p class=' form_element_half' id='element_avia_name_1'>
<label for="avia_name_1">Name <abbr class="required" title="required">*</abbr></label> 
<input name="avia_name_1" class="text_input is_empty" type="text" id="avia_name_1" value=""/></p>

<p class='  form_element_half_2  form_element_half' id='element_avia_e-mail_1'>
<label for="avia_e-mail_1">E-mail <abbr class="required" title="required">*</abbr></label> 
<input name="avia_e-mail_1" class="text_input is_email" type="text" id="avia_e-mail_1" value=""/></p>

<p class=' form_element_half' id='element_avia_company_name_1'><label for="phone_1">Phone</label> 
<input name="phone_1" class="text_input " type="text" id="avia_company_name_1" value=""/></p>

<p class='  form_element_half_2  form_element_half' id='eventdate_1'>
<label ID="lblDate" runat="server">Date of Event</label>
<asp:textbox class="text_input is_date"  runat="server" ID="txtDate" /></p>

<p class=' form_element_half' id='element_tripType_1'><label for="tripType_1">Trip Type <abbr class="required" title="required">*</abbr></label>
  <asp:DropdownList ID="tripType_1" runat="server" class="select ">
   <asp:ListItem value="">--Select One--</asp:ListItem>
   <asp:ListItem value="one_way_to_airport">One-way trip TO Airport</asp:ListItem>
   <asp:ListItem value="one_way_from_airport">One-way trip FROM Airport</asp:ListItem>
   <asp:ListItem value="round_trip_airport">Round trip involving Airport</asp:ListItem>
   <asp:ListItem value="one_way_no_airport">One-way trip NOT involving Airport</asp:ListItem>
   <asp:ListItem value="round_trip_no_airport">Round trip NOT involving Airport</asp:ListItem>
   <asp:ListItem value="hourly">Hourly/multi-stop/tours</asp:ListItem>
  </asp:DropdownList></p>

<p class='  form_element_half_2  form_element_half' id='element_avia_vprefferred_1'><label for="vpreferred_1">Vehicle Preferred <abbr class="required" title="required">*</abbr></label>
<asp:DropDownList ID="vpreferred_1" runat="server" class="select ">
   <asp:ListItem value="">--Select One--</asp:ListItem>
      <asp:ListItem value="Chrysler300">Lincoln Town Car (Sedan Black - 4 passenger)</asp:ListItem>
      <asp:ListItem value="SportUtilityVehicle">Sport Utility Vehicle</asp:ListItem>
      <asp:ListItem value="Stretch Limo : 6 Passenger">Stretch Limo : 6 Passenger</asp:ListItem>
      <asp:ListItem value="Stretch Limo : 8 Passenger">Stretch Limo : 8 Passenger</asp:ListItem>
      <asp:ListItem value="Stretch Limo : 10  Passenger">Stretch Limo : 10  Passenger</asp:ListItem>
</asp:DropDownList></p>
<p>
<label for="hearaboutus_1">How did you hear about us? </label>
<asp:RadioButtonList id="howyouheard" RepeatColumns = "2" RepeatDirection="Vertical" RepeatLayout="Table" runat="server">
				<asp:ListItem value="Facebook"> Facebook</asp:ListItem>
				<asp:ListItem value="Returning Customer"> Returning Customer</asp:ListItem>
				<asp:ListItem value="Referral"> Referral</asp:ListItem>
				<asp:ListItem value="Newspaper Ad"> Newspaper Ad</asp:ListItem>
				<asp:ListItem value="Business Card"> Business Card</asp:ListItem>
				<asp:ListItem value="Flyer"> Flyer</asp:ListItem>
				<asp:ListItem value="Car Magnet"> Car Magnet</asp:ListItem>
				<asp:ListItem value="YP.COM"> ALS.COM</asp:ListItem>
				<asp:ListItem value="google.com"> google.com</asp:ListItem>
				<asp:ListItem value="yahoo.com"> yahoo.com</asp:ListItem>
				<asp:ListItem value="Other"> Other</asp:ListItem>
    </asp:RadioButtonList></p>
    <asp:Button id="SubmitDonate" runat = "server" Text="Coninue>>"  onclick="SubmitDonate_Click" />
</asp:View>
   <asp:View ID="vwPreview" runat="server">
      <!-- Labels to preview input here -->

Please verify your donation:
          <br /> 
          <br /> 
          Name: 
          <asp:Label ID="lblPreviewDate" runat="server" />
          <br />
          <hr />

<asp:Button runat="server" ID="finsub" Text="OK" Width="100" onclick="SubmitDonate1_Click" /> 
<asp:Button runat="server" ID="cansub" Text="Cancel" Width="100"/>

   </asp:View>
</asp:MultiView>
</form>


Then codebehind:

Protected Sub Page_Load(sender As Object, e As EventArgs)
If Not IsPostBack Then
SetDefaultView()
End If

End Sub

Private Sub SetDefaultView()
myMultiView.ActiveViewIndex = 0
End Sub

Protected Sub SubmitDonate_Click(ByVal sender As Object, ByVal e As EventArgs)
myMultiView.ActiveViewIndex = 0
End Sub
Protected Sub SubmitDonate1_Click(ByVal sender As Object, ByVal e As EventArgs)
myMultiView.ActiveViewIndex = 1
lblPreviewDate.Text = txtDate.Text
End Sub
AnswerRe: With MultiView control, page is blank Pin
Richard Deeming10-Nov-14 4:27
mveRichard Deeming10-Nov-14 4:27 
GeneralRe: With MultiView control, page is blank Pin
samflex10-Nov-14 8:22
samflex10-Nov-14 8:22 
GeneralRe: With MultiView control, page is blank Pin
Richard Deeming10-Nov-14 8:43
mveRichard Deeming10-Nov-14 8:43 
GeneralRe: With MultiView control, page is blank Pin
samflex10-Nov-14 9:17
samflex10-Nov-14 9:17 
GeneralRe: With MultiView control, page is blank Pin
Richard Deeming10-Nov-14 10:16
mveRichard Deeming10-Nov-14 10:16 
GeneralRe: With MultiView control, page is blank Pin
samflex10-Nov-14 10:51
samflex10-Nov-14 10:51 
QuestionAdvice on moving towards .NET 4.0+ Pin
Danpeking9-Nov-14 22:29
Danpeking9-Nov-14 22:29 
AnswerRe: Advice on moving towards .NET 4.0+ Pin
Richard Deeming10-Nov-14 4:21
mveRichard Deeming10-Nov-14 4:21 
GeneralRe: Advice on moving towards .NET 4.0+ Pin
Danpeking10-Nov-14 4:40
Danpeking10-Nov-14 4:40 
AnswerRe: Advice on moving towards .NET 4.0+ Pin
jkirkerx10-Nov-14 9:42
professionaljkirkerx10-Nov-14 9:42 
GeneralRe: Advice on moving towards .NET 4.0+ Pin
Danpeking14-Nov-14 5:45
Danpeking14-Nov-14 5:45 
QuestionURL Re-writting in MVC4 Pin
Binod Kumar Mahto9-Nov-14 20:16
Binod Kumar Mahto9-Nov-14 20:16 
AnswerRe: URL Re-writting in MVC4 Pin
Matt U.11-Nov-14 7:51
Matt U.11-Nov-14 7:51 
Questionasp.net mvc and news Pin
Member 105297329-Nov-14 7:40
Member 105297329-Nov-14 7:40 
AnswerRe: asp.net mvc and news Pin
Anurag Gandhi13-Nov-14 17:00
professionalAnurag Gandhi13-Nov-14 17:00 
QuestionAsp.net (Vb.net ) post to Facebook page (not user status ) Pin
ccrccrdk9-Nov-14 6:40
ccrccrdk9-Nov-14 6:40 
QuestionTo display data of multiple tables Pin
Member 111616259-Nov-14 4:08
Member 111616259-Nov-14 4:08 

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.