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 John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by mrp9090

  1. mrp9090

    paging in xsl

    I am trying to add paging to the data that I am displaying on screen, but it doesn't work. Whenever data is returned it is always the complete dataset (over 100 records, which should produce a page for every 10 records), and it always starts on page number 0. Here is my code : XSL : <?xml...
  2. mrp9090

    calculating column and row totals in xslt

    Can anybody tell me how to calculate totals for both a column and a row in a a table formatted in XSLT?
  3. mrp9090

    borders

    Is it possible to create a table with gridlines like a .NET control, rather than just setting the border to greater than 0? Here is the XSLT I am trying to do this with : <?xml version="1.0" encoding="UTF-8" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"...
  4. mrp9090

    ToString(&quot;N2&quot;)

    Craig, If so, what would be the point of this line : GetTarget(decimal.Parse(Eval("Target", "{0:###0.00}").ToString())).ToString("N2") Surely the {0:###0.00} would do the same job, you don't need both {0:###0.00} and ToString("N2")? Or am I wrong?
  5. mrp9090

    ToString(&quot;N2&quot;) and gridview

    It produces exactly what I would expect ToString() to produce.
  6. mrp9090

    ToString(&quot;N2&quot;) and gridview

    I've been working with the gridiview control for a few weeks now, and I saw some code like this : <ItemTemplate> <asp:Label ID="lblTarget" Text='<%# GetTarget(decimal.Parse(Eval("Target", "{0:###0.00}").ToString())).ToString("N2") %>' runat="server"></asp:Label>...
  7. mrp9090

    ToString(&quot;N2&quot;)

    I've been working with the gridiview control for a few weekd now, and I saw some code like this : <ItemTemplate> <asp:Label ID="lblTarget" Text='<%# GetTarget(decimal.Parse(Eval("Target", "{0:###0.00}").ToString())).ToString("N2") %>' runat="server"></asp:Label>...
  8. mrp9090

    Performing calculations on data in gridview

    I thought you couldn't do a data type conversion in the declaration of the gridview? I would be interested to know what the syntax is for doing this. I've managed to get it working using this approach : <asp:TemplateField HeaderText="Target (%)" SortExpression="TargetPercentage">...
  9. mrp9090

    Performing calculations on data in gridview

    I get the error : Operator '*' cannot be applied to operands of type 'object' and 'int'
  10. mrp9090

    Performing calculations on data in gridview

    How do you do them then, given that my example above doesn't work?
  11. mrp9090

    Performing calculations on data in gridview

    Is it possible to perform calculations on data in your gridview in your ASP, or do you need to do any calculations in the OnRowDataBound event? Here is what I am trying to do : <asp:TemplateField HeaderText="Target (%)" SortExpression="TargetPercentage">...
  12. mrp9090

    'Procedure or function has too many arguments specified

    I meant that I was setting DataKeyNames in my GridView that is linked to the SqlDataSource.
  13. mrp9090

    'Procedure or function has too many arguments specified

    The only thing that I could think of was that I am not explicitly passing the DataKey field to the stored proc, and maybe it is getting passed automatically without me knowing. But I have tried to explicitly pass it and it still gives me the same error.
  14. mrp9090

    'Procedure or function has too many arguments specified

    I am using a SqlDataSource with a GridView and stored proc, and I have specified exactly the same update parameters for the SqlDataSource in exactly the same order as my stored proc. Yet I keep getting the error 'Procedure or function <stored procedure name> has too many arguments specified'...
  15. mrp9090

    check that a datetime value is not older than 1 month

    How do you check that a datetime value is not older than 1 month?

Part and Inventory Search

Back
Top