Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default ASP Help

    I need to find a way to pull the file creation time from a file. I have a
    webcam FTP a file every 5 min. That pic does not have the time and date. I
    would like to find out how to pull the creation time from the file.\

    Thanks,

    Tony


    Tony Guest

  2. #2

    Default Re: ASP Help

    "Tony" <tony@optics.arizona.edu> wrote in message
    news:etGGii4hDHA.2516@TK2MSFTNGP09.phx.gbl...
    > I need to find a way to pull the file creation time from a file. I have a
    > webcam FTP a file every 5 min. That pic does not have the time and date.
    I
    > would like to find out how to pull the creation time from the file.\

    [url]http://msdn.microsoft.com/library/en-us/vbenlr98/html/vaproDateCreated.asp[/url]
    [url]http://msdn.microsoft.com/library/en-us/vbenlr98/html/vaprodatelastmodified.asp[/url]

    --
    Tom Kaminski IIS MVP
    [url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running IIS
    [url]http://mvp.support.microsoft.com/[/url]
    [url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]



    Tom Kaminski [MVP] Guest

  3. #3

    Default Re: ASP Help

    [url]http://msdn.microsoft.com/library/en-us/vbenlr98/html/vaproDateCreated.asp[/url]

    In this one where do i specify the file that i want the info about?
    <%
    Sub ShowFileAccessInfo(*lpl-image.jpg*)----is this the right area?
    Dim fs, f, s
    Set fs = CreateObject("Scripting.FileSystemObject")
    Set f = fs.GetFile(filespec)
    s = s & "UA LPL Camera " & f.DateCreated
    End Sub
    %>
    Tony


    "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
    news:blcmcg$2mm25@kcweb01.netnews.att.com...
    > "Tony" <tony@optics.arizona.edu> wrote in message
    > news:etGGii4hDHA.2516@TK2MSFTNGP09.phx.gbl...
    > > I need to find a way to pull the file creation time from a file. I have
    a
    > > webcam FTP a file every 5 min. That pic does not have the time and date.
    > I
    > > would like to find out how to pull the creation time from the file.\
    >
    >
    > [url]http://msdn.microsoft.com/library/en-us/vbenlr98/html/vaproDateCreated.asp[/url]
    >
    [url]http://msdn.microsoft.com/library/en-us/vbenlr98/html/vaprodatelastmodified.asp[/url]
    >
    > --
    > Tom Kaminski IIS MVP
    > [url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running
    IIS
    > [url]http://mvp.support.microsoft.com/[/url]
    > [url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]
    >
    >
    >

    Tony Guest

  4. #4

    Default Re: ASP Help

    You got it.

    "Tony" <tony@optics.arizona.edu> wrote in message
    news:OAYASH5hDHA.1536@TK2MSFTNGP12.phx.gbl...
    > [url]http://msdn.microsoft.com/library/en-us/vbenlr98/html/vaproDateCreated.asp[/url]
    >
    > In this one where do i specify the file that i want the info about?
    > <%
    > Sub ShowFileAccessInfo(*lpl-image.jpg*)----is this the right area?
    > Dim fs, f, s
    > Set fs = CreateObject("Scripting.FileSystemObject")
    > Set f = fs.GetFile(filespec)
    > s = s & "UA LPL Camera " & f.DateCreated
    > End Sub
    > %>
    > Tony
    >
    >
    > "Tom Kaminski [MVP]" <tomk (A@T) mvps (D.O.T) org> wrote in message
    > news:blcmcg$2mm25@kcweb01.netnews.att.com...
    > > "Tony" <tony@optics.arizona.edu> wrote in message
    > > news:etGGii4hDHA.2516@TK2MSFTNGP09.phx.gbl...
    > > > I need to find a way to pull the file creation time from a file. I
    have
    > a
    > > > webcam FTP a file every 5 min. That pic does not have the time and
    date.
    > > I
    > > > would like to find out how to pull the creation time from the file.\
    > >
    > >
    > >
    [url]http://msdn.microsoft.com/library/en-us/vbenlr98/html/vaproDateCreated.asp[/url]
    > >
    >
    [url]http://msdn.microsoft.com/library/en-us/vbenlr98/html/vaprodatelastmodified.asp[/url]
    > >
    > > --
    > > Tom Kaminski IIS MVP
    > > [url]http://www.iistoolshed.com/[/url] - tools, scripts, and utilities for running
    > IIS
    > > [url]http://mvp.support.microsoft.com/[/url]
    > > [url]http://www.microsoft.com/windowsserver2003/community/centers/iis/[/url]
    > >
    > >
    > >
    >
    >

    Tom Kaminski [MVP] Guest

  5. #5

    Default ASP help

    Hi all, I ran accross a website with some free asp codes, I then used it in my link below:
    [url]http://free.7host02.com/calibre/upload/uploadfolder/ssort.asp[/url]
    The ssort.asp has to be located under this uploadfolder for the page to function, however I would like to hide this file in my website preview and show all other files. I am not good at the asp programing and woull greatly appreciate if someone can shed me a little light how to get this done.

    Thanks



    cadder1 webforumsuser@macromedia.com Guest

  6. #6

    Default ASP help

    Hi;

    I want to ask you something very important for me ..

    how can i Create daynamic pages or static pages Automatic .??????????!!!

    i have a problem with my website i want Create page asp classic to every member
    The page name equal the member name

    [url]www.Micrsoft.com/Ashraf.asp[/url]

    If i have 3000 members in my website it's possible to generate 3000 pages for everymember Automatic and if it is possible how can i do this ??

    my Tec. are ASp classic and java script ..
    thank you
    Creat ASP Page Automatic Guest

  7. #7

    Default ASP HELP



    Hi

    I am trying to make a ASP.NET report where I would like to show the Sum
    Total and the Grand total on the reports . I am trying to do this using
    SQL server ROLL UP function . But it does not work . Could any one plase
    help me ?

    Here is my code.


    <%@ Language="VB" autoeventwireup="false" %>


    <%@ import Namespace="System.Data" %>
    <%@ import Namespace="System.Data.SqlClient" %>
    <%@ import Namespace="System.Drawing" %>
    <script >



    Sub Page_Load(Sender As Object, E As EventArgs) Handles MyBase.Load

    ' TODO: Update the ConnectionString and CommandText values
    for your application
    Dim ConnectionString As String =
    ConfigurationSettings.AppSettings("connectionStrin gNW")
    Dim CommandText As String = "Select trandate, "
    CommandText += " CASE WHEN (Grouping(vendor_mach_num)=1) THEN
    'SubTotal' ELSE vendor_mach_num END AS vendor_mach_num,"
    CommandText += " Sum(remotemonitoring.price) as Tcost, "
    commandText +=" sum(dbo.remotemonitoring.amount) as
    amount,bin,vendmastnew.username,vendmastnew.userpa ssword,vendmastnew.vna
    me,"
    CommandText += "From dbo.remotemonitoring inner join
    dbo.remotemonitoringmachines on dbo.remotemonitoring.eport =
    dbo.remotemonitoringmachines.eport inner join vendmastnew on
    dbo.vendmastnew.vendno=remotemonitoringmachines.ve ndor_num
    where dbo.vendmastnew.vendno is NOT NULL and
    dbo.remotemonitoringmachines.amount > 0 "
    CommandText += " Group By trandate,vendor_mach_num,bin WITh
    ROLLUP "

    Dim myConnection As New SqlConnection(ConnectionString)
    Dim myCommand As New SqlDataAdapter(CommandText,
    myConnection)

    Dim ds As New DataSet
    myCommand.Fill(ds)

    'Before DataBind - Add New Rows Here for Each Sub Heading
    Dim curCat As String
    Dim prevCat As String
    Dim i As Integer = 0

    Do While i <= ds.Tables(0).Rows.Count - 1
    curCat = ds.Tables(0).Rows(i).Item(0)
    If curCat <> prevCat Then
    prevCat = curCat
    Dim shRow As DataRow = ds.Tables(0).NewRow
    shRow(1) = ds.Tables(0).Rows(i).Item(0)
    'Change ItemDataBound marker to Negative Number
    shRow(2) = -1
    ds.Tables(0).Rows.InsertAt(shRow, i)

    i += 1
    End If

    i += 1
    Loop
    'End Insert SubHeadings

    'Change the Text in the Last Column so it can be formated in
    ItemDataBound
    ds.Tables(0).Rows(ds.Tables(0).Rows.Count - 1).Item(1) =
    "Total"

    DataGrid1.DataSource = ds
    DataGrid1.DataBind()

    End Sub

    Private Sub DataGrid1_ItemDataBound(sender As Object, e As
    DataGridItemEventArgs)
    Select Case e.Item.ItemType
    Case ListItemType.AlternatingItem, ListItemType.Item
    If e.Item.Cells(1).Text.Equals("-1") Then
    'Format the SubHeading Columns
    e.Item.Cells(0).Attributes.Add("align", "Left")
    e.Item.Cells(0).ColumnSpan = 3
    e.Item.Cells(0).Font.Bold = True
    e.Item.Cells.RemoveAt(2)
    e.Item.Cells.RemoveAt(1)
    e.Item.BackColor = Color.FromArgb(204,204,255)
    End If
    If e.Item.Cells(0).Text.Equals("Total") Then
    'Format the Main total column
    e.Item.Cells(0).Attributes.Add("align", "Left")
    e.Item.Cells(0).Font.Bold = True
    e.Item.Cells(1).Font.Bold = True
    e.Item.Cells(2).Font.Bold = True
    e.Item.BackColor = Color.FromArgb(204,153,255)
    End If
    If e.Item.Cells(0).Text.Equals("SubTotal") Then
    'Format the subtotal columns.
    e.Item.Cells(0).Attributes.Add("align", "Left")
    e.Item.Cells(0).Text = "Sub Totals"
    e.Item.Cells(0).Font.Bold = True
    e.Item.Cells(1).Font.Bold = True
    e.Item.Cells(2).Font.Bold = True
    e.Item.Cells(0).Font.Italic = True
    e.Item.Cells(1).Font.Italic = True
    e.Item.Cells(2).Font.Italic = True
    End If
    End Select
    End Sub

    </script>

    <form runat="server">
    <asp:datagrid id="DataGrid1" runat="server"
    OnItemDataBound="DataGrid1_ItemDataBound" CellSpacing="1"
    GridLines="None" CellPadding="3" BackColor="White" ForeColor="Blue"
    EnableViewState="False" AutoGenerateColumns="False">
    <HeaderStyle font-bold="True" forecolor="White"
    backcolor="#A4BEEA"HeaderStyle>
    <ItemStyle backcolor="#A4BEEA"></ItemStyle>
    <Columns>
    <asp:BoundColumn DataField="trandate"
    HeaderText="Date"></asp:BoundColumn>
    <asp:BoundColumn DataField="vendor_mach_num"

    <asp:BoundColumn DataField="tcost"
    HeaderText="total cost"></asp:BoundColumn>




    </Columns>
    </asp:datagrid>
    </form>


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Kaushik Mandal Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139