DaveAmour 160 Mmmmmm beer Featured Poster

You haven't removed the horizontal spacing.

Is this any good? Its a very quick hack - I'm sure you can tidy it up a bit.

http://www.paxium.co.uk/content/daniweb/menu.html

DaveAmour 160 Mmmmmm beer Featured Poster

Try changing

            #menu ul li a:hover + ul
            {
                display: block;
            }

To

        #menu ul li:hover > ul
        {
            display: block;
        }

Also remove horiztinal spacing with something like margin: 0; padding: 0; on #menu ul li ul li

DaveAmour 160 Mmmmmm beer Featured Poster

Sure there are many ways to fix this.

You could do it like this for example:

        private void btnDisplayScores_Click(object sender, EventArgs e)
        {
            var nonZeroData = intScoreTotalsArray.Where(v => v > 0).ToArray();

            Array.Sort(nonZeroData);

            string numbersString = "";

            for (int i = 0; i < nonZeroData.Length; i++)
            {
                numbersString += nonZeroData[i] + "\n";
            }

            MessageBox.Show(numbersString, "Score Array");
        }

The important thing is that you understand why it is misbehaving and how I have fixed it.

DaveAmour 160 Mmmmmm beer Featured Poster

This is called screenscraping but you must get the permission of the website owners before you use this.

DaveAmour 160 Mmmmmm beer Featured Poster

Youre welcome

DaveAmour 160 Mmmmmm beer Featured Poster

$("#firsttearesult").val(diffHour + " " + diffMins);

DaveAmour 160 Mmmmmm beer Featured Poster

You can always remote desktop to your pc at home and use that.

DaveAmour 160 Mmmmmm beer Featured Poster

Hi and Welcome

DaveAmour 160 Mmmmmm beer Featured Poster

You say that "I am displaying images from db dynamically"

As I said the next step is to instead of that, display your categories from your database.

Are you able to do that - can you show me your existing code for displaying images from db dynamically?

DaveAmour 160 Mmmmmm beer Featured Poster

You also need to add in some error handling.

What if they enter non numeric data?

What happens if they try and add more than 20 items?

Let me know how you get on and if you need help with any other bits?

DaveAmour 160 Mmmmmm beer Featured Poster

Next to add numbers to the array just use:

intScoreTotalsArray[intScoreCount] = intScore;

Put this in your button click event handler like this:

        private void btnAdd_Click(object sender, EventArgs e)
        {
            int intScore = 0;

            Int32.TryParse(txtScore.Text, out intScore);

            intScoreTotalsArray[intScoreCount] = intScore;

            intScoreCount++;

            txtScoreTotal.ToString();
            txtScoreCount.Text = intScoreCount.ToString();

            txtScore.Focus();
            txtScore.SelectAll();
        }
DaveAmour 160 Mmmmmm beer Featured Poster

Ok I have this running now.

One thing at a time.

Firstly to display vertically you just need:

numbersString += intScoreTotalsArray[i] + "\n";

DaveAmour 160 Mmmmmm beer Featured Poster

The coloured walls one doesn't work for me either :(

DaveAmour 160 Mmmmmm beer Featured Poster

You need something like below on or around line 57

    p[0] = new pottertr_Point();
    p[1] = new pottertr_Point();
    p[2] = new pottertr_Point();
DaveAmour 160 Mmmmmm beer Featured Poster

I need the autogenerated code too. Your form is a partial class. Visual Studio will also have created a partial class into which it puts the C# code to generate the form controls which you have dragged and dropped onto your form. I need this too.

Thanks

DaveAmour 160 Mmmmmm beer Featured Poster

It cuts off at line 69 - maybe there is a size limit on the forum?

DaveAmour 160 Mmmmmm beer Featured Poster

Loveley

DaveAmour 160 Mmmmmm beer Featured Poster

You need to switch on Response Buffering. I'm not a php developer but foud this link:

http://php.net/manual/en/function.ob-start.php

DaveAmour 160 Mmmmmm beer Featured Poster

I don't understand that one Jim

DaveAmour 160 Mmmmmm beer Featured Poster

And lo and behold Ryan is spamming us already!

DaveAmour 160 Mmmmmm beer Featured Poster

Typically MySQL goes hand in hand with php but you can use any you like.

DaveAmour 160 Mmmmmm beer Featured Poster

Poly means many and morph means form or shape. It is the phenomenum of things being able to exist in different forms. If you have a Cat class which inherits from an Animal class and also implements an ISerializable interface then in your code you can create an instance of cat but refer to it as a Cat, an Animal or an ISerializable. Theres a lot more to it than that but that is the fundamental idea.

DaveAmour 160 Mmmmmm beer Featured Poster

I love optical illusions and they normally work on me but in the following one you are supposed to be able to see a red pill and a blue pill when in fact they are both grey. I see them both as grey though - does anyone else see red and blue?

http://i.dailymail.co.uk/i/pix/2015/03/30/16/27244D7D00000578-3018215-image-a-2_1427727872594.jpg

This is one of my all time favorites.

http://en.wikipedia.org/wiki/Checker_shadow_illusion

If you want some fun, print this one out twice. Cut out square A and then slide it from A to B on the other printout. You see it amazingly change colour as you slide it!

Print it out from here:

http://en.wikipedia.org/wiki/Checker_shadow_illusion#/media/File:Grey_square_optical_illusion.PNG

DaveAmour 160 Mmmmmm beer Featured Poster

Well you are currently displaying images from your database.

Instead of that, display your categories from your database.

Display these as a collection of links.

Wach link can have a querystring on the end eg:

<a hre="http://www.mysite.com/mypage.aspx?cat=1">Category 1</a>
<a hre="http://www.mysite.com/mypage.aspx?cat=2">Category 2</a>
<a hre="http://www.mysite.com/mypage.aspx?cat=3">Category 3</a>

Then when users click on the link, in mypage you read in the category id from the querystring and use this to construct your sql statement to only select images in that category and then display those as you are doing now.

I have no idea what technologies or langues you are using by the way as you just posted this in Web Development.

DaveAmour 160 Mmmmmm beer Featured Poster
DaveAmour 160 Mmmmmm beer Featured Poster
DaveAmour 160 Mmmmmm beer Featured Poster

I agree

Its difficult to poilce this automatically but how about a rule where all new users first post has to be approved? I don't know how many admins are on here but there are not that many new posts from new members that it can't be done. Its more about making sure you have admins around the globe who cover the 24 hour period.

DaveAmour 160 Mmmmmm beer Featured Poster

Are you able to post all of the form code so I can copy and paste it and it will work? This includes auto generated code for the controls etc.

DaveAmour 160 Mmmmmm beer Featured Poster

I just re read my answers and realised I didn't read your question properly and got mixed up with your contact page and the final page so just ignore all the stuff I said!

DaveAmour 160 Mmmmmm beer Featured Poster

Eg <p><span>Name</span><input class="contact" type="text" name="your_name" value="<%=yourname%>" /></p>

DaveAmour 160 Mmmmmm beer Featured Poster

I think you will need QueryString not Form

Dim yourname As String = Request.QueryString("your_name")

You can then either make the input a proper asp textbox and set it's value in code behind, or you can just inject it into the page into the value attribute.

Hoep that makes sense.

DaveAmour 160 Mmmmmm beer Featured Poster

Happy to help.

DaveAmour 160 Mmmmmm beer Featured Poster

Ok so if you want to check whether they overlap OR fall within completley then just use:

If ((Range1.FromDate > Range2.FromDate And Range1.FromDate < Range2.ToDate) Or (Range1.ToDate > Range2.FromDate And Range1.ToDate < Range2.ToDate)) Then
    /* Range 1 falls completley within Range2 or overlaps */
End If

So I just changed the And to an Or

DaveAmour 160 Mmmmmm beer Featured Poster

Ok so given date range 1 and date range 2

This is pseudo code:

If ((Range1.FromDate > Range2.FromDate And Range1.FromDate < Range2.ToDate) And (Range1.ToDate > Range2.FromDate And Range1.ToDate < Range2.ToDate)) Then
    /* Range 1 falls completley within Range2 */
End If
DaveAmour 160 Mmmmmm beer Featured Poster

Yep I often edit but couldn't this time so the 30 minutes must have passed :(

DaveAmour 160 Mmmmmm beer Featured Poster

Do you want to check only if one range overlaps another or whether it is completely within as well - ie any of them or just overlap?

DaveAmour 160 Mmmmmm beer Featured Poster

Sorry my previous post has a typo in which may make it unclear.

It should read

"Ok so first question is how do users choose which id to search on - is that typed into a textbox maybe?" - ie do instead of to

DaveAmour 160 Mmmmmm beer Featured Poster

What do you mean by "falling under another range"?

I guess you could mean does one date range overlap another or does it exist completley within another date range.

Which of these is it that you need?

DaveAmour 160 Mmmmmm beer Featured Poster

Ok so first question is how to users choose which id to search on - is that typed into a textbox maybe?

DaveAmour 160 Mmmmmm beer Featured Poster

Where are your customer records - are they in a database?

Also this is WinForms right?

DaveAmour 160 Mmmmmm beer Featured Poster

What is folder type?

DaveAmour 160 Mmmmmm beer Featured Poster

You need:

if ($a == "Employed, Locally" or $a == "Employed, Abroad")

DaveAmour 160 Mmmmmm beer Featured Poster

Hi

You are setting words1 to the length, change it to:

var words1 = str1.split(' ');

Then change your if statement to:

if (words1.length > 60)

Also you should probably initialise newstr with:

var newstr = "";

Also a note on style. Don't use variable names like words1 and newstr - make variable names describe what they are for. It will make it easier for other people and yourself to understand and work with.

Hopefully that makes sense?

DaveAmour 160 Mmmmmm beer Featured Poster

Destructors are used - read my article if you have time

DaveAmour 160 Mmmmmm beer Featured Poster

Ok in any case apart from the fact that your code is structured badly (we canleave that for now), you are checking if ds is null. It never will be as you are creating it like this:

DataSet ds = new DataSet();

Instead try maybe counting how many rows you have?

DaveAmour 160 Mmmmmm beer Featured Poster

This doesn't look like C, looks like C# to me!

DaveAmour 160 Mmmmmm beer Featured Poster

No

DaveAmour 160 Mmmmmm beer Featured Poster

Yes sure I wouldn't trust me if I saw my picture too!

DaveAmour 160 Mmmmmm beer Featured Poster

Can we see the real url or is it secret?

DaveAmour 160 Mmmmmm beer Featured Poster

Is that the actual address?