CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Thread: ASP page

  1. #1
    Join Date
    Jul 1999
    Posts
    58

    ASP page

    example1. <a href="/e-BIZwebSample/CatalogResellersGrid.asp?WebGridActionString=NavBar_1&WebGridInitialized=True"></a>

    example2. <a href="/e-BIZwebSample/CatalogResellersGrid.asp></a>

    what is the different between the 1. and 2.??
    why there is a string after the '?' at the example1 and what it is for?



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: ASP page

    the difference is that the second example is invalid, because the closing yuotes in your href are missing. Just kidding :-)

    the stuff after the "?" are parameters that you can easily access in your ASP using the Request.QueryString method.
    as = request.Querystring("WebGridActionString")
    ' will contain "NavBar_1"


  3. #3
    Join Date
    Jul 1999
    Posts
    58

    Re: ASP page

    hai lothar....

    but why example1 and example2 show different page? normally when we set the link, the page is end with either '.asp' or '.html'..

    how am i going to create a web page with a url that same like example1???

    thanks again for the info...

    ^o^..shvonne... glad to see the word 'just kidding'... =)


  4. #4
    Join Date
    May 1999
    Posts
    3,332

    Re: ASP page

    that's probably because the ASP responds differenly, depending on the parameters passed.
    It could look like this:
    if request.Querystring ("Web..." ) <> "" then
    response.redirect "some other page"
    end if
    or the ASP could just create a different output depending on the parameters passed.


  5. #5
    Join Date
    Jul 1999
    Posts
    58

    Re: ASP page

    ic... it wipe out the '???' sign in my head.. thanks a lot...

    oh ya, do u know how to show a graph in ASP page base on the data in database? is it just same like what we are doing in visual basic?? if i use VB to generate the graph, can i view it in the browser which didn't support VBscript?

    ^o^...


  6. #6
    Join Date
    May 1999
    Posts
    3,332

    Re: ASP page

    there are several ways to create a graph and show it in an ASP
    - use third party COM components that allow to create graphs in your ASP based VBScript code.
    check out http://www.15seconds.com
    - write your own server based COM component in VB and use the graph control
    - run Excel on the server and use Excel in your ASP using automation. That's just a theoretical approach. It's probably way too slow.
    - use PERL (and GDLib) to create a GIF on the fly.
    ...

    Again, I think you'll find a few solutions on http://www.15seconds.com


  7. #7
    Join Date
    Jul 1999
    Posts
    58

    Re: ASP page

    thanks again lothar...

    there is one more question here... do i need to refresh the page that i currently view everytime in order to get updated info???


  8. #8
    Join Date
    May 1999
    Posts
    3,332

    Re: ASP page

    unless you apply some auto-refresh mechanism, e.g. META
    <meta HTTP-EQUIV="REFRESH" CONTENT="600;url=yourasp.asp">


  9. #9
    Join Date
    Jul 1999
    Posts
    58

    Re: ASP page

    thanks again... ^o^


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured