Click here to Skip to main content
15,888,610 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Problem related to textbox Pin
Anurag Gandhi24-Nov-09 20:39
professionalAnurag Gandhi24-Nov-09 20:39 
GeneralRe: Problem related to textbox Pin
April Fans24-Nov-09 22:58
April Fans24-Nov-09 22:58 
AnswerRe: Problem related to textbox Pin
Anurag Gandhi24-Nov-09 20:36
professionalAnurag Gandhi24-Nov-09 20:36 
QuestionApplication designing issue Pin
Amit Patel198524-Nov-09 18:16
Amit Patel198524-Nov-09 18:16 
AnswerRe: Application designing issue Pin
Abhijit Jana24-Nov-09 18:56
professionalAbhijit Jana24-Nov-09 18:56 
AnswerRe: Application designing issue Pin
Vimalsoft(Pty) Ltd24-Nov-09 19:27
professionalVimalsoft(Pty) Ltd24-Nov-09 19:27 
AnswerRe: Application designing issue Pin
carlecomm26-Nov-09 14:45
carlecomm26-Nov-09 14:45 
QuestionDetailsView Update Problem Pin
RajpootRohan24-Nov-09 18:11
professionalRajpootRohan24-Nov-09 18:11 
Hi to all,

I am using DetailsView control to edit the details of the user. But when I click the Edit button, the update button is not clickable. I am unable to find out the problem.

<br />
                <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" <br />
                    CellPadding="4" DataSourceID="SqlDataSource1" ForeColor="#333333" <br />
                    GridLines="None" Height="50px" Width="364px" <br />
                    AutoGenerateEditButton="True" DataKeyNames="UserId" <br />
                    style="margin-right: 0px" onitemupdating="DetailsView1_ItemUpdating"><br />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /><br />
                    <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" /><br />
                    <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /><br />
                    <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" /><br />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /><br />
                    <Fields><br />
                        <asp:BoundField DataField="UserId" HeaderText="UserId" ReadOnly="True" SortExpression="UserId" /><br />
                        <asp:BoundField DataField="first_name" HeaderText="first_name" SortExpression="first_name" /><br />
                        <asp:BoundField DataField="last_name" HeaderText="last_name" SortExpression="last_name" /><br />
                        <asp:BoundField DataField="AddressLine1" HeaderText="address1" SortExpression="AddressLine1" /><br />
                        <asp:BoundField DataField="AddressLine2" HeaderText="address2" SortExpression="AddressLine2" /><br />
                        <asp:BoundField DataField="AddressLine3" HeaderText="address3" SortExpression="AddressLine3" /><br />
                        <asp:BoundField DataField="zipcode" HeaderText="zipcode" SortExpression="zipcode" /><br />
                        <asp:BoundField DataField="city" HeaderText="city" SortExpression="city" /><br />
                        <asp:BoundField DataField="state" HeaderText="state" SortExpression="state" /><br />
                        <asp:BoundField DataField="country" HeaderText="country" SortExpression="country" /><br />
                        <asp:BoundField DataField="landline" HeaderText="landline" SortExpression="landline" /><br />
                        <asp:BoundField DataField="mobile" HeaderText="mobile" SortExpression="mobile" /><br />
                    </Fields><br />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /><br />
                    <EditRowStyle BackColor="#999999" /><br />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" /><br />
                </asp:DetailsView><br />
                <br /><br />
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" <br />
                    ConnectionString="<%$ ConnectionStrings:newcon %>" <br />
                    <br />
                    SelectCommand="SELECT [First_Name], [State], [City], [AddressLine3], [AddressLine2], [AddressLine1], [Last_Name], [Country], [Landline], [Zipcode], [Mobile],[UserId] FROM [USERS] WHERE ([UserId] = @UserId)"<br />
                    UpdateCommand="UPDATE [USERS] SET [First_Name] = @First_Name, [State] = @State, [City] = @City, [AddressLine3] = @AddressLine3, [AddressLine2] = @AddressLine2, [AddressLine1] = @AddressLine1, [Last_Name] = @Last_Name, [Country] = @Country, [Landline] = @Landline, [Zipcode] = @Zipcode, [Mobile] = @Mobile WHERE [UserId] = @UserId" ><br />
                    <br />
                    <SelectParameters><br />
                        <asp:Parameter Name="UserId" /><br />
                    </SelectParameters><br />
                    <UpdateParameters><br />
                        <asp:Parameter Name="UserId" /><br />
                        <asp:Parameter Name="First_Name" Type="String" /><br />
                        <asp:Parameter Name="State" Type="String" /><br />
                        <asp:Parameter Name="City" Type="String" /><br />
                        <asp:Parameter Name="AddressLine3" Type="String" /><br />
                        <asp:Parameter Name="AddressLine2" Type="String" /><br />
                        <asp:Parameter Name="AddressLine1" Type="String" /><br />
                        <asp:Parameter Name="Last_Name" Type="String" /><br />
                        <asp:Parameter Name="Country" Type="String" /><br />
                        <asp:Parameter Name="Landline" Type="String" /><br />
                        <asp:Parameter Name="Zipcode" Type="String" /><br />
                        <asp:Parameter Name="Mobile" Type="String" /><br />
                    </UpdateParameters><br />
                </asp:SqlDataSource><br />


