I know that you can change the style of the DetailsView CommandRowStyle, but what if I want to change the style of the actual Edit and Delete links? Can you access those?
I'd rather not use images, and I'd like to have my Edit and Delete links match the linkbutton CSS I've already created.
Thanks a lot. I'll look into that. Always good to know the better way. However I still don't understand why this isn't working. It's pretty simple, nothing too detailed and I followed examples I found exactly.
I have a DetailsView that shows a record from my database based on a queryString value "curEmp", for example "EmployeeProfile.aspx?curEmp=2"
This is showing the records ok, but when I click Edit, after changing a value I hit "Update" and everything except the primary key is set to null.
What...
I'm just starting to use JQuery, and I'm editing the modal popup example within a classic asp page. I've gotten the form to work, and added a submit line, but after the submit I try to get the submitted values with asp using request.form("email") but it's coming up blank.
Is this a problem with...
Thanks a lot for you help, that did it!
Can you tell me why I shouldn't use a DataSource control? I'm pretty new to this, so I'd like to know why.
I have on follow up question if you're able to help. After updating, the <Item Template> field is showing the SupevisorID, but I'd like for it to...
0 down vote favorite
share [g+] share [fb] share [tw]
I have a database table called Employees that has an ID number, First Name, Last Name, and SupervisorID for each employee. The SupervisorID stored for an employee equals the ID number of that employee's supervisor.
I want to have a...
I'm new to asp.net and have recently been working with creating a GridView from codebehind to make it more flexible so that I can eventually have it created based on user specifications.
Now I'm exploring classes, and I thought it would be cool to create a GridView class so that whenever I need...
Yeah the case is correct. I'm really stumped since the "HeaderStyle" is being applied correctly. It's just the "SortedAscendingHeaderStyle" and "SortedDescendingHeaderStyle" that aren't coming through.
Thanks for the response!
Yes, I want to style the header of a sorted column. My GridView is set up like this in my aspx:
<asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
EmptyDataText="There are no data records to display."...
I have a GridView that has its columns loaded from codebehind. The header CSS class I specified in the aspx page, but it wasn't loading for these columns. So I added: GridView1.HeaderRow.CssClass = "HeaderStyle" in the codebehind after binding and then it loaded. I can't figure out how to do...
As the page gets further developed the columns that will load will be based on user selection so I wouldnt know them ahead of time and would need them to be dynamic. I was able to get it working
All the help I've been able to find from similar posts regarding this issue isn't working for how I set up my GridView.
I've gotten my Gridview to have dynamically created columns, and was able to get sorting to work on it. My paging works also, but if I sort first and then go to another page...
I got it working. For others needing help with this:
You can use insert instead of add:
GridView3.Columns.Insert(0, curLastName)
Then the code-behind elements will be added first before the columns on the .aspx page.
I came up with this solution and I'm getting the links now, but I still need some help displaying them properly.
The columns I showed above are being generated in code-behind. I then added a link field to the GridView on the .aspx page:
<asp:GridView id="GridView3" runat="server"...
I have a search box that takes an employee's last name and goes to a results page.
The results page takes the employee's last name from a query string and creates a GridView in code-behind to show all matches.
The GridView is working fine to show all matching employee's last names and first...
I have a login page that has a "if you forgot your password, click here" link button that opens a ModalPopup for the user to retrieve their password.
What I would like to do is when a user enters an invalid login, the ValidationSummary tells them it's invalid, and also contains another "if you...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.