|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| 04/23/2009 at 05:26AM PDT, ID: 24348617 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: |
'The button that launces the code, this is in the code behind
Public Sub saveProfilePeriod_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles saveProfilePeriodBtn.Click
Dim CP As New CarProfile
CP.ContractPeriodID = makeListExtender.SelectedValue
CP.Deposit = carDeposit.Text
CP.Ongoing = carOngoing.Text
DB.CarProfiles.InsertOnSubmit(CP)
DB.SubmitChanges()
newContractPeriodContainer.Update()
End Sub
This is the update panel with the cascading drop down in where I can not get the posted value
<asp:UpdatePanel ID="newContractPeriodContainer" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
<ContentTemplate>
<table class="formTable">
<tr>
<th>Contract Period: </th>
<td><div id="contractDropContainer">
<asp:DropDownList ID="ContractPeriodsDrop" runat="server" />
<cc1:CascadingDropDown ID="contractPeriodExtender" runat="server" />
</td>
<td><a href="javascript: hideContainer('newContractPeriod')">Add new contract period</a></td>
</tr>
<tr id="newContractPeriod" style="display:none">
<td></td>
<td>
<asp:TextBox ID="contractPerdiodText" runat="server" class="formSmallTextBox" /> months
<asp:button CssClass="btnSave" ID="saveContractPeriod" runat="server" OnClick="saveContractPeriod_Click" Text=" " />
</td>
<td></td>
</tr>
</table>
<table class="formTable">
<tr>
<th>Profile: </th>
<td><div id="profileDropContainer">
<asp:DropDownList ID="profilesList" runat="server">
</asp:DropDownList>
<cc1:CascadingDropDown ID="profileListExtender" ServicePath="~/AdminEventHandlers.asmx"
ServiceMethod="GetCarProfiles" ParentControlID="ContractPeriodsDrop" TargetControlID="profilesList" PromptText="Select Profile"
runat="server" Category="Profiles"></cc1:CascadingDropDown>
</div>
</td>
<td><a href="javascript: hideContainer('addProfileContainer')">Add new profile</a></td>
</tr>
<tr id="addProfileContainer" style="display:none">
<td></td>
<td>
<asp:TextBox ID="carDeposit" runat="server" class="formSmallTextBox" />+
<asp:TextBox ID="carOngoing" runat="server" class="formSmallTextBox" />
<asp:button CssClass="btnSave" ID="saveProfilePeriodBtn" runat="server" OnClick="saveProfilePeriod_Click" Text=" " />
</td>
<td></td>
</tr>
</table>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="saveContractPeriod" />
<asp:AsyncPostBackTrigger ControlID="saveProfilePeriodBtn" />
</Triggers>
</asp:UpdatePanel>
'This is the page init where the cascading drop down is loaded, this works from a webservice
Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init
contractPeriodExtender.ServicePath = "~/AdminEventHandlers.asmx"
contractPeriodExtender.TargetControlID = "ContractPeriodsDrop"
contractPeriodExtender.PromptText = "Select Contract Period"
contractPeriodExtender.Category = "ContractPeriods"
contractPeriodExtender.ServiceMethod = "GetContractPeriods"
End Sub
|
Advertisement