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: *

  • Users: cawthor2
  • Order by date
  1. cawthor2

    Gridview column width (index out of range)

    Thank you for your response and explanation. I'll give your solution a try.
  2. cawthor2

    Gridview column width (index out of range)

    Also, If I do a 'GridView1.Columns.Count', it returns 0?
  3. cawthor2

    Gridview column width (index out of range)

    Added onrowcreated="GridView_RowCreated" to my GridView declaration, and created the following sub: Sub GridView_RowCreated(ByVal sender As Object, ByVal e As GridViewRowEventArgs) GridView1.Columns(1).ItemStyle.Width = 100 End Sub Still get the same error.
  4. cawthor2

    Gridview column width (index out of range)

    Hi, I've bound a datatable to a gridview and am trying to change the column width. The data is displayed correctly in the gridview, but I'm having trouble changing the width of a column. After I've bound the datatable, I have the following code: GridView1.DataSource = dt GridView1.DataBind()...
  5. cawthor2

    Change label text without submitting page

    Thank you! document.getElementById('Label1').innerHTML worked for me.
  6. cawthor2

    Change label text without submitting page

    so why doesn't this work? <html> <head runat="server"> <title>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <div> <asp:ImageButton id="ImageButton1" ImageUrl="images/graph.gif" OnClientClick="javascript: document.getelementbyid('Label1').text =...
  7. cawthor2

    Change label text without submitting page

    This may be a stupid question, but is it possible to change a labels text value without submitting the page? I thought maybe you could do something like: <asp:ImageButton id="ImageButton1" ImageUrl="images/graph.gif" OnClientClick="javascript: document.getelementbyid(Label1).text = 'Changed...
  8. cawthor2

    Retrieve height of datalist when height not initially set?

    Oops...sorry, you are correct. It's because I had absolute positioning on my datalist, it wasn't being contained within the div. Changed to relative and the div expands as expected.
  9. cawthor2

    Retrieve height of datalist when height not initially set?

    I'm trying to dynamically adjust the height of a container div based on the height of a datalist it contains. However, I don't have a default height set for the datalist, the height just flexes based on how many rows are returned. I thought I could just do an body onload statement like this...
  10. cawthor2

    How can I detect flash using ASP?

    Is there a way I can detect if the users browser has flash installed using asp / javascript without redirecting? Basically, I want to load my home page with a flash banner (if flash installed) or a gif in it's place if flash is not present. Can this be done on one page? Or do I have to create a...

Part and Inventory Search

Back
Top