|
[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: |
<asp:FormView ID="FormView1" runat="server" DataKeyNames="romID">
<EditItemTemplate>
<table class="tblborder">
<tr>
<td class="formlabel"><LABEL class="reqlabel" for="dropComponent">Component:</LABEL><span class="form-required">*</span></td>
<td align="left">
<asp:DropDownList ID="dropComponent" runat="server" DataSourceID="SqlDataSource01" DataTextField="orgName" DataValueField="orgID" AppendDataBoundItems="true" AutoPostBack="True" SelectedValue='<%# Bind("orgID") %>' OnSelectedIndexChanged="dropComponent_SelectedIndexChanged">
<asp:ListItem Value="">
-- Choose a component --
</asp:ListItem>
</asp:DropDownList>
</td>
<td><asp:RequiredFieldValidator runat="server" Display="Dynamic" ControlToValidate="dropComponent" ErrorMessage="<img src='images/common/required_trans.gif' align='absmiddle'>" />
</td>
</tr>
<tr>
<td class="formlabel"><LABEL class="reqlabel" for="dropApplication">Application:</LABEL><span class="form-required">*</span></td>
<td align="left">
<asp:DropDownList ID="dropApplication" runat="server" DataTextField="appName" DataValueField="appID" SelectedValue='<%# Bind("appID") %>' />
</td>
<td><asp:RequiredFieldValidator runat="server" Display="Dynamic" ControlToValidate="dropApplication" ErrorMessage="<img src='images/common/required_trans.gif' align='absmiddle'>" />
</td>
</tr>
</table>
</EditItemTemplate>
----- codebehind
Sub dropComponent_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs)
FormView1.ChangeMode(FormViewMode.Edit)
Dim dropApplication As DropDownList = CType(FormView1.FindControl("dropApplication"), DropDownList)
Dim dropComponent As DropDownList = CType(FormView1.FindControl("dropComponent"), DropDownList)
dropApplication.Items.Clear()
Dim objConn As SqlConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("APPdbConnectString").ConnectionString)
Dim cmdSQL As New SqlCommand("dbo.P_applications_show_active", objConn)
cmdSQL.CommandType = CommandType.StoredProcedure
cmdSQL.Parameters.Add(New SqlParameter("@orgID", SqlDbType.INT, 4)).Value = dropComponent.SelectedItem.Value
Dim sqlDR As SqlDataReader
Try
objConn.Open()
sqlDR = cmdSQL.ExecuteReader(CommandBehavior.CloseConnection)
dropApplication.DataSource = sqlDR
dropApplication.DataBind()
Catch myException As Exception
Message.InnerHtml = "<tr><th height=""25"" class=""thmsg"" colspan=""3"" nowrap=""nowrap"">" & myException.ToString() & "</th></tr>"
Finally
If Not sqlDR Is Nothing Then
sqlDR.Close()
End If
dropApplication.Items.Insert(0, New ListItem("-- Choose an application --", ""))
dropApplication.SelectedIndex = 0
End Try
End Sub
|
Advertisement
| Hall of Fame |