cheers,
sneha

AnswerRe: DetailsView Update Problem Pin
Nishant Singh24-Nov-09 20:07
Nishant Singh24-Nov-09 20:07 
GeneralRe: DetailsView Update Problem Pin
RajpootRohan24-Nov-09 20:29
professionalRajpootRohan24-Nov-09 20:29 
GeneralRe: DetailsView Update Problem Pin
Nishant Singh24-Nov-09 21:20
Nishant Singh24-Nov-09 21:20 
GeneralRe: DetailsView Update Problem Pin
RajpootRohan24-Nov-09 23:10
professionalRajpootRohan24-Nov-09 23:10 
GeneralRe: DetailsView Update Problem Pin
sashidhar24-Nov-09 21:30
sashidhar24-Nov-09 21:30 
QuestionReal problem with GridView TemplateField Sorting Pin
Maxdd 724-Nov-09 6:30
Maxdd 724-Nov-09 6:30 
AnswerRe: Real problem with GridView TemplateField Sorting Pin
Maxdd 724-Nov-09 7:31
Maxdd 724-Nov-09 7:31 
GeneralRe: Real problem with GridView TemplateField Sorting Pin
Christian Graus24-Nov-09 7:32
protectorChristian Graus24-Nov-09 7:32 
GeneralRe: Real problem with GridView TemplateField Sorting [modified] Pin
Maxdd 724-Nov-09 10:33
Maxdd 724-Nov-09 10:33 
GeneralRe: Real problem with GridView TemplateField Sorting Pin
Christian Graus24-Nov-09 11:18
protectorChristian Graus24-Nov-09 11:18 
GeneralRe: Real problem with GridView TemplateField Sorting Pin
Maxdd 724-Nov-09 11:53
Maxdd 724-Nov-09 11:53 
GeneralRe: Real problem with GridView TemplateField Sorting Pin
Christian Graus24-Nov-09 12:02
protectorChristian Graus24-Nov-09 12:02 
GeneralRe: Real problem with GridView TemplateField Sorting Pin
Maxdd 724-Nov-09 15:25
Maxdd 724-Nov-09 15:25 
AnswerRe: Real problem with GridView TemplateField Sorting Pin
Abhishek Sur24-Nov-09 9:00
professionalAbhishek Sur24-Nov-09 9:00 
QuestionHow can we find the application which caused the failure of email. Pin
chandra vempati24-Nov-09 6:28
chandra vempati24-Nov-09 6:28 
AnswerRe: How can we find the application which caused the failure of email. Pin
Christian Graus24-Nov-09 6:45
protectorChristian Graus24-Nov-09 6:45 
AnswerRe: How can we find the application which caused the failure of email. Pin
Abhishek Sur24-Nov-09 9:06
professionalAbhishek Sur24-Nov-09 9:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.