Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Cineno

    How can you change the style of DetailsView Edit and Delete links?

    Thank you! That's exactly what I needed!
  2. Cineno

    How can you change the style of DetailsView Edit and Delete links?

    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.
  3. Cineno

    DetailsView is setting fields to null on update

    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.
  4. Cineno

    DetailsView is setting fields to null on update

    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...
  5. Cineno

    JQuery: getting values from submitted modal dialog

    ...http://projects.scottsplayground.com/email_address_validation/ bValid = bValid && checkRegexp(email...
  6. Cineno

    Dropdown within a DetailsView: show text based on stored value

    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...
  7. Cineno

    Dropdown within a DetailsView: show text based on stored value

    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...
  8. Cineno

    How to create a GridView from a class

    ...Dim sql As String = "SELECT * FROM Employees" Dim sqlCmd = New SqlClient.SqlCommand() sqlCmd.CommandText = String.Format(sql, Me.SortExpression) sqlCmd.Connection = sqlCon Using objAdapter As New SqlClient.SqlDataAdapter(sqlCmd)...
  9. Cineno

    Gridview sorted header css not loading

    I finally got the RowDataBound to handle it and it's working now. Thanks a lot for the advice, I appreciate it.
  10. Cineno

    Gridview sorted header css not loading

    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.
  11. Cineno

    Gridview sorted header css not loading

    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."...
  12. Cineno

    Gridview sorted header css not loading

    ...Dim sql As String = "SELECT * FROM EmployeeList ORDER BY {0}" Dim sqlCmd = New SqlClient.SqlCommand() sqlCmd.CommandText = String.Format(sql, Me.SortExpression) sqlCmd.Connection = sqlCon Using objAdapter As New SqlClient.SqlDataAdapter(sqlCmd)...
  13. Cineno

    How can I add links to GridView in codebehind?

    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
  14. Cineno

    Gridview not maintaining sort after paging

    Thank you both. I got it working now. I appreciate the help!
  15. Cineno

    Gridview not maintaining sort after paging

    ...    Dim myConnection As New SqlConnection(connectionstr)     Dim ad As New SqlDataAdapter("SELECT * FROM EmployeeList where lastname like 'wil%'", myConnection)     Dim ds As New DataSet()     ad.Fill(ds)     Return ds End Function Public Property GridViewSortDirection() As...
  16. Cineno

    How can I add links to GridView in codebehind?

    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.
  17. Cineno

    How can I add links to GridView in codebehind?

    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"...
  18. Cineno

    How can I add links to GridView in codebehind?

    ...connetionString = ConfigurationManager.ConnectionStrings("dbConnectionString").ConnectionString.ToString() sql = "SELECT * FROM [EmployeeList] Where [lastname] like '" & lastName & "%' order by lastname" connection = New SqlConnection(connetionString) Try...
  19. Cineno

    Can you add links to a ValidationSummary?

    Great, thanks a lot.
  20. Cineno

    Can you add links to a ValidationSummary?

    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...

Part and Inventory Search

Back
Top