|
[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. |
||
| Question |
|
[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: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: 116: 117: 118: 119: 120: 121: 122: |
//Main Code
<asp:UpdatePanel ID="UpdatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
DataKeyNames="SolutionID" DataSourceID="Solutions" CellPadding="4"
ForeColor="#333333" GridLines="None" Width="720px" AllowPaging="True"
PageSize="15" onselectedindexchanged="GridView1_SelectedIndexChanged">
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<Columns>
<asp:BoundField DataField="SolutionID" HeaderText="ID" InsertVisible="False"
ReadOnly="True" SortExpression="SolutionID" Visible="False" >
<ItemStyle Width="50px" />
</asp:BoundField>
<asp:BoundField DataField="SoftwareType" HeaderText="Software"
SortExpression="SoftwareType" >
<ItemStyle Width="150px" />
</asp:BoundField>
<asp:BoundField DataField="Problem" HeaderText="Problem"
SortExpression="Problem">
<ItemStyle Width="400px" />
</asp:BoundField>
<asp:BoundField DataField="Solution" HeaderText="Solution"
SortExpression="Solution" Visible="False">
<ItemStyle Width="150px" />
</asp:BoundField>
<asp:BoundField DataField="Date" DataFormatString="{0:d}" HeaderText="Date"
SortExpression="Date" />
<asp:CommandField ShowSelectButton="True" />
</Columns>
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView><br />
</ContentTemplate>
</asp:UpdatePanel>
<asp:Panel ID="pnlPopup" runat="server" style="display:none;"
HorizontalAlign="Left">
<asp:UpdatePanel ID="updPnlCustomerDetail" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Button ID="btnShowpopup" runat="server" style="display:none;" />
<cc1:ModalPopupExtender ID="mdlPopup" runat="server"
TargetControlID="btnShowPopup" PopupControlID="pnlPopup"
CancelControlID="btnClose" BackgroundCssClass="modalBackground"
PopupDragHandleControlID="panelDragHandle" DropShadow="True">
</cc1:ModalPopupExtender>
<asp:Panel runat="Server" ID="panelDragHandle" CssClass="drag">
Hold here to Drag this Box</asp:Panel>
<asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"
DataSourceID="Selection" Width="720px" CellPadding="4" ForeColor="#333333"
GridLines="None" onitemdeleted="DetailsView1_ItemDeleted"
onitemupdated="DetailsView1_ItemUpdated">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<Fields>
<asp:BoundField DataField="SolutionID" HeaderText="ID"
InsertVisible="False" ReadOnly="True" SortExpression="SolutionID" >
<HeaderStyle Height="20px" Width="100px" Font-Size="Small" />
<ItemStyle Height="20px" Font-Size="Small" />
</asp:BoundField>
<asp:BoundField DataField="SoftwareType" HeaderText="Software"
SortExpression="SoftwareType" >
<HeaderStyle Height="20px" Font-Size="Small" />
<ItemStyle Height="20px" Font-Size="Small" />
</asp:BoundField>
<asp:BoundField DataField="Problem" HeaderText="Problem"
SortExpression="Problem" >
<ControlStyle Height="180px" Width="600px" />
<ItemStyle Width="620px" />
</asp:BoundField>
<asp:BoundField DataField="Solution" HeaderText="Solution"
SortExpression="Solution" >
<ControlStyle Height="180px" Width="600px" />
</asp:BoundField>
<asp:BoundField DataField="Date" DataFormatString="{0:d}" HeaderText="Date"
SortExpression="Date" >
<HeaderStyle Height="20px" Font-Size="Small" />
<ItemStyle Height="20px" Font-Size="Small" />
</asp:BoundField>
<asp:CommandField ShowEditButton="True" ShowDeleteButton="True" ShowCancelButton="True"/>
</Fields>
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<HeaderTemplate>
</HeaderTemplate>
<EditRowStyle BackColor="#999999" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:DetailsView>
<div class="footer">
<asp:LinkButton ID="btnClose" runat="server" Text="Close" CausesValidation="False" />
</div>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
//Code Behind
protected void DetailsView1_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
{
GridView1.DataBind();
}
protected void DetailsView1_ItemDeleted(object sender, DetailsViewDeletedEventArgs e)
{
GridView1.DataBind();
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
// Set it to be true so it will render
this.DetailsView1.Visible = true;
// force databinding
this.DetailsView1.DataBind();
//Update the contents in the detail panel
this.updPnlCustomerDetail.Update();
// Show the modal Popup
this.mdlPopup.Show();
}
|
Advertisement
| Hall of Fame |