[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.

  • 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!

7.8

Duplicate Rendering in AJAX Update Panel - Visual Studio 2008

Asked by Jeffreymarcum in Visual Studio, Asynchronous Javascript and XML (AJAX), Microsoft Visual C#.Net

Tags: Visual Studio 2008 C#, IE 6, Firefox

I just migrated a VS2005 project to VS2008. I'm still using the 2.0 framework and version 1.0.11119.0 of the Ajax toolbox. I have a page that contains an update panel that contains several text and listview controls and a Gridview control. The ajax panel is configured to partial page render (ajax triggers) on 3 command buttons and a selection in a grid above this panel. The page is contained by a MasterPage.

When any of the command buttons or grid selection is fired in the update panel, the update panel renders an area in the bottom of the page twice. There are 4 buttons that are rendered and immediately below, there are the 4 exact buttons rendered. When I look at the I.E source, there is NOT any duplicate HTML for the duplicated command buttons. I did not have this problem when the project was still a VS2005 project.

Anyone know what might be going on? It seems it might have something to do with Ajax
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:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
365:
366:
367:
368:
369:
370:
371:
372:
373:
374:
375:
376:
377:
378:
379:
380:
381:
382:
383:
384:
385:
386:
387:
388:
389:
390:
391:
392:
393:
394:
395:
396:
397:
398:
399:
400:
401:
402:
403:
404:
405:
406:
407:
408:
409:
410:
411:
412:
413:
414:
415:
416:
417:
418:
419:
420:
421:
422:
423:
424:
425:
426:
427:
428:
429:
430:
431:
432:
433:
434:
435:
436:
437:
438:
439:
440:
441:
442:
443:
444:
445:
446:
447:
448:
449:
450:
451:
452:
453:
454:
455:
456:
457:
458:
459:
460:
461:
462:
463:
464:
465:
466:
467:
468:
469:
470:
471:
472:
473:
474:
475:
476:
477:
478:
479:
480:
481:
482:
483:
484:
485:
486:
487:
488:
489:
490:
491:
492:
493:
494:
495:
496:
497:
498:
499:
500:
501:
502:
503:
504:
505:
506:
507:
508:
509:
510:
511:
512:
513:
514:
515:
516:
517:
518:
519:
520:
521:
522:
523:
524:
525:
526:
527:
528:
529:
530:
531:
532:
<%@ Page Language="C#" MasterPageFile="~/SSPT.master" 
                       AutoEventWireup="true"
                       CodeFile="NDCFeeSchedMaint.aspx.cs" 
                       Inherits="NDCFeeSchedMaint" 
                       ClassName="NDCFeeSchedMaintClass"
                       Title="NDC Fee Schedule Maintenance"
                       EnableEventValidation="false" %>
 
<%@ MasterType VirtualPath="~/SSPT.master" %>
 
<asp:Content ID="NDCFeeScheduleMaint" ContentPlaceHolderID="SSPTMAIN" Runat="Server">
 
<script type="text/javascript">
var value1 = ""
 
// This function performs calls and postbacks to the server for the Search functionality
function CallTheServer(arg)
{
    var EQUALSAction = false;
    
    // ---- Search on Code Group (EQUALS ID Search) - call server CALLBACK method
    // Code Group ID
    var CodeGrpID = document.getElementById('<%= txtFeeSchedID.ClientID %>');
    if (CodeGrpID.value == '')
        {
            arg = '&'
        }
    else
        {
            //convert to uppercase
            arg = CodeGrpID.value.toUpperCase();
            EQUALSAction = true;
        }
 
    // Pending Approvals
    var lstPendAppr = document.getElementById('<%= lstPendAppr.ClientID %>');
    if (lstPendAppr.value == 'SELECT')
        {
            arg = arg + '\\&'
        }
    else
        {
            arg = arg + '\\' + lstPendAppr.value;
            EQUALSAction = true;
        }
 
    // Disapproved
    var lstDisAppr = document.getElementById('<%= lstDisAppr.ClientID %>');
    if (lstDisAppr.value == 'SELECT')
        {
            arg = arg + '\\&'
        }
    else
        {
            arg = arg + '\\' + lstDisAppr.value;
            EQUALSAction = true;
        }
    
    // Post the search parameters for callback or raise error
    if (EQUALSAction == true)
     {
        <%=strCallBackFunctionInvocation%>
     }
    else
    {
        __doPostBack('__Page', 'Status: Please enter at least one valid search parameter')
    }
    
}
 
// This function handles the callback from the server
function SearchReturn(arg, context)
{
    // Search results not found
    if (arg == 0)
    {
        var retPrompt= confirm("Search results not found. Would you like to create a Fee Schedule?");
        
        if (retPrompt== true)
        {
            <%=strPostBackFunctionInvocation1%>
        }
    }
    
    // New Fee Schedule
    else if (arg == 1)
    {
        <%=strPostBackFunctionInvocation2%>
    }
    
    // Error Message
    else 
    {
        __doPostBack('__Page', arg)
    }
   
}
    
// This function handles errors from from the callback from the server
function SearchReturnError(arg, context)
{
    srchmessage.innerText = 'Status: A search error has occured';
}
 
function popupFeeSchedNotes()
{
    var confirmWin = null;
    var arg;
    var FeeSchedID = document.getElementById('<%= txtFeeSchedID_Maint.ClientID %>');
    arg = FeeSchedID.value;
    var confirmURL = '<%=ResolveUrl("~/_NDC/FeeSchedMaint/NDCPopup_FeeSchedNotes.aspx?NDCScheduleID=' + arg + '")%>';
    confirmWin = window.open(confirmURL ,'anycontent','width=655,height=300,status');
}
 
function popupDistFeeSched()
{
    var confirmWin = null;
    var arg;
    var FeeSchedID = document.getElementById('<%= txtFeeSchedID_Maint.ClientID %>');
    arg = FeeSchedID.value;
    var confirmURL = '<%=ResolveUrl("~/_NDC/FeeSchedMaint/NDCPopup_DistFeeSched.aspx?NDCScheduleID=' + arg + '")%>';
    confirmWin = window.open(confirmURL ,'anycontent','width=940,height=300,status');
}
 
 
</script>
 
<ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></ajaxToolkit:ToolkitScriptManager>
 
<%--NDC Fee Schedule Search Options--%>
<div id="FeeSched_Search_Master">
    <div id="FeeSched_search_header" class="searchlayoutheader">
    <asp:Label ID="lblSrchOpt" runat="server" Font-Underline="True" Height="21px" Text="Search Options:" Width="117px" Font-Bold="True"></asp:Label>
    </div>
        <div id="FeeSched_search_div1" class="searchlayout_feesched">
            <asp:Label ID="lblCodeGrpID" runat="server" Text="Fee Schedule:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedID" runat="server" ToolTip="Enter a Fee Schedule to search on" MaxLength="4" TabIndex="1" CssClass="textbox_ndc_codegrpmaint"></asp:TextBox>&nbsp;
        </div>
        
        <div id="FeeSched_search_div2" class="searchlayout_feesched">
            <asp:Label ID="lblPendAppr" runat="server" Text="Pending Approval:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:DropDownList ID="lstPendAppr" runat="server" AutoPostBack="True" TabIndex="2" ToolTip="Select a Pending Fee Schedule" CssClass="listbox_ndc_codegprmaint"></asp:DropDownList>
        </div>
    
        <div id="FeeSched_search_div3" class="searchlayout_feesched">
            <asp:Label ID="lblDisapproved" runat="server" Text="Disapproved:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:DropDownList ID="lstDisAppr" runat="server" AutoPostBack="True" TabIndex="3" ToolTip="Select a Disapproved Fee Schedule" CssClass="listbox_ndc_codegprmaint"></asp:DropDownList>
        </div>
        
        <div id="FeeSched_search_div4" class="searchlayout_feesched">
            <div id="Code_search_div4_sub1" style="text-align:right">
            <asp:Button ID="btnSearch" runat="server" OnClientClick="CallTheServer(value1)" Text="Search" CssClass="button" TabIndex="4" />
            </div>
        </div>
        
        <div class="layout_status"><span id="srchmessage" runat="server" style="color:Red;" class="layout_status">Status: </span></div>
        <div id="Code_search_footer" class="searchlayoutfooter" style="text-align:center"><hr/></div> 
 
                    
 <%--Fee Schedule Search Results--%>  
        <div id="FeeSched_search_return_header" class="searchlayoutheader">
            <asp:Label ID="lblSrchRet" runat="server" Font-Underline="True" Height="21px" Text="Search Results:" Width="117px" Font-Bold="True"></asp:Label>&nbsp;
        </div>
            <asp:Panel ID="pnlFeeSchedSearch" runat="server" Height="100px" Width="920px">
                <GridExtension:FrozenGridView ID="GridFeeSchedSearchResults" 
                            CssClass="gridview" 
                            runat="server" 
                            AutoGenerateColumns="False" 
                            Allowsorting="True" 
                            OnSelectedIndexChanging="GridFeeSchedSearchResults_SelectedIndexChanging" 
                            Height="100px"
                            Scrolling="Vertical">
                <Columns>
                    <asp:BoundField DataField="NDC_SCHEDULE" HeaderText="Fee Schedule"  />
                    <asp:BoundField DataField="NDC_SCHED_NAME" HeaderText="Fee Schedule Name" />
                    <asp:BoundField DataField="EFFECTIVE_DATE" HeaderText="Effective Date" DataFormatString="{0:MM/dd/yyyy}" HtmlEncode="False" >
                        <itemstyle horizontalalign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="TERM_DATE" HeaderText="Term Date" DataFormatString="{0:MM/dd/yyyy}" HtmlEncode="False" >
                        <itemstyle horizontalalign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="STATUS" HeaderText="Status" >
                        <itemstyle horizontalalign="Center" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Last User Update" DataField="UPDATE_USER" >
                        <itemstyle horizontalalign="Center" />
                    </asp:BoundField>
                    <asp:CommandField ShowSelectButton="True" HeaderText="Select" >
                        <itemstyle horizontalalign="Center" />
                    </asp:CommandField>
                </Columns>
                <PagerSettings PageButtonCount="5" />
                </GridExtension:FrozenGridView>
            </asp:Panel>
        <div id="FeeSched_search_return_footer" class="searchlayoutfooter" style="text-align:center"><hr/>
        </div> 
    
    <%--Fee Schedule Maintenance--%>
    <asp:UpdatePanel ID="updpnlFeeSchedMaint" runat="server">
        <ContentTemplate>
        
        <%-- Fee Schedule Name Mask --%>
        <ajaxToolkit:MaskedEditExtender 
            ID="MaskedEditExtender3" 
            runat="server" 
            Mask="CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC" 
            Filtered="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz "
            PromptCharacter=" " 
            TargetControlID="txtFeeSchedName_Maint" 
            Enabled="True">
        </ajaxToolkit:MaskedEditExtender>
        
        <div id="FeeSched_Maint" class="searchlayoutheader">
            <asp:Label ID="lblGrpDetMaint" runat="server" Font-Underline="True" Height="21px" Text="Fee Schedule Maintenance:" Width="290px" Font-Bold="True"></asp:Label>
        </div>
        <div id="FeeSchedDetMaint_1" class="detaillayout">
            <asp:Label ID="lblCodeGrpID_Maint" runat="server" Text="Fee Schedule:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedID_Maint" runat="server" TabIndex="5" Enabled="False" ToolTip="Fee Schedule ID" CssClass="textbox_ndc_codegrpmaint"></asp:TextBox>
            <asp:Label ID="lblCodeGroupType_Maint" runat="server" Text="Effective Date:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedEffDate_Maint" runat="server" Enabled="False" TabIndex="7" ToolTip="Fee Schedule Effective Date" CssClass="textbox_ndc_codegrpmaint" ></asp:TextBox>
       </div>
 
        <div id="FeeSchedDetMaint_2" class="detaillayout">
            <asp:Label ID="lblCodeGrpName_Maint" runat="server" Text="Name:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedName_Maint" runat="server" TabIndex="6" Enabled="False" ToolTip="Fee Schedule Name" CssClass="textbox_ndc_codegrpmaint"></asp:TextBox>
            <asp:Label ID="lblCode_Maint" runat="server" Text="Term Date:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedTermDate_Maint" runat="server" ToolTip="Fee Schedule Term Date" TabIndex="8" Enabled="False" CssClass="textbox_ndc_codegrpmaint"></asp:TextBox>
        </div>
 
        <div id="FeeSchedDetMaint_3" class="detaillayout">
            <asp:Label ID="lblCodeGroupStatus1_Maint" runat="server" Text="Status:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedStatus_Maint" runat="server" Enabled="False" TabIndex="9" ToolTip="Fee Schedule Status" CssClass="textbox_ndc_codegrpmaint" ></asp:TextBox>
        </div>
 
        <div id="FeeSchedDetMaint_4" class="detaillayout">
            <div id="FeeSchedDetAction1" style="text-align:right">
                <asp:button ID="btnAddHdr" runat="server" Text="Add Detail" CssClass="button" TabIndex="12" Enabled="False" OnClick="btnAddHdr_Click"/>
            </div>
            <div id="FeeSchedDetAction2" style="text-align:right">
                <asp:button ID="btnNDCSched" runat="server" Text="NDC Schedule" CssClass="button" TabIndex="13" Enabled="False" OnClientClick="popupDistFeeSched();return false;" CausesValidation="False" />
            </div>
            <div id="FeeSchedDetAction3" style="text-align:right">
                <asp:button ID="btnNotes" runat="server" Text="Prior Notes" CssClass="button" TabIndex="14" Enabled="False" OnClientClick="popupFeeSchedNotes();return false;" CausesValidation="False" />
            </div>
        </div>
 
        <div id="FeeSchedDetMaint_5" class="detaillayout_s">
            <asp:Label ID="lblDesc" runat="server" Text="Description:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedDesc_Maint" runat="server" Width="535px" Enabled="False" TabIndex="10" MaxLength="255" ToolTip="Fee Schedule Description" CssClass="textbox_ndc_codegrpmaint"></asp:TextBox>
            <asp:Label ID="lblNotes" runat="server" Text="Notes:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedNote_Maint" runat="server" Width="535px" Height="60px" Enabled="False" TextMode="MultiLine" TabIndex="11" MaxLength="255" ToolTip="Fee Schedule Notes"></asp:TextBox>
        </div>
        <div id="FeeSched_detail_footer" class="searchlayoutfooter" style="text-align:center"><hr/></div> 
       
 <%--Fee Schedule Rule Maintenance--%>
    <div id="FeeScheduleRuleMaintHeader" class="searchlayoutheader">
    <asp:Label ID="Label1" runat="server" Font-Underline="True" Height="21px" Text="Fee Schedule Rule Maintenance:" Width="290px" Font-Bold="True"></asp:Label>
    </div>
        <div id="FeeScheduleRuleMaint1" class="detaillayout">
            <asp:Label ID="lblFeeSchedRuleCodeGrp" runat="server" Text="Code Group:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:DropDownList id="lstFeeSchedRuleCodeGrp_Maint" tabIndex="15" runat="server" AutoPostBack="True" Enabled="False" ToolTip="Fee Schedule Rule Code Group" CssClass="listbox_ndc_codegprmaint"></asp:DropDownList>
            <asp:Label ID="lblFeeSchedRuleEffDate" runat="server" Text="Rule Eff. Date:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedRuleEffDate_Maint" runat="server" ToolTip="Fee Schedule Rule Effective Date" TabIndex="18" Enabled="False" CssClass="textbox_ndc_codegrpmaint"></asp:TextBox>
       </div>
 
        <div id="FeeScheduleRuleMaint2" class="detaillayout">
            <asp:Label ID="lblFeeSchedRulePercent" runat="server" Text="Percentage:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedRulePrcnt_Maint" runat="server" TabIndex="16" Enabled="False" ToolTip="Fee Schedule Rule Percentage" CssClass="textbox_ndc_codegrpmaint"></asp:TextBox>
            <asp:Label ID="lblFeeSchedRuleTermDate" runat="server" Text="Rule Term Date:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:TextBox ID="txtFeeSchedRuleTermDate_Maint" runat="server" Enabled="False" TabIndex="19" ToolTip="Fee Schedule Rule Term Date" CssClass="textbox_ndc_codegrpmaint" ></asp:TextBox>
        </div>
 
        <div id="FeeScheduleRuleMaint3" class="detaillayout">
            <asp:Label ID="lblFeeSchedRuleSrcName" runat="server" Text="Source Name:" Width="108px" Height="21px" CssClass="label"></asp:Label>
            <asp:DropDownList id="lstFeeSchedRuleSrcName_Maint" tabIndex="17" runat="server" AutoPostBack="True" Enabled="False" ToolTip="Fee Schedule Rule Source Name" CssClass="listbox_ndc_codegprmaint"></asp:DropDownList>
        </div>
 
        <div id="FeeScheduleRuleMaint4" class="detaillayout">
            <div id="FeeScheduleRuleMaint5" style="text-align:right">
                <asp:button ID="btnAddRule" runat="server" Text="Add Rule" CssClass="button" TabIndex="11" Enabled="False" OnClick="btnAddRule_Click"/>
            </div>
            <div id="FeeScheduleRuleMaint6" style="text-align:right">
                <asp:button ID="btnReset" runat="server" Text="Reset" CssClass="button" TabIndex="12" Enabled="False" OnClick="btnReset_Click" OnClientClick="javascript:return confirm('Are you sure you want to reset the Fee Schedule Rule Maintenance area?')" />
            </div>
        </div>
    </div>
    <div>
        <div id="FeeScheduleRuleMaint7" class="searchlayoutfooter" style="text-align:center"><hr/>
            
        </div> 
        <asp:Panel ID="pnlFeeSchedRuleMaint" runat="server" Height="150px" Width="920px">
            <GridExtension:FrozenGridView ID="GridFeeSchedRuleMaintenance" 
                            CssClass="gridview" 
                            runat="server" 
                            AutoGenerateColumns="False" 
                            Allowsorting="True" 
                            PageSize="6" 
                            DataKeyNames="SequenceID,Exist,FeeSchedRuleID,FeeSchedRulePrecedence,FeeSchedRuleNDCSourceID" 
                            OnRowDeleting="GridFeeSchedRuleMaintenance_RowDeleting" 
                            Height="150px" 
                            Scrolling="Vertical">
                <Columns>
                    <asp:BoundField HeaderText="Code Group" DataField="FeeSchedRuleGRPId"  >
                        <itemstyle horizontalalign="Center" />
                        <headerstyle horizontalalign="Center" wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Percentage" DataField="FeeSchedRulePercent" DataFormatString="{0:F4}%" >
                        <itemstyle horizontalalign="Center" />
                        <headerstyle horizontalalign="Center" wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Source Name" DataField="FeeSchedRuleNDCSource" >
                        <itemstyle horizontalalign="Center" />
                        <headerstyle horizontalalign="Center" wrap="False" />
                    </asp:BoundField>
                    <asp:BoundField DataField="FeeSchedRuleEffDate" HeaderText="Rule Effective Date" DataFormatString="{0:MM/dd/yyyy}" >
                        <itemstyle horizontalalign="Center" />
                        <headerstyle horizontalalign="Center" wrap="False" />
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="Rule Term Date">
                        <itemstyle horizontalalign="Center" />
                        <itemtemplate>
                            <asp:TextBox 
                                ID="txtGridTermDate" 
                                runat="server" 
                                Text='<%# DataBinder.Eval(Container.DataItem,"FeeSchedRuleTermDate") %>' 
                            />
       
                            <ajaxToolkit:MaskedEditExtender 
                                ID="MaskedEditTest" 
                                runat="server"
                                TargetControlID="txtGridTermDate"
                                Mask="99/99/9999"
                                MessageValidatorTip="true"
                                OnFocusCssClass="MaskedEditFocus"
                                OnInvalidCssClass="MaskedEditError"
                                MaskType="Date"
                                DisplayMoney="Left"
                                AcceptNegative="Left" 
                            /> 
                        </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Delete">
                        <itemstyle horizontalalign="Center" />
                        <itemtemplate>
                            <asp:CheckBox id="chkDelete" runat="server" AutoPostBack="True" OnCheckedChanged="chkDelete_CheckedChanged" ></asp:CheckBox> 
                        </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Remove" ShowHeader="False">
                        <itemstyle horizontalalign="Center" />
                        <itemtemplate>
                            <asp:ImageButton id="imgbtnRemove" runat="server" CausesValidation="False" ImageUrl="~/Images/Common/Common_grid_delete.gif" CommandName="Delete"></asp:ImageButton> 
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Precedence">
                        <itemstyle horizontalalign="Center" />
                        <itemtemplate>
                            <asp:ImageButton id="imgbtnFeeSchedPrecUp" onclick="imgbtnFeeSchedPrecUp_Click" runat="server" Width="13px" Height="13px" ImageUrl="~/Images/Common/Common_grid_arrow_up.gif"></asp:ImageButton> <asp:ImageButton id="imgbtnFeeSchedPrecDown" onclick="imgbtnFeeSchedPrecDown_Click" runat="server" Width="13px" Height="13px" ImageUrl="~/Images/Common/Common_grid_arrow_down.gif"></asp:ImageButton> 
                        </itemtemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerSettings PageButtonCount="5" />
            </GridExtension:FrozenGridView>
        </asp:Panel>
        
        <div><span id="feeschedrulemessage" style="color:Red;" runat="server" class="layout_status">Status: </span></div>
 
        <div id="Div10" class="searchlayoutfooter" style="text-align:center"><hr/></div> 
 
 <%--Fee Schedule User Actions --%>
        <div id="ActionHeader" class="actionlayoutheader">
            <div id="Action_Spacer1" class="actionlayout"></div>
            <div id="Action_Div1" class="actionlayout">
                <asp:Button ID="btnSubmitApproval" CssClass="actionbutton" runat="server" Text="Submit for Approval" TabIndex="20" Enabled="False" OnClick="btnSubmitApproval_Click" />    
            </div>
            <div id="Action_Div2" class="actionlayout">
                <asp:Button ID="btnApproval" CssClass="actionbutton" runat="server" Text="Approve"  TabIndex="21" Enabled="False" OnClick="btnApproval_Click" />
            </div>
            <div id="Action_Div3" class="actionlayout">
                <asp:Button ID="btnDisapprove" CssClass="actionbutton" runat="server" Text="Disapprove"  TabIndex="22" Enabled="False" OnClick="btnDisapprove_Click" />
            </div>
            <div id="Action_Div4" class="actionlayout">
                <asp:Button ID="btnCancel" CssClass="actionbutton" runat="server" Text="Cancel"  TabIndex="23" Enabled="False" OnClick="btnCancel_Click" />
            </div>
        </div>
        
            <%--Calendar 1--%>
          <asp:Panel ID="pnlCalendarDate1" runat="server" style="display:none">
          <asp:UpdatePanel ID="upCalendarDate1" runat="server">
            <ContentTemplate>
            <asp:Calendar 
                ID="calSelection1" runat="server" 
                SelectedDate="<%# DateTime.Today %>" 
                VisibleDate="<%# DateTime.Today %>"
                OnSelectionChanged="calSelection1_SelectionChanged" 
                DayNameFormat="Shortest" BackColor="White" BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
                <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                <WeekendDayStyle BackColor="#ABDCF3" />
                <OtherMonthDayStyle ForeColor="#999999" />
                <NextPrevStyle Font-Size="8pt" ForeColor="Black" />
                <DayHeaderStyle BackColor="#D7E6F4" ForeColor="#336666" Height="1px" />
                <TitleStyle BackColor="#4168BD" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True"
                    Font-Size="10pt" ForeColor="Black" Height="25px" />
            </asp:Calendar>
          </ContentTemplate>
         </asp:UpdatePanel>
        </asp:Panel>
 
        <ajaxtoolkit:PopupControlExtender 
            ID="extCalendarDate1" 
            runat="server" 
            TargetControlID="txtFeeSchedTermDate_Maint" 
            PopupControlID="pnlCalendarDate1" 
            Position="Right" 
            CommitProperty="value">
        </ajaxtoolkit:PopupControlExtender>
        
         <%--Calendar 2--%>
        <asp:Panel ID="pnlCalendarDate2" runat="server" style="display:none">
          <asp:UpdatePanel ID="upCalendarDate2" runat="server" UpdateMode="Always">
            <ContentTemplate>
            <asp:Calendar 
                ID="calSelection2" runat="server" 
                SelectedDate="<%# DateTime.Today %>" 
                VisibleDate="<%# DateTime.Today %>"
                OnSelectionChanged="calSelection2_SelectionChanged" 
                DayNameFormat="Shortest" BackColor="White" BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
                <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                <WeekendDayStyle BackColor="#ABDCF3" />
                <OtherMonthDayStyle ForeColor="#999999" />
                <NextPrevStyle Font-Size="8pt" ForeColor="Black" />
                <DayHeaderStyle BackColor="#D7E6F4" ForeColor="#336666" Height="1px" />
                <TitleStyle BackColor="#4168BD" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True"
                    Font-Size="10pt" ForeColor="Black" Height="25px" />
            </asp:Calendar>
          </ContentTemplate>
         </asp:UpdatePanel>
        </asp:Panel>
 
        <ajaxtoolkit:PopupControlExtender 
            ID="extCalendarDate2" 
            runat="server" 
            TargetControlID="txtFeeSchedEffDate_Maint" 
            PopupControlID="pnlCalendarDate2" 
            Position="Right" 
            CommitProperty="value" >
        </ajaxtoolkit:PopupControlExtender>
        
         <%--Calendar 3--%>
        <asp:Panel ID="pnlCalendarDate3" runat="server" style="display:none">
          <asp:UpdatePanel ID="upCalendarDate3" runat="server" UpdateMode="Always">
            <ContentTemplate>
            <asp:Calendar 
                ID="calSelection3" runat="server" 
                SelectedDate="<%# DateTime.Today %>" 
                VisibleDate="<%# DateTime.Today %>"
                OnSelectionChanged="calSelection3_SelectionChanged" 
                DayNameFormat="Shortest" BackColor="White" BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
                <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                <WeekendDayStyle BackColor="#ABDCF3" />
                <OtherMonthDayStyle ForeColor="#999999" />
                <NextPrevStyle Font-Size="8pt" ForeColor="Black" />
                <DayHeaderStyle BackColor="#D7E6F4" ForeColor="#336666" Height="1px" />
                <TitleStyle BackColor="#4168BD" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True"
                    Font-Size="10pt" ForeColor="Black" Height="25px" />
            </asp:Calendar>
          </ContentTemplate>
         </asp:UpdatePanel>
        </asp:Panel>
 
        <ajaxtoolkit:PopupControlExtender 
            ID="extCalendarDate3" 
            runat="server" 
            TargetControlID="txtFeeSchedRuleEffDate_Maint" 
            PopupControlID="pnlCalendarDate3" 
            Position="Right" 
            CommitProperty="value" >
        </ajaxtoolkit:PopupControlExtender>
        
         <%--Calendar 4--%>
        <asp:Panel ID="pnlCalendarDate4" runat="server" style="display:none">
          <asp:UpdatePanel ID="upCalendarDate4" runat="server" UpdateMode="Always">
            <ContentTemplate>
            <asp:Calendar 
                ID="calSelection4" runat="server" 
                SelectedDate="<%# DateTime.Today %>" 
                VisibleDate="<%# DateTime.Today %>"
                OnSelectionChanged="calSelection4_SelectionChanged" 
                DayNameFormat="Shortest" BackColor="White" BorderColor="#3366CC" BorderWidth="1px" CellPadding="1" Font-Names="Verdana" Font-Size="8pt" ForeColor="#003399" Height="200px" Width="220px">
                <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                <WeekendDayStyle BackColor="#ABDCF3" />
                <OtherMonthDayStyle ForeColor="#999999" />
                <NextPrevStyle Font-Size="8pt" ForeColor="Black" />
                <DayHeaderStyle BackColor="#D7E6F4" ForeColor="#336666" Height="1px" />
                <TitleStyle BackColor="#4168BD" BorderColor="#3366CC" BorderWidth="1px" Font-Bold="True"
                    Font-Size="10pt" ForeColor="Black" Height="25px" />
            </asp:Calendar>
          </ContentTemplate>
         </asp:UpdatePanel>
        </asp:Panel>
 
        <ajaxtoolkit:PopupControlExtender 
            ID="extCalendarDate4" 
            runat="server" 
            TargetControlID="txtFeeSchedRuleTermDate_Maint" 
            PopupControlID="pnlCalendarDate4" 
            Position="Right" 
            CommitProperty="value" >
        </ajaxtoolkit:PopupControlExtender>
 
        </ContentTemplate>
        
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="GridFeeSchedSearchResults" EventName="SelectedIndexChanging" />
            <asp:AsyncPostBackTrigger ControlID="btnAddHdr" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnAddRule" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnReset" EventName="Click" />
        </Triggers>
    
    </asp:UpdatePanel>
             
</div> 
 
       
</asp:Content>
[+][-]08/26/08 11:42 AM, ID: 22317931Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/26/08 11:45 AM, ID: 22317961Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/26/08 11:51 AM, ID: 22318039Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/26/08 01:15 PM, ID: 22318936Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/26/08 01:20 PM, ID: 22319003Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/26/08 01:24 PM, ID: 22319032Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Visual Studio, Asynchronous Javascript and XML (AJAX), Microsoft Visual C#.Net
Tags: Visual Studio 2008 C#, IE 6, Firefox
Sign Up Now!
Solution Provided By: Jeffreymarcum
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20091021-EE-VQP-81 / EE_QW_2_20070628