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.
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.
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
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.
This is called screenscraping but you must get the permission of the website owners before you use this.
Youre welcome
$("#firsttearesult").val(diffHour + " " + diffMins);
You can always remote desktop to your pc at home and use that.
Hi and Welcome
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?
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?
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();
}
Ok I have this running now.
One thing at a time.
Firstly to display vertically you just need:
numbersString += intScoreTotalsArray[i] + "\n";
The coloured walls one doesn't work for me either :(
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();
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
It cuts off at line 69 - maybe there is a size limit on the forum?
Loveley
You need to switch on Response Buffering. I'm not a php developer but foud this link:
I don't understand that one Jim
And lo and behold Ryan is spamming us already!
Typically MySQL goes hand in hand with php but you can use any you like.
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.
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
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.
I agree its important to know your tools and how to use them correctly.
http://i1.wp.com/www.bitsandpieces.us/wp-content/uploads/2013/07/umbrella-fail.jpg?resize=566%2C720
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.
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.
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!
Eg <p><span>Name</span><input class="contact" type="text" name="your_name" value="<%=yourname%>" /></p>
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.
Happy to help.
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
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
Yep I often edit but couldn't this time so the 30 minutes must have passed :(
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?
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
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?
Ok so first question is how to users choose which id to search on - is that typed into a textbox maybe?
Where are your customer records - are they in a database?
Also this is WinForms right?
What is folder type?
You need:
if ($a == "Employed, Locally" or $a == "Employed, Abroad")
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?
Destructors are used - read my article if you have time
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?
This doesn't look like C, looks like C# to me!
Yes sure I wouldn't trust me if I saw my picture too!
Can we see the real url or is it secret?
Is that the actual address?