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
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...
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
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...
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")...
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"...
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...
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...
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="<%#...
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...
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
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()...
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...
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
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.