User Profile

Collapse

Profile Sidebar

Collapse
Merlin1857
Merlin1857
Last Activity: Feb 28 '08, 08:50 AM
Joined: Sep 8 '07
Location: Nottingham
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Try this :

    Code:
     
    This code provides for the export of data from SQL server to Excel via two asp pages.
    You coould go directly to the 02extoex.asp page without showing 01viewdata.asp which
    is only there to show the user the data first.
    
    =============================================================== 
    
    PAGE ONE CALLED 01viewdata.asp :
    
    <%@ Language=VBScript %>
    <!-- #include
    ...
    See more | Go to post

    Leave a comment:


  • Hi,


    You need to make the folder in which your database is stored a writable folder. Access it, right click it and go to the properties option, then access the 'Security' tab access the anonymous users listed (usually the last in the list) and in the Permissions fo USers window below allow Write permissions.

    Good Luck
    See more | Go to post

    Leave a comment:


  • Merlin1857
    started a topic How To Highlight Searched For Text

    How To Highlight Searched For Text

    A thing I have been asked for on a number of occasions is the ability to highlight text after its been searched for in a record return page. The following does this perfectly.

    Use this function within your record return page :

    Code:
     
     
    'Highlight searched for text function
    Function Highlight(strText, strFind, strBefore, strAfter)
    Dim nPos
    Dim nLen
    Dim nLenAll
     
    nLen = Len(strFind)
    ...
    See more | Go to post

  • Merlin1857
    started a topic Text Box Editor

    Text Box Editor

    Can anyone recommend a good text box editor using pure ASP please. I have looked at Free Text Box but that now runs as ASP.Net
    See more | Go to post

  • Merlin1857
    replied to Help about Pagination in ASP
    Hi,

    If you are using SQL server I have some superb code to allow pagination of records. Let me know and I will pass it on....
    See more | Go to post

    Leave a comment:


  • Merlin1857
    started a topic How To Export Your Displayed Data To Excel

    How To Export Your Displayed Data To Excel

    Its great producing data for users to look at in your web pages and generally that is sufficient for their needs but sometimes you may want to supply your user with the data in a form they can actually do something more with. This code shows you how to display data from your database and then how to give that data to the user in the form of a useable Excel spreadsheet which they can then take away and play with themselves. The way I have shown this...
    See more | Go to post

  • Merlin1857
    started a topic How To Dynamically Search A Database Table

    How To Dynamically Search A Database Table

    How to search multiple fields using ASP

    A major issue for me when I first started writing in VB Script was constructing the ability to search a table using multiple field input from a form and having the sql statement dynamically built according to the input provided by the user. I have used the method described here hundreds of times it is quick and adaptive. I generally use a frames page for the search, in this way the search is maintained...
    See more | Go to post

  • Merlin1857
    replied to Get Sql Date Format
    Does this help, it formats todays date to include the date and the whole time too.

    Code:
     CONVERT(DateTime,GetDate(), 103)
    You can feed it into a stored procedure like this :

    Code:
     @Date varchar(10), -- The variable coming into the stored procedure. 
    Date = CONVERT(DateTime,@Date, 103) -- The variable into the convert function.
    See more | Go to post

    Leave a comment:


  • Jared, Thanks for the reply on that, could you flesh it out a little more please.

    Steve...
    See more | Go to post

    Leave a comment:


  • Merlin1857
    replied to ASP Paging using array ?
    I found a really good way of paging using temporary tables in SQL server returning it to ASP. The nice thing about it is the temp table only grabs the number of results you want and not the whole recordset each time. It works like a dream. If you want it let me know.
    See more | Go to post

    Leave a comment:


  • Merlin1857
    replied to Problem exporting to MS Excel
    Try this :

    This code provides for the export of data from SQL server to Excel via two asp pages.
    You could go directly to the 02extoex.asp page without showing 01viewdata.asp which
    is only there to show the user the data first.

    =============== =============== =============== =============== ===

    PAGE ONE CALLED 01viewdata.asp :
    [code=asp]
    <%@ Language=VBScri pt %>
    <!--...
    See more | Go to post
    Last edited by jhardman; Sep 8 '07, 08:01 PM. Reason: put code in code tags. Please use code tags in the future.

    Leave a comment:


  • Merlin1857
    replied to Display a latest Data Only
    Do you just want to return the last record which was entered ?
    See more | Go to post

    Leave a comment:


  • Merlin1857
    replied to asp if statements with hyperlinks
    I recently had to use a select statement with 40 different outcomes where on analysis of what came back from the database I fed differing strings into a variable which displayed different buttons going to different pages displaying different messages on hover over the button. I also fed variables into the variable itself . Worked really well, let me know if you would like the code.

    Steve M
    See more | Go to post

    Leave a comment:


  • Merlin1857
    started a topic Killing The Browser Search History

    Killing The Browser Search History

    Hi, does anyone know how to programatically kill a browsers search history on exiting a web application. I am writing a complex ASP app for a company and to make sure that previously seen pages during a session cannot be recalled using the various tools which allow this in IE for example I would like a method which, if the user logs out properly will delete the entire bowsers memory.
    See more | Go to post
No activity results to display
Show More
Working...