Advertisement

03.18.2008 at 03:05AM PDT, ID: 23249642
[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!

Onclick event not firing when using update panel in ajax tab control

Tags: asp.net c# studio 2008 ajax
Hi

For some reason I cannot get a button onclick event to fire when using update panel and ajax tab control.
What am I doing wrong?



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:
<ajaxToolkit:TabContainer ID="tbContainerCreateJobRequest" runat="server" ActiveTabIndex="0"
            Width="100%" Height="600px" OnActiveTabChanged="tbContainerCreateJobRequest_ActiveTabChanged">
            <ajaxToolkit:TabPanel ID="tbSearch" runat="server" HeaderText="Search">
                <ContentTemplate>
                    <div class="row">
                        <span class="dlabel">Surname: </span><span class="formleftpadding">
                            <asp:TextBox ID="TextBox2" runat="server" Width="30%"></asp:TextBox></span></div>
                    <div class="row">
                        <span class="dlabel">Firstname: </span><span class="formleftpadding">
                            <asp:TextBox ID="TextBox3" runat="server" Width="30%"></asp:TextBox></span></div>
                    <div class="row">
                        <span class="dlabel">Post Code: </span><span class="formleftpadding">
                            <asp:TextBox ID="TextBox4" runat="server" Width="30%"></asp:TextBox></span></div>
                    <div class="row">
                        <span class="dlabel">1st Line Address: </span><span class="formleftpadding">
                            <asp:TextBox ID="txtFirstLineAddress" runat="server" Width="30%"></asp:TextBox></span></div>
                    <div class="row">
                        <span class="dlabel">Search: </span><span class="formleftpadding">
                            <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click">
                            </asp:Button><asp:Button ID="btnReset" runat="server" OnClick="btnReset_Click" Text="Reset">
                            </asp:Button><asp:Button ID="btnNewClient" runat="server" Text="New Service User"
                                OnClick="btnNewClient_Click"></asp:Button></span></div>
                    <hr />
                    <hr />
                    <p>
                        <asp:GridView ID="grdSearchResults" runat="server" EmptyDataText="No search results - do you want to create a new service user?"
                            AutoGenerateColumns="False" Width="50%" Caption="Service User Search Results"
                            SkinID="GridViewSkin" OnSelectedIndexChanged="grdSearchResults_SelectedIndexChanged"
                            DataKeyNames="PropertyID" AllowSorting="True" AllowPaging="True">
                            <Columns>
                                <asp:BoundField DataField="PropertyID" Visible="False"></asp:BoundField>
                                <asp:BoundField DataField="ClientID" Visible="False"></asp:BoundField>
                                <asp:BoundField DataField="Forename" HeaderText="Forename" SortExpression="Forename">
                                </asp:BoundField>
                                <asp:BoundField DataField="Surname" HeaderText="Surname" SortExpression="Surname">
                                </asp:BoundField>
                                <asp:BoundField DataField="Address1" HeaderText="Address 1" SortExpression="Address1">
                                </asp:BoundField>
                                <asp:BoundField DataField="PostCode" HeaderText="Post Code" SortExpression="PostCode">
                                </asp:BoundField>
                                <asp:HyperLinkField DataNavigateUrlFields="PropertyID,ClientID" DataNavigateUrlFormatString="~/WebForms/CreateJobRequest.aspx?id={0}&clientid={1}"
                                    Text="Select Property"></asp:HyperLinkField>
                            </Columns>
                            <EmptyDataRowStyle BackColor="LightBlue" ForeColor="Red" />
                            <EmptyDataTemplate>
                                No records have been found for the search criteria entered - you can create a new
                                service user by clicking here.</EmptyDataTemplate>
                        </asp:GridView>
                    </p>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="Service User Details">
                <ContentTemplate>
                    <div class="ListUsers">
                        <div class="row">
                            <span class="dlabel">Property Type: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtPropertyType" runat="server" Width="60%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">1st Line Address: </span><span class="formleftpadding">
                                <asp:TextBox ID="txt1stLineAddress" runat="server" Width="60%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">2nd Line Address: </span><span class="formleftpadding">
                                <asp:TextBox ID="txt2ndLineAddress" runat="server" Width="60%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Post Code: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtPostCode" runat="server" Width="60%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Area: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtArea" runat="server" Width="60%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Ward: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtWard" runat="server" Width="60%"></asp:TextBox></span></div>
                        <hr />
                        <p>
                            Service User Details
                        </p>
                        <hr />
                        <div class="row">
                            <span class="dlabel">Tenure: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtTenure" runat="server" Width="30%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Title: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtTitle" runat="server" Width="30%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Firstname: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtFirstName" runat="server" Width="60%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Surname: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtSurname" runat="server" Width="60%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Gender: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtGender" runat="server" Width="30%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">DOB: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtDob" runat="server" Width="20%"></asp:TextBox><ajaxToolkit:CalendarExtender
                                    ID="txtDob_CalendarExtender" runat="server" Enabled="True" TargetControlID="txtDob">
                                </ajaxToolkit:CalendarExtender>
                                <asp:CompareValidator ID="CompareValidator1" runat="server" ErrorMessage="Enter a valid date!"
                                    ControlToValidate="txtDob" Operator="DataTypeCheck" Type="Date">*</asp:CompareValidator></span></div>
                        <div class="row">
                            <span class="dlabel">Ethnicity: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtEthnicity" runat="server" Width="30%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Contact Number: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtContactNumber" runat="server" Width="30%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Alternate Contact Number: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtAlternateContactNumber" runat="server" Width="30%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Mobile Number: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtMobile" runat="server" Width="30%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel">Email Contact: </span><span class="formleftpadding">
                                <asp:TextBox ID="txtEmail" runat="server" Width="40%"></asp:TextBox></span></div>
                        <div class="row">
                            <span class="dlabel"></span><span class="formleftpadding">
                                <br />
                                <br />
                            </span>
                        </div>
                    </div>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
            <ajaxToolkit:TabPanel ID="tpJob" runat="server" HeaderText="Job Request">
                <HeaderTemplate>
                    Job Request
                </HeaderTemplate>
                <ContentTemplate>
                    <div class="row">
                        <span class="dlabel">Job Request for:</span><span class="formleftpadding">
                            <asp:TextBox ID="txtProperty" runat="server" Width="70%"></asp:TextBox></span></div>
                    <div class="row">
                        <span class="dlabel">Budget Code:</span><span class="formleftpadding">
                            <subsonic:DropDown ID="ddlBudgetCode" runat="server" TableName="BudgetCode" PromptValue="0"
                                PromptText="-- Select Budget Code --" ShowPrompt="True" Width="20%" OrderField=""
                                ProviderName="" TextField="" ValueField="" WhereField="" WhereValue="">
                            </subsonic:DropDown>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="ddlBudgetCode"
                                ErrorMessage="Enter a budget code" InitialValue="0">*</asp:RequiredFieldValidator></span></div>
                    <div class="row">
                        <span class="dlabel">Order Number:</span><span class="formleftpadding">
                            <asp:TextBox ID="txtOrderNumber" runat="server" Width="70%"></asp:TextBox></span></div>
                    <div class="row">
                        <span class="dlabel">Work Required:</span> <span class="formleftpadding">
                            <asp:TextBox ID="txtWorkRequired" runat="server" Width="70%" Height="84%"></asp:TextBox></span></div>
                    <div class="row">
                        <span class="dlabel">Referred By:</span><span class="formleftpadding">
                            <asp:CheckBox ID="chkAdaptation" runat="server" Text="Adaptation" /><ajaxToolkit:MutuallyExclusiveCheckBoxExtender
                                ID="checkAdaptaion_mutual_exclusion" runat="server" Enabled="True" Key="Referral"
                                TargetControlID="chkAdaptation">
                            </ajaxToolkit:MutuallyExclusiveCheckBoxExtender>
                            <asp:CheckBox ID="chkReferral" runat="server" Text="Handyperson Referral (over 60 only)" /><ajaxToolkit:MutuallyExclusiveCheckBoxExtender
                                ID="referral_extender" runat="server" Enabled="True" Key="Referral" TargetControlID="chkReferral">
                            </ajaxToolkit:MutuallyExclusiveCheckBoxExtender>
                        </span>
                    </div>
                    <div class="row">
                        <span class="dlabel">Priority:</span><span class="formleftpadding">
                            <asp:CheckBox ID="chkUrgent" runat="server" Text="Urgent" /><asp:CheckBox ID="chkRoutine"
                                runat="server" Text="Routine" /></span></div>
                    <div class="row">
                        <span class="dlabel">OT/OTA:</span><span class="formleftpadding">
                            <asp:TextBox ID="txtOTOTA" runat="server" Width="70%" Height="50%"></asp:TextBox></span></div>
                    <div class="row">
                        <span class="dlabel">Tel No:</span><span class="formleftpadding">
                            <asp:TextBox ID="TextBox1" runat="server" Width="70%" Height="50%"></asp:TextBox></span></div>
                    <div class="row">
                        <span class="dlabel">Submit Job Request:</span><span class="formleftpadding">
                            <asp:Button ID="Button1" runat="server" Text="Button" /></span></div>
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: mugsey
Solution Provided By: renjurdevan
Participating Experts: 1
Solution Grade: A
Views: 343
Translate:
Loading Advertisement...
03.18.2008 at 04:28AM PDT, ID: 21149828

Rank: Guru

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...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
03.18.2008 at 04:28AM PDT, ID: 21149828

Rank: Guru

Make sure that RequiredFieldValidator has required data!!

Regards
Renju
Accepted Solution
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628