User Profile

Collapse

Profile Sidebar

Collapse
vegetable21
vegetable21
Last Activity: Dec 16 '09, 05:38 PM
Joined: Sep 13 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vegetable21
    started a topic Version issues when upgrading webparts

    Version issues when upgrading webparts

    Hi all,

    I've been having an issue with my webparts for some time now, i'll try and explain it as best as i can:
    • ASP.NET website using webparts and forms authentication.
    • Multiple custom webparts built using ascx and extending the webpart class.
    • User settings stored in Personalisation database.
    • Using the WebPartManager in Microsoft.Web.P review
    • Using a custom derived CatalogZone


    The issue is that i have...
    See more | Go to post

  • vegetable21
    replied to Rank by 2 columns in mysql
    thanks chaarmann, i found that link not long after i posted the last response.

    i have now got it doing exactly what i want using the array_multisort (), the documentation on php.net is pretty rubbish on this but yes you are right you need an index to sort the array against. it's still quite slow, but not half as slow when i was getting SQL to do the sorting, and when i consider the amount i'm trying to make it do its pretty fast.
    ...
    See more | Go to post

    Leave a comment:


  • vegetable21
    replied to Rank by 2 columns in mysql
    wizardry, that's what I had originally thought that it would be better to let the database do the ranking but then the time delay started creeping in.

    I think I would like to know how to implement both solutions that wizardry and chaarmann have eluded to,

    1) if someone could advise me the correct way to implement the array sort using my example in my last post, I would be eternally grateful.

    &
    ...
    See more | Go to post

    Leave a comment:


  • vegetable21
    replied to Rank by 2 columns in mysql
    Ah I c, that would explain a lot! many thanks for pointing that out!

    However I now have another problem in that I can't sort the array in php properly.
    Code:
    bool array_multisort ( array $arr [, mixed $arg [, mixed $... ]] )
    For Example:
    Code:
    $sql = "SELECT `name`, `company_id`, `year`, `Turnover` FROM `data` WHERE `year` = '2007';";
    $result = mysql_query($sql, $conn);
    if (!$result) { die("Invalid
    ...
    See more | Go to post

    Leave a comment:


  • bump

    would still love a solution to this

    bump
    See more | Go to post

    Leave a comment:


  • vegetable21
    started a topic Rank by 2 columns in mysql

    Rank by 2 columns in mysql

    Hi All,

    I'll try and explain as best as possible what I'm trying to do and hopefully someone can tell me the best way to do it!

    I'm basically trying to rank by 2 columns in mysql/php, by this i mean i have a column called `Turnover` and one of `Cash` I would like to display each column in a table with its ranking in the column to the right.

    So far i have:

    Code:
    include ("database.php");
    ...
    See more | Go to post

  • lol, i feel like such a n00b!

    Many thanks for pointing that out!
    See more | Go to post

    Leave a comment:


  • vegetable21
    started a topic document.getElementById is null problem

    document.getElementById is null problem

    Hi,

    I'm relatively new to JavaScript, but not to programming.

    I'm trying to get a table to expand and collapse within a cell of my master table. However i want to collapse all the other open tables when i expand a new one. I'm nearly there but i get an error that i can't seem to shake.

    Firefox show me the error as the following:

    Error: document.getEle mentById("more" + i) is null...
    See more | Go to post

  • OK, thanks.

    I'll try explaining what i'm trying to do and see if someone can suggest an alternate method!

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
      <head>
        <meta http-equiv="content-type"
    ...
    See more | Go to post

    Leave a comment:


  • vegetable21
    replied to C# HttpWebRequest returns incomplete HTML
    in .NET
    Nope,

    I'll attempt to explain what i mean more clearly:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
      <head>
        <meta http-equiv="content-type" content="text/html;
    ...
    See more | Go to post

    Leave a comment:


  • vegetable21
    replied to C# HttpWebRequest returns incomplete HTML
    in .NET
    Thanks,

    I've tried webBroswer.Docu mentText but i'm not getting what is on screen, i'm just getting the source code.

    If someone could explain how i get the screen output in html form rather than just the source code would very much appreciate it!
    See more | Go to post

    Leave a comment:


  • Ok Thanks,

    Can you provide an example of how i can evaluate it in my context?

    I can view the source in my browser but that's not the problem, i'm missing some! The items displayed in the browser differ to what's in the source code.

    I need the output of the JavaScript functions displayed in the view source.
    See more | Go to post

    Leave a comment:


  • vegetable21
    replied to C# HttpWebRequest returns incomplete HTML
    in .NET
    OK,

    I've now discovered that i can't do what i need to do with HttpWebRequest, as it's just a request, as i want the JavaScript executed i'm gona need some sort of client side technology.

    So now i'm tyring to use the WebBrowser control, no problems here except again i can't get anything other than the source code.

    How do i get all the HTML that is used to display the page?

    Help much appreciated!...
    See more | Go to post

    Leave a comment:


  • Difference between page source and what's being displayed

    Hi All,

    (I originally posted this in the .NET Programming Languages, but i realised the fact that i'm using C# is irrelevant as i think the problem i'm having is with DHTML / JavaScript.)

    So here goes again:

    I'm writing an app in C# that will be doing a bit of web scraping. I've got a fair bit of expierence with this but i've come across an issue with the returned HTML i'm getting from the pages.
    ...
    See more | Go to post

  • vegetable21
    started a topic C# HttpWebRequest returns incomplete HTML
    in .NET

    C# HttpWebRequest returns incomplete HTML

    Hi All,

    I'm writing an app in C# that will be doing a bit of web scraping. I've got a fair bit of expierence with this but i've come across an issue with the returned HTML i'm getting from the pages.

    When i view the page i'm trying to scrape in a website all is well, and i can see a 'Services' section on the bottom of the page, however when i do a view source on the page, the corresponding code is missing for that part...
    See more | Go to post
No activity results to display
Show More
Working...