I am using the default membership provider for a ASP.NET web application to store usernames. How can I show this table in an administrative webpage? It needs to use delete and insert statements. Thanks in advance.
View Complete Post
Hi guys. I have gried view that shows me all info from the table i
made. So my SelectCommand works fine. I'v add 3 additional buttons
"new", "edit" and "delete" i'v made their query
but still have mistake by clicking it in browser. I follow from the book
Begginer to Novice 3.5 ASP C# but that's what it's shown. I know something
missing. I'v check in the net but not found how to fixed, because i use
SqlDataSource. Can you advise how to proceed from here? Here's what i did:
<asp:SqlDataSource ID="SqlDataSource5" runat="server" ProviderName="System.Data.SqlClient" ConnectionString="<%$ ConnectionStrings:ThisIsMyConnection%>"
= "SELECT * FROM
[Resident] WHERE (([FNAME] + ' ' + [LNAME] LIKE '%' + @FANDLNAME + '%'))"
Resident SET FNAME=@FNAME, LNAME=@LNAME, MobileNum=@MobileNum,
HomeNum=@HomeNum, OfficeNum=@OfficeNum, FaxNum=@FaxNum WHERE FNAME=@original_FNAME
In my Girdview, I set: AutoGenerateDeleteButton="True" , and AutoGenerateEditButton="True".
The Buttons show at the first column of the gridview, how can move them to the last column?
I have a gridview on my page which is bound to an objectdatasource that gets Data from an Images Table in my database.
The delete button is enabled and I have this code in my DAL.
DELETE FROM [Images] WHERE (([ImageId] = @ImageId))
Instead of deleting just 1 image, I want to give a user the option to delete multiple images at once.
Any code showing how to do this in c sharp be grateful.
I have a command field delete button in gridview and i wantto show the delete confirmation before delteing the row