|
Done, done, done.
jkirkerx wrote: Sounds like it's a unpolished project, that needs lots of fixing.
That would be an understatement, it's what's better known as a death march. It's wrapped up in more layers than an onion and it's giving you a headache just trying to follow the logics.
It was the brainchild of a consultant that's not getting any more jobs from us.
I've luckily not been overly involved until now.
Wrong is evil and must be defeated. - Jeff Ello
Any organization is like a tree full of monkeys. The monkeys on top look down and see a tree full of smiling faces. The monkeys on the bottom look up and see nothing but assholes.
|
|
|
|
|
Jörgen Andersson wrote: death march
Hmm.
I did a PHP project last year this time like that. The program was perfect till I got to the stuff written past 2007.
Ok, I get it now, what the done, done, done means
I'd have to see the web page in action to be of any more help, and look at the HTML source to narrow it down.
|
|
|
|
|
Are you sure it's not one of the other built-ins, like an prompt() perhaps
C# has already designed away most of the tedium of C++.
|
|
|
|
|
No, I'm certainly not sure as DOM and javascript is not my thing at all. So please keep them coming.
Oh, I just checked the solution, and there are no prompts anywhere.
I've also noticed that it's only affecting exceptions from one project/class library.
Any exception in any of the other projects and the web site itself is behaving normally.
Wrong is evil and must be defeated. - Jeff Ello
Any organization is like a tree full of monkeys. The monkeys on top look down and see a tree full of smiling faces. The monkeys on the bottom look up and see nothing but assholes.
|
|
|
|
|
Is it all code, or webform using asp.net objects
Is the Ajax Control Toolkit referenced?
|
|
|
|
|
It's a Website project using some Ajax functionality referencing seven class libraries.
It's only exceptions that's thrown or passing through one specific project that pops up an alert if the exception isn't caught.
Wrong is evil and must be defeated. - Jeff Ello
Any organization is like a tree full of monkeys. The monkeys on top look down and see a tree full of smiling faces. The monkeys on the bottom look up and see nothing but assholes.
|
|
|
|
|
Hi,
I have given value="" for the initial value of dropdown.For the remaining values i have given 0 and 1.When i didn't select any value from dropdown it stores 0 in database and when i select the first value from drop down list it stores 1 in database.Can anyone please help me with this..
|
|
|
|
|
What exactly is your question?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I have given
<asp:dropdownlist id="ddlStatus" runat="server">
<asp:listitem text="--Select--" value="--Select--" selected="True">
<asp:listitem text="Active" value="1">
<asp:listitem text="Non-Adrenalin" value="0">
When i select In-Active from dropdownlist it saves 2 in the database table.But i have given value as 0 for In-Active.How to solve this??
|
|
|
|
|
Thnx RyanDev.I got it.
|
|
|
|
|
Please copy your code here for what you done to achieve this.
|
|
|
|
|
Thanx for your response.My code is
<asp:dropdownlist id="ddlstatus" runat="server">
<asp:listitem text="--Select--" value="--Select--" selected="True">
<asp:listitem text="Active" value="1">
<asp:listitem text="In-Active" value="0">
when i select "Active" from the dropdownlist, it saves the value '1' and for "In-Active" it saves '2' but i have given value '0' for In-Active.how to solve this?
|
|
|
|
|
try below change in your code:
<asp:DropDownList id="ddlstatus" runat="server">
<asp:ListItem Text="--Select--" Value="" Selected="True" />
<asp:ListItem Text="Active"Value="1" />
<asp:ListItem Text="In-Active" Value="2" />
at code side you have to use Convert.ToInt32(ddlstatus.SelectedValue) to get selected options value.
|
|
|
|
|
I have already given "Convert.ToInt32(ddlstatus.SelectedValue)" in code side.If i give value 2 for In-Active means, it will save 2 in DB ryt....but i want to save value 0 for In-Active in DB. Plz help
|
|
|
|
|
Thank you Dusara Maulik.I got it.
|
|
|
|
|
Selected.Index will give you 0,1,2,3
Selected.Value will give you "", "0", "1"
You should really use "--" for the Select Item Value, and then use the integers for actual values
And validate against "--" for the user to select something.
|
|
|
|
|
Thanks for considering my question.I got the answer
|
|
|
|
|
yes possible
you can check dropdowlist.selectedindex
EX: if(ddl.selectedindex==0)
value=0
else
1
|
|
|
|
|
i want to create a project on event reservation system asp.net using c#....
,so i want help from u that how can i create a best project????
,give me lots of ideas....
|
|
|
|
|
Step 0. Design out what you need.
Step 1. Write the code.
Step 2. Debug.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I'm not sure what you're asking for here. Do you have a specific question? It's hard enough to design an application with lots of information, never mind with no information.
"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare
Home | LinkedIn | Google+ | Twitter
|
|
|
|
|
Understand what are the requirements for the project needed and then start the development and let me know where you are stuck.
After understanding the requirements start the db design and the continue the front end development. Ofcourse we are here for you to help
|
|
|
|
|
I understand you want to have what kind of feature your event management system have and how you can make best out of it.
You should post what you already have in your mind and ask if anything more can be added or updated to it.
|
|
|
|
|
|
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.
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">
<!--
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
|
|
|
|