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 Mike Lewis 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: JulesBos
  • Order by date
  1. JulesBos

    How to go back to a search results page

    Sorry should have said in the previous post - I'm also confused as to why the code is even being run because it starts with: If Not Me.IsPostBack Then surely, as this IS a postback, then the code should be skipped? Or am I not understanding postbacks properly? Julia
  2. JulesBos

    How to go back to a search results page

    I'm a bit stuck here. I've debugged and in code on postback the variable dateFrom's value is "" as is the Request.QueryString("DateFrom") value. However, when looking at the query string in the address bar the value is "#00/00/00". I don't know how to debug further or where to look? I'm fairly...
  3. JulesBos

    How to go back to a search results page

    Sorry should have checked. The query string looks the same, but the variables aren't being populated on a post back. How do I get around that one then? Julia
  4. JulesBos

    How to go back to a search results page

    Hi, I've got a search results page that takes information from its query string and displays data in labels and a datagrid. It works well, until you move to a new page then go back to it. When you go back there's an error message. The current code (first part) is: Private Sub...
  5. JulesBos

    Increment value in datagrid column programatically

    Thanks, you're a genius! :-) Here's the updated code that works perfectly. Select Case e.Item.ItemType Case ListItemType.AlternatingItem, ListItemType.Item itemNumber = itemNumber + 1 Dim ItemNo As Label = e.Item.FindControl("ItemNoLabel")...
  6. JulesBos

    Which to use - label/panel or text box??

    Thanks, much appreciated. Julia
  7. JulesBos

    Increment value in datagrid column programatically

    Anyone any ideas on this one? Julia
  8. JulesBos

    Which to use - label/panel or text box??

    Sorry to take a while to respond. Have been off work. Here's what the source for that particular field looks like: <div id="AssumptionsHeaderPanel" style="font-family:Verdana;font-size:10pt;font-weight:bold;width:17cm;"> ASSUMPTIONS </div> <div id="AssumptionsBodyPanel"...
  9. JulesBos

    Which to use - label/panel or text box??

    Labels can display multiple lines? Wy don't mine then? Th data is coming from a back end Access database. Do I need to do anything special with it then? Here's the current code: Connection.Open() Dim datareader As OleDb.OleDbDataReader Dim SQLSelectString As String...
  10. JulesBos

    Which to use - label/panel or text box??

    Hi, I've got a page that is used for printing purposes and has been formatted in a specific way. The page, on load, uses a datareader to get data from a back end db and populates the page. I've used labels and panels to account for the fact that the data will be of variable sizes. It all works...
  11. JulesBos

    Increment value in datagrid column programatically

    Hi, well I've given this a go and it doesn't work, but I'm sure it's because I've got something wrong, not because it can't work. <asp:DataGrid id=DataGrid runat="server" Width="25.5cm" Font-Size="XX-Small" Font-Names="Verdana" AutoGenerateColumns="False" DataMember="Table" DataSource="<%#...
  12. JulesBos

    Increment value in datagrid column programatically

    Will this do it? Private Sub DataGrid_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataGridItemEventArgs) Handles DataGrid.ItemDataBound 'for each item that's databound in the datagrid, give it an item number itemNumber += itemNumber Select...
  13. JulesBos

    Increment value in datagrid column programatically

    Thanks, have you any examples? I'm struggling to work out how to access a column value. Julia
  14. JulesBos

    Increment value in datagrid column programatically

    Thanks, will investigate, but I also have another column where I want to replace the textual value with "N/A" if it contains a certain value. Could I do that in the datagrid/dataset? Julia
  15. JulesBos

    Increment value in datagrid column programatically

    Hi I have a datagrid that is populated with a dataset. There is an extra template column that the datagrid has that I would like to populate programatically, but I'm not sure how to go about doing this. Here's my current code: 'this sub populates the data grid Connection.Open()...
  16. JulesBos

    Programmatically changing a panel's text

    Brilliant thanks! Julia
  17. JulesBos

    Programmatically changing a panel's text

    Hi I'm creating a webpage using panels so that the height of each section of the page is dynamic. Each panel needs different text depending on the user/circumstances. Is there a way of setting panel text programmatically? Panels do not appear to have a text property, but you can type text...
  18. JulesBos

    Change standard printing headers/footers

    OK thanks for that. At least I know what I'm up against. Julia
  19. JulesBos

    Change standard printing headers/footers

    Sorry I meant IE6
  20. JulesBos

    Change standard printing headers/footers

    It's not shown on the page itself, it's an IE5 page setup issue. The user can select what they want in the header and footer of the printed document normally, but I want to do this programmatically. I actually want to put a custom footer in. Thanks

Part and Inventory Search

Back
Top