<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Profiles.aspx.vb" Inherits="Profiles" %>
<%@ Register src="wucProfiles.ascx" tagname="wucProfiles" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<uc1:wucProfiles ID="wucProfiles1" runat="server" />
</asp:Content>
<%@ Control Language="VB" AutoEventWireup="false" CodeFile="wucProfiles.ascx.vb" Inherits="wucProfiles" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table align="left">
<tr valign="middle">
<td align="left" valign="middle">
<asp:TextBox ID="txtFilter" runat="server" AutoPostBack="True"></asp:TextBox>
<asp:Button ID="btnFilter" runat="server" Text="Filter" />
</td>
<td>
</td>
</tr>
<tr>
<td valign="top">
<asp:GridView ID="gvDisplayNames" runat="server" AllowPaging="True"
AllowSorting="True" AutoGenerateColumns="False" CellPadding="4"
DataKeyNames="CustID" DataMember="DefaultView" DataSourceID="sqldsProfilesList"
Font-Names="Verdana" Font-Size="Small" ForeColor="#333333" GridLines="None"
style="text-align: left">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<Columns>
<asp:BoundField DataField="EntryTypeCode" HeaderText="EntryTypeCode"
ReadOnly="True" SortExpression="EntryTypeCode" Visible="False" />
<asp:ButtonField CommandName="Select" DataTextField="CustID"
HeaderText="CustID" SortExpression="CustID" Text="Button" />
<asp:BoundField DataField="DisplayNameEn" HeaderText="Display Name En"
SortExpression="DisplayNameEn" />
<asp:HyperLinkField DataNavigateUrlFields="CustID"
DataNavigateUrlFormatString="~/ProfileDetail.aspx?CustID={0}"
DataTextField="CustID" Target="_blank" />
</Columns>
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<EditRowStyle BackColor="#999999" />
<SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<AlternatingRowStyle BackColor="White" ForeColor="#284775" />
</asp:GridView>
<br />
<asp:SqlDataSource ID="sqldsProfilesList" runat="server"
ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>"
ProviderName="<%$ ConnectionStrings:ITDBConnectionStringLocalHost.ProviderName %>"
SelectCommand="spSearchProfiles" SelectCommandType="StoredProcedure">
<SelectParameters>
<asp:ControlParameter ControlID="FilterHiddenField" DefaultValue="%"
Name="SearchText" PropertyName="Value" Type="String" />
</SelectParameters>
</asp:SqlDataSource>
<asp:HiddenField ID="FilterHiddenField" runat="server" Value="%" />
<asp:SqlDataSource ID="sqldsCostCenterCode" runat="server"
ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>"
SelectCommand="SELECT [CostCenterCode], [DescriptionEn], [DescriptionFr] FROM [tblCostCenter] ORDER BY [CostCenterCode]">
</asp:SqlDataSource>
<asp:SqlDataSource ID="sqldsWindowsDomains" runat="server"
ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>"
SelectCommand="SELECT [WinDomainID], [DomainName] FROM [tblWindowsDomainsList]">
</asp:SqlDataSource>
<asp:SqlDataSource ID="sqldsFacility" runat="server"
ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>"
SelectCommand="SELECT [Facility], [FacilityCode] FROM [tblFacilityList]">
</asp:SqlDataSource>
<asp:SqlDataSource ID="sqldsEntryTypeCodeList" runat="server"
ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>"
SelectCommand="SELECT [EntryTypeCodeID], [EntryTypeCodeName] FROM [tblEntryTypeCodeList]">
</asp:SqlDataSource>
</td>
<td align="left" valign="top">
<cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1">
<cc1:TabPanel ID="ProfileInfo" runat="server" HeaderText="Profile">
<ContentTemplate>
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanel ID="ConfigList" runat="server" HeaderText="Configurations">
</cc1:TabPanel>
</cc1:TabContainer>
<cc1:RoundedCornersExtender ID="TabContainer1_RoundedCornersExtender"
runat="server" Enabled="True" TargetControlID="TabContainer1">
</cc1:RoundedCornersExtender>
<br />
<br />
<asp:SqlDataSource ID="sqldsProfile" runat="server"
ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>"
SelectCommand="SELECT EntryTypeCode, CustID FROM dbo.tblProfiles"
UpdateCommand="UPDATE dbo.tblProfiles SET FirstName = @FirstName, LastName = @LastName, EntryTypeCode = @EntryTypeCode, DisplayNameEn = @DisplayNameEn, DisplayNameFr = @DisplayNameFr, TitleEnglish = @TitleEnglish, TitleFrench = @TitleFrench, CostCenterCode = @CostCenterCode, PrimaryFacility = @PrimaryFacility, UserName = @UserName, ManagerID = @ManagerID, WindowsDomain = @WindowsDomain, Comments = @Comments WHERE (CustID = @CustID)">
<UpdateParameters>
<asp:ControlParameter ControlID="dvProfileDetail" Name="FirstName"
PropertyName="SelectedValue" />
<asp:Parameter Name="LastName" />
<asp:Parameter Name="EntryTypeCode" />
<asp:Parameter Name="DisplayNameEn" />
<asp:Parameter Name="DisplayNameFr" />
<asp:Parameter Name="TitleEnglish" />
<asp:Parameter Name="TitleFrench" />
<asp:Parameter Name="CostCenterCode" />
<asp:Parameter Name="PrimaryFacility" />
<asp:Parameter Name="UserName" />
<asp:Parameter Name="ManagerID" />
<asp:Parameter Name="WindowsDomain" />
<asp:Parameter Name="Comments" />
<asp:Parameter Name="CustID" />
</UpdateParameters>
</asp:SqlDataSource>
<asp:DataList ID="ProfilesDataList" runat="server" DataSourceID="sqldsProfile"
Visible="False">
<ItemTemplate>
<asp:Label ID="Label14" runat="server" Text='<%# Eval("CustID") %>'></asp:Label>
</ItemTemplate>
</asp:DataList>
<asp:Button ID="btnRemoveProfile" runat="server" CommandName="RemoveProfile"
Text="Remove" Visible="False" />
<asp:Label ID="lblRemoveProfile" runat="server" ForeColor="Red"
Text="Are you sure?" Visible="False"></asp:Label>
<asp:Button ID="btnProceedRemoveProfile" runat="server" Text="Yes"
Visible="False" />
<asp:Button ID="btnCancelRemoveProfile" runat="server" Text="Cancel"
Visible="False" />
<asp:FormView ID="FormView1" runat="server" CellPadding="4"
DataKeyNames="CustID" DataSourceID="sqldsProfileDetail" ForeColor="#333333">
<FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
<EditItemTemplate>
EntryTypeCode:
<asp:TextBox ID="EntryTypeCodeTextBox" runat="server"
Text='<%# Bind("EntryTypeCode") %>' />
<br />
CustID:
<asp:Label ID="CustIDLabel1" runat="server" Text='<%# Eval("CustID") %>' />
<br />
FirstName:
<asp:TextBox ID="FirstNameTextBox" runat="server"
Text='<%# Bind("FirstName") %>' />
<br />
LastName:
<asp:TextBox ID="LastNameTextBox" runat="server"
Text='<%# Bind("LastName") %>' />
<br />
DisplayNameEn:
<asp:TextBox ID="DisplayNameEnTextBox" runat="server"
Text='<%# Bind("DisplayNameEn") %>' />
<br />
DisplayNameFr:
<asp:TextBox ID="DisplayNameFrTextBox" runat="server"
Text='<%# Bind("DisplayNameFr") %>' />
<br />
TitleEnglish:
<asp:TextBox ID="TitleEnglishTextBox" runat="server"
Text='<%# Bind("TitleEnglish") %>' />
<br />
TitleFrench:
<asp:TextBox ID="TitleFrenchTextBox" runat="server"
Text='<%# Bind("TitleFrench") %>' />
<br />
CostCenterCode:
<asp:TextBox ID="CostCenterCodeTextBox" runat="server"
Text='<%# Bind("CostCenterCode") %>' />
<br />
PrimaryFacility:
<asp:TextBox ID="PrimaryFacilityTextBox" runat="server"
Text='<%# Bind("PrimaryFacility") %>' />
<br />
UserName:
<asp:TextBox ID="UserNameTextBox" runat="server"
Text='<%# Bind("UserName") %>' />
<br />
ManagerID:
<asp:TextBox ID="ManagerIDTextBox" runat="server"
Text='<%# Bind("ManagerID") %>' />
<br />
WindowsDomain:
<asp:TextBox ID="WindowsDomainTextBox" runat="server"
Text='<%# Bind("WindowsDomain") %>' />
<br />
Comments:
<asp:TextBox ID="CommentsTextBox" runat="server"
Text='<%# Bind("Comments") %>' />
<br />
<asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True"
CommandName="Update" Text="Update" />
<asp:LinkButton ID="UpdateCancelButton" runat="server"
CausesValidation="False" CommandName="Cancel" Text="Cancel" />
</EditItemTemplate>
<InsertItemTemplate>
EntryTypeCode:
<asp:TextBox ID="EntryTypeCodeTextBox" runat="server"
Text='<%# Bind("EntryTypeCode") %>' />
<br />
CustID:
<asp:TextBox ID="CustIDTextBox" runat="server" Text='<%# Bind("CustID") %>' />
<br />
FirstName:
<asp:TextBox ID="FirstNameTextBox" runat="server"
Text='<%# Bind("FirstName") %>' />
<br />
LastName:
<asp:TextBox ID="LastNameTextBox" runat="server"
Text='<%# Bind("LastName") %>' />
<br />
DisplayNameEn:
<asp:TextBox ID="DisplayNameEnTextBox" runat="server"
Text='<%# Bind("DisplayNameEn") %>' />
<br />
DisplayNameFr:
<asp:TextBox ID="DisplayNameFrTextBox" runat="server"
Text='<%# Bind("DisplayNameFr") %>' />
<br />
TitleEnglish:
<asp:TextBox ID="TitleEnglishTextBox" runat="server"
Text='<%# Bind("TitleEnglish") %>' />
<br />
TitleFrench:
<asp:TextBox ID="TitleFrenchTextBox" runat="server"
Text='<%# Bind("TitleFrench") %>' />
<br />
CostCenterCode:
<asp:TextBox ID="CostCenterCodeTextBox" runat="server"
Text='<%# Bind("CostCenterCode") %>' />
<br />
PrimaryFacility:
<asp:TextBox ID="PrimaryFacilityTextBox" runat="server"
Text='<%# Bind("PrimaryFacility") %>' />
<br />
UserName:
<asp:TextBox ID="UserNameTextBox" runat="server"
Text='<%# Bind("UserName") %>' />
<br />
ManagerID:
<asp:TextBox ID="ManagerIDTextBox" runat="server"
Text='<%# Bind("ManagerID") %>' />
<br />
WindowsDomain:
<asp:TextBox ID="WindowsDomainTextBox" runat="server"
Text='<%# Bind("WindowsDomain") %>' />
<br />
Comments:
<asp:TextBox ID="CommentsTextBox" runat="server"
Text='<%# Bind("Comments") %>' />
<br />
<asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"
CommandName="Insert" Text="Insert" />
<asp:LinkButton ID="InsertCancelButton" runat="server"
CausesValidation="False" CommandName="Cancel" Text="Cancel" />
</InsertItemTemplate>
<ItemTemplate>
EntryTypeCode:
<asp:Label ID="EntryTypeCodeLabel" runat="server"
Text='<%# Bind("EntryTypeCode") %>' />
<br />
CustID:
<asp:Label ID="CustIDLabel" runat="server" Text='<%# Eval("CustID") %>' />
<br />
FirstName:
<asp:Label ID="FirstNameLabel" runat="server" Text='<%# Bind("FirstName") %>' />
<br />
LastName:
<asp:Label ID="LastNameLabel" runat="server" Text='<%# Bind("LastName") %>' />
<br />
DisplayNameEn:
<asp:Label ID="DisplayNameEnLabel" runat="server"
Text='<%# Bind("DisplayNameEn") %>' />
<br />
DisplayNameFr:
<asp:Label ID="DisplayNameFrLabel" runat="server"
Text='<%# Bind("DisplayNameFr") %>' />
<br />
TitleEnglish:
<asp:Label ID="TitleEnglishLabel" runat="server"
Text='<%# Bind("TitleEnglish") %>' />
<br />
TitleFrench:
<asp:Label ID="TitleFrenchLabel" runat="server"
Text='<%# Bind("TitleFrench") %>' />
<br />
CostCenterCode:
<asp:Label ID="CostCenterCodeLabel" runat="server"
Text='<%# Bind("CostCenterCode") %>' />
<br />
PrimaryFacility:
<asp:Label ID="PrimaryFacilityLabel" runat="server"
Text='<%# Bind("PrimaryFacility") %>' />
<br />
UserName:
<asp:Label ID="UserNameLabel" runat="server" Text='<%# Bind("UserName") %>' />
<br />
ManagerID:
<asp:Label ID="ManagerIDLabel" runat="server" Text='<%# Bind("ManagerID") %>' />
<br />
WindowsDomain:
<asp:Label ID="WindowsDomainLabel" runat="server"
Text='<%# Bind("WindowsDomain") %>' />
<br />
Comments:
<asp:Label ID="CommentsLabel" runat="server" Text='<%# Bind("Comments") %>' />
<br />
<asp:LinkButton ID="EditButton" runat="server" CausesValidation="False"
CommandName="Edit" Text="Edit" />
<asp:LinkButton ID="DeleteButton" runat="server" CausesValidation="False"
CommandName="Delete" Text="Delete" />
<asp:LinkButton ID="NewButton" runat="server" CausesValidation="False"
CommandName="New" Text="New" />
</ItemTemplate>
<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
<HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
<EditRowStyle BackColor="#999999" />
</asp:FormView>
<asp:SqlDataSource ID="sqldsProfileDetail" runat="server"
ConnectionString="<%$ ConnectionStrings:ITDBConnectionStringLocalHost %>"
DeleteCommand="DELETE FROM dbo.tblProfiles WHERE (CustID = @CustID)"
InsertCommand="INSERT INTO [tblProfiles] ([EntryTypeCode], [CustID], [FirstName], [LastName], [DisplayNameEn], [DisplayNameFr], [TitleEnglish], [TitleFrench], [CostCenterCode], [PrimaryFacility], [UserName], [ManagerID], [WindowsDomain], [Comments]) VALUES (@EntryTypeCode, @CustID, @FirstName, @LastName, @DisplayNameEn, @DisplayNameFr, @TitleEnglish, @TitleFrench, @CostCenterCode, @PrimaryFacility, @UserName, @ManagerID, @WindowsDomain, @Comments)"
SelectCommand="SELECT EntryTypeCode, CustID, FirstName, LastName, DisplayNameEn, DisplayNameFr, TitleEnglish, TitleFrench, CostCenterCode, PrimaryFacility, UserName, ManagerID, WindowsDomain, Comments FROM dbo.tblProfiles WHERE (CustID = @CustID)"
UpdateCommand="spUpdateProfile" UpdateCommandType="StoredProcedure">
<DeleteParameters>
<asp:SessionParameter Name="CustID" SessionField="CustID" Type="String" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="EntryTypeCode" Type="Byte" />
<asp:ControlParameter ControlID="gvDisplayNames" Name="CustID"
PropertyName="SelectedValue" Type="String" />
<asp:Parameter Name="NewCustID" Type="String" />
<asp:Parameter Name="PrimaryFacility" />
<asp:Parameter Name="FirstName" Type="String" />
<asp:Parameter Name="LastName" Type="String" />
<asp:Parameter Name="DisplayNameEn" Type="String" />
<asp:Parameter Name="DisplayNameFr" Type="String" />
<asp:Parameter Name="CostCenterCode" Type="Int16" />
<asp:Parameter Name="TitleEnglish" Type="String" />
<asp:Parameter Name="TitleFrench" Type="String" />
<asp:Parameter Name="UserName" Type="String" />
<asp:Parameter Name="ManagerID" Type="Int16" />
<asp:Parameter Name="WindowsDomain" Type="String" />
<asp:Parameter Name="Comments" Type="String" />
</UpdateParameters>
<SelectParameters>
<asp:ControlParameter ControlID="gvDisplayNames" DefaultValue="" Name="CustID"
PropertyName="SelectedValue" Type="String" />
</SelectParameters>
<InsertParameters>
<asp:Parameter Name="EntryTypeCode" Type="Byte" />
<asp:Parameter Name="CustID" Type="String" />
<asp:Parameter Name="FirstName" Type="String" />
<asp:Parameter Name="LastName" Type="String" />
<asp:Parameter Name="DisplayNameEn" Type="String" />
<asp:Parameter Name="DisplayNameFr" Type="String" />
<asp:Parameter Name="TitleEnglish" Type="String" />
<asp:Parameter Name="TitleFrench" Type="String" />
<asp:Parameter Name="CostCenterCode" Type="Int16" />
<asp:Parameter Name="PrimaryFacility" />
<asp:Parameter Name="UserName" Type="String" />
<asp:Parameter Name="ManagerID" Type="Int16" />
<asp:Parameter Name="WindowsDomain" Type="String" />
<asp:Parameter Name="Comments" Type="String" />
</InsertParameters>
</asp:SqlDataSource>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
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:
by: kchaitanyyaPosted on 2009-06-24 at 01:17:06ID: 24699121
Could you please send the response text you got while doing this ?
You can get it using fiddler tool,
Inspectors -> TextView...copy past the response you got...it may give more details about the ERROR.