Advertisement

05.15.2008 at 08:55AM PDT, ID: 23405675
[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.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

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!

Modal Popup Extender doesn't work

Tags: VB.NET AJAX
I have 2 gridviews on a page that work just as I need them to do, however when I add the ModalPopupExtender to the panel around the second gridview it doesn't show up on postback.  I am sure it is pretty simple to fix but after several hours of staring blankly at my screen and moving around panels, updatepanels and such, I can't figure it out.  

Your help is greatly appreciated!

Here is the codebehind:

Partial Class sdb_sdbSearch
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    End Sub
    Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged
        Dim db As New ComponentByUICDataContext
        Dim row As GridViewRow = GridView1.SelectedRow
        Dim txtUIC As String = row.Cells(3).Text
        Dim uicList = From cust In db.tb_customer_infos _
                      Where cust.UIC = txtUIC _
                      Select cust.UIC, cust.sdb_master_record, cust.UpdatedOn, cust.UpdatedBy
        GridView2.DataSource = uicList
        GridView2.DataBind()
        Me.GridView2_ModalPopupExtender.Show()
    End Sub
End Class

the CSS I am using on the page:
.modalBackground {
      background-color:Gray;
      filter:alpha(opacity=70);
      opacity:0.7;
}
.modalPopup
{
    background-color:#ffffdd;
    border-width:3px;
    border-style:solid;
    border-color:Gray;
    padding:3px;
    width:250px;
    z-index:1000;
}
.SHD {

      font-size: 10px;
      font-style: normal;
      font-weight: bold;
      color: #666666;
}

and the page code:
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:
<%@ Page Language="VB" MasterPageFile="~/TBMasterPage.Master" AutoEventWireup="false" CodeFile="sdbSearch.aspx.vb" Inherits="sdb_sdbSearch" title="Untitled Page" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="SHD">
<asp:HyperLink ID="HyperLink3" runat="server" ImageUrl="~/images/icons/search.gif" ToolTip="Perform another Search" NavigateUrl="~/sdb/default.aspx" /></div>
    <div align="center"><asp:Image ID="Image1" ImageUrl="~/images/sdb_searchbyUIC.png" runat="server" /></div>
    <br />
<asp:Label ID="label_1" runat="server" CssClass="SHD">Enter a few characters of the UIC</asp:Label>
    <br />
    <asp:Table ID="Table1" runat="server">
        <asp:TableRow>
            <asp:TableCell>
                <asp:TextBox ID="txtuicSearch" runat="server" Width="75px" />
            </asp:TableCell>
            <asp:TableCell>
                <asp:Button ID="search1" runat="server" Text="Search" />
            </asp:TableCell>
            <asp:TableCell>
                <asp:UpdateProgress DisplayAfter="150" ID="UpdateProgress1" runat="server" DynamicLayout="true">
                    <ProgressTemplate>
                        <img alt="Loading" src="../images/loading.gif"  />
                    </ProgressTemplate>
                </asp:UpdateProgress>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    
    <cc1:AutoCompleteExtender ID="AutoCompleteExtender1" Enabled="true" 
                              MinimumPrefixLength="2" EnableCaching="true" 
                              runat="server" ServiceMethod="GetUICList" 
                              ServicePath="~/uicAutoComplete.asmx" TargetControlID="txtuicSearch"
                              CompletionInterval="250" />
 
    
            <asp:SqlDataSource ID="sqlDsCustomers" runat="server" ConnectionString="<%$ ConnectionStrings:ToolBox %>"
                SelectCommand="SELECT B.SDB_ID, A.COMMAND, A.UIC, A.UNIT, C.STAMIS_NAME , D.STAMIS_VERSION, C.LIN
                FROM TB_CUSTOMER_INFO A INNER JOIN SDB_MASTER_RECORD B ON A.CUSTOMERID = B.CUSTOMERID 
                JOIN STAMIS C ON B.STAMIS_ID = C.STAMIS_ID 
                JOIN STAMIS_VERSION D ON B.STAMIS_VER_ID = D.VER_ID
                WHERE UIC LIKE @UIC + '%'
                ORDER BY A.COMMAND, C.STAMIS_NAME">
                <SelectParameters>
                    <asp:ControlParameter ControlID="txtUICSearch" Name="UIC" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:GridView ID="GridView1" runat="server" SelectedIndex="0" DataSourceID="sqlDsCustomers" AllowPaging="true" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" AutoGenerateSelectButton="true">
            </asp:GridView>
            <br />
        <asp:Panel ID="Panel1" runat="server" CssClass="modalPopup" Style="display: none" Width="500px" Height="500px">
                <asp:GridView ID="GridView2" runat="server" CssClass="SHD" />
                <asp:Button ID="btnOK" runat="server" Text="Close" />
            </asp:Panel>
            <cc1:ModalPopupExtender ID="GridView2_ModalPopupExtender" runat="server" 
                    BackgroundCssClass="modalBackground" Enabled="True" 
                    OkControlID="btnOK" PopupControlID="Panel1" TargetControlID="Button1" />
            <asp:Button ID="Button1" runat="server" Visible="false" />
 
</asp:Content>
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: cwickens
Solution Provided By: cwickens
Participating Experts: 1
Solution Grade: A
Views: 132
Translate:
Loading Advertisement...
05.15.2008 at 09:36AM PDT, ID: 21575541

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 09:39AM PDT, ID: 21575585

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 09:44AM PDT, ID: 21575642

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 10:12AM PDT, ID: 21575952

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.15.2008 at 10:43AM PDT, ID: 21576305

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628