Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

One statement that has come up in past discussions relating to the DIV vs. Table debate has to do with loading priority of the components themselves. Tables will not load any content until ALL content for the table is present whereas DIVs (being individual content blocks and technically each 'cell' is separate from the other) load as the content is present. This allows for smoother page loading from my understanding of it.

However, I could be talking out my ass as I've never directly compared the two.

What I do know is that the 'industry standard' these days is DIVs due to additional layout flexibility and capabilities that DIVs provide.

For those situations where you are concerned about cross-browser compatibility... Most browsers are fairly uniform in the way they handle DIV formatting. Notable exception here being Internet Explorer.

I'm not going to bash Microsoft here but if you do a quick search of DaniWeb's forums under the search term "Internet Explorer" or "IE" you'll likely come up with dozens upon dozens of posts related to layout issues in IE. The silver lining here, however, is that the latest version of IE seems to finally be catching up with the pack in it's ability to handle diverse formatting abilities that it didn't handle properly before. Also, as mentioned above, there are workarounds that can be used on older versions.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Realistically you can accomplish the same results with either language. In the end it's a matter of your personal preference and comfort level with either language.

Personally I prefer C# but that's because that's what I know.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Using the page_load process to re-check cookie validity should allow it to check whether the 'item' is current or expired each time the page reloads (ie: postback).

By alternating between !IsPostBack and IsPostBack respectively you can customize your page_load to act differently for new page loads vs postback loads as a result of 'form' submissions.

Once a cookie is 'expired' a simple check to see the current state of the cookie should show that. Yes, it may still 'exist' in the browser cache but in an expired state so you just need to determine not only if a cookie exists, but also it's state when checking the cookie and your issue should be solved.

Hope that helps :) Please remember to mark your thread solved once the issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Just speaking from my own experience/point of view...

I find that seeing this (pic attached) does very much clutter the list for a forum that I'm reading.

Generally, in forums I'm reading, if they've been moved it's because they didn't belong there... and therefor I don't need/want to see them.

Additionally, when I occasionally hit the "mark forum as read" link, these ones still often show as unread (purple filled icon) anyway unless I do it a couple of times.

Again, just tossing in my 2 cents.

BTW, the ones below are from the feedback forum and as I said, not related to the feedback forum and not of interest to me to have them in my list :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Good to know :)

I, personally, have no issue with page load times when using the advanced editor but I suppose some do.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Hate to say it, but I don't think jon.k was being rude.

I never said 'rude' I said... "more than a little bit excessive in the aggressiveness category."

I also never said I 100% disagreed with what he was saying, merely how he was saying it :twisted: There is a difference between 'criticism' and 'attack' and it can be a very fine line between the two sometimes.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I'm the kind of person who almost always likes to use the 'advanced' editor when posting threads/replies.

That being said, I've tried changing the setting from Basic to Standard in my CP but I see no option for 'Advanced' in there.

The only reason I bring this up is because it seems that I still have to transition from the basic editor to the advanced editor when posting replies and I was kind of hoping there would be a way to set it so I always default to the advanced editor.

On a side note, it seems when posting new threads (such as this one) that I default to the advanced so I'm not sure if it's ONLY the replies that are defaulting to the non-advanced editor or what the story is.

Edit: Ok, so it's new = advanced and reply/edit = non-advanced... personally I'd like all to default to advanced if a flag is set on the user CP.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

He's talking about VS 2010, which is Net 4.

My bad then... wasn't 100% on whether it was inclusive of .Net 4 since I hadn't really paid attention and thought my VS2010 was up to 3.5 :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Closest you're going to find in C# is Int64 as far as I know.

From what I'm gathering in .Net 3.x BigInt was removed but may be making a comeback in .Net 4.x.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Ok... I may be missing something here but...

Nowhere in the code you provided does the term 'nvarchar' exist.

So either the issue is not with the portion you provided (ie: in code-behind or in a stored procedure on the DB end) or the error is being relayed incorrectly by you to us :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Just above the box where you post replies you should see the link to 'solve' the thread.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

if I wanted to read poorly-rewritten wire copy and half-baked reviews of pointless video games, I'd just surf the web. No need to come here for that. ... you will not be the ones generating that news. You haven't got the resources to consistently deliver the breaking news, and you haven't got the gravitas to be a tech-news site of record, and the aggregator business is already being done quite well elsewhere. ... And pretending that this is news is just a waste of everyone's time.

Ok, I'll be honest... DW is not my source for breaking tech news... That being said, I don't really go looking for 'breaking tech news' in the first place.

I don't really think that the sole purpose of this endeavour is to be the premier news source on the web for tech info.

I have to say, however, that your point of view on the matter is more than a little bit excessive in the aggressiveness category. If I read it correctly there were no claims to being a professional news service. There were no claims to having world class investigative reporters on the team. There was simply a request to the community for information on topics of interest and feedback on the current news service being provided.

I see no harm in an online community's leadership attempting to reach out to their members and provide additional services and value for their members.

Yes, there are many reputable sources of …

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

You'll need to fix the following as well as implementing your search:

DateTime search1 = new DateTime();
string s =  search1.ToString(Console.ReadLine());

I'll rephrase that..you ought ot fix it. Apparently the output is correct, but it is not the intended use of the method and may have unexpected results down the line.

Actually, I'm surprised I missed that myself.

Realistically, unless he's converting the info in the text file to dateTime format for local variable comparison, the dateTime portion doesn't need to exist at all and can entirely be handled by strings. The only place where he would need dateTime is if he was working with a webform or windows form where the inputs would possibly be coming from a date/time picker. In console it's all text and can be done entirely with strings.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I just hope it was more helpful the way I put it the 2nd time (and that I didn't botch the loop/condition)... it took me the length of 2 replies and 1 edit to your first reply to type it all out lol.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

OK... I'll try again...

You used:

Console.WriteLine("Enter the date in format {dd/mm/yyyy} :: ");
            date = DateTime.Parse(Console.ReadLine());
            sw.WriteLine("-------------------------------------------");
            sw.WriteLine("Date :: "+date); // User Input Date
           

            Console.WriteLine("Enter the name of the person you want to meet :: ");
            name = Console.ReadLine();
            sw.WriteLine("Name of the person :: "+name); // User Input Name
           

            Console.WriteLine("Enter the your visit time in format {HH:MM:SS} :: ");
            time = DateTime.Parse(Console.ReadLine());
            sw.WriteLine("Visit time :: "+time); // User Input Time
            sw.WriteLine("-------------------------------------------\n");
            sw.Close();

Now, personally... Where you have the following:

public void search()
        {
            string fName = @"C:\Data.txt ";
            StreamReader testTxt = new StreamReader(fName);
            string allRead = testTxt.ReadToEnd();
             
            Console.WriteLine("Enter the date in format {dd/mm/yyyy} :: ");
            DateTime search1 = new DateTime(); 
            string s =  search1.ToString(Console.ReadLine());
            
       
            if (allRead.Contains(s))
            {
               Console.WriteLine("Found");
             
            }
            else
            {
                Console.WriteLine("not found");
            }

            testTxt.Close();
        }

I would do the following instead:

public void search()
        {
            string fName = @"C:\Data.txt ";
            StreamReader testTxt = new StreamReader(fName);
            // string allRead = testTxt.ReadToEnd();
             
            Console.WriteLine("Enter the date in format {dd/mm/yyyy} :: ");
            DateTime search1 = new DateTime(); 
            string s =  search1.ToString(Console.ReadLine());
            r2 = testTxt.ReadLine()
            bool found = false;
            while (r2 != null && found == false)
            {
                if (r2.Contains(s))
                {
                    Console.WriteLine("found");
                    string tmpRead = "";
                    Console.WriteLine("{0}", r2); // Print Date Found
                    tmpRead = testTxt.ReadLine(); // Read Next Line and Print Name
                    Console.WriteLine("{0}", tmpRead);
                    tmpRead = testTxt.ReadLine(); // Read Next Line and Print Time
                    Console.WriteLine("{0}", tmpRead);
                    found == true
                }
            }
            else
            {
                Console.WriteLine("not found");
            }

            testTxt.Close();
        }

The only drawback to this method being that it will display …

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Where do you secure a website?

Are you referring to securing directories/content against outside viewing? Or are you talking about a secure (read: SSL) connection?

If you're talking about content protection there's a number of approaches that can be taken from physically password protecting directories to masking directory locations and setting up password/login pages with indirect links to content and others. Some of this can be set up on the provider end, many times these will be 'adjustable' through the user control panel they provide you.

If you're talking about setting up secure connection (SSL) then you need to purchase an SSL Certificate (usually via your provider since it is server specific).

Without knowing specifically what you are looking for, unfortunately, can't be more specific in the help provided.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Without going through all of the code you provided (it's getting late here, I'm sorry) I can say you have the right general idea on the z-index portion.

The higher the number, the further 'forward' it's position in relation to what's lower in number.

That being said, some content types (flash for example) don't like to play well with z-indexed content and will always 'force' themselves to be on top. There are others as well but flash was one that popped to mind when I was thinking of possible issues here.

I noted that you mentioned that you are more comfortable with tables and while I can sympathize, I should point out that the current trends in web design frown upon table use and lean toward divs.

What I might mention is that it may be helpful to check out some of the tutorials at w3schools as they may be very helpful in leading you in the right direction for your CSS and DIV issues.

Hope this helps :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Rather than go into great detail in providing the answer here I'll let others who've provided the answer in the past do my talking for me :twisted:

Below is a code snippet (recommended read for this topic) and a couple of related threads that may help you out:

Snippet (Thanks Ryshad)
Link containing links to other threads that will help

Hope these help solve your issue :) Please remember to mark your thread solved once the issue is resolved. Also, if these don't solve your issue, please provide more info as to what the problem is so we can be more specific with our help.

EDIT: Passing info between layers is similar to passing between forms. Please note the main part of the above snippet/links being that an 'instance' of each layer needs to exist in order to reference components between them.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I'll be honest I've never seen this type of 'animation' on a button before... that being said, does the physical BUTTON need to rotate? or just the 'visible' button component?

If the latter, perhaps a simple graphical overlay on the button which has an animated alternate graphic for when the mouseover hits it. Only drawback is, should you want the button to stay in the position it was in when the mouse leaves the mouseover then you're in a bit of trouble with that method.

Dunno what else to suggest to be honest, sorry.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Well you know how many lines the input should be (3 if I read it properly):

  1. Date
  2. Name
  3. Time

Soo....

If I were you I would take the line with the found date and the following 2 lines and input them into 3 corresponding variables.

i.e.:

  1. Found Date on Line 4
  2. Line 4 input into fDate variable
  3. Line 5 input into fName variable
  4. Line 6 input into fTime variable

Those would be the steps, the coding shouldn't be too much of a stretch from there :twisted:

Hope that helps, please remember to mark the thread solved once your issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Do you really want me to answer this question? Really? Are you sure? :twisted:

I could go into a page long tirade about my feelings on this issue but I'll hold off on that for now.

Yes, I will say right now that I've made a couple of mistakes (either from misunderstanding the question or being sleep deprived at the time of answering) but I also generally will not post a reply unless I'm pretty damned sure it's correct.

Yes, I've had to watch others who post blatantly incorrect information take the 'kudos' for an answer well given even when I know (sometimes from trying it myself) that it won't work at all and has just further confused the OP.

Yes, I've had that rage buildup inside me that could only result in broken computer equipment if I unleashed it as I don't have direct access to the people the rage was caused by.

That being said... at that point I generally just remove the thread from my notifications list and move on.

Personally, what irks me even MORE than what you've mentioned are the people who ask a question, get 2-3 excellent answers, say it's 'solved'... then come back 2 days later and ask the exact same question (or a variation of it) relating to another part of their code that's almost identical. Yes, I've seen 2-3 users in particular for whom 90%+ of their threads are repeats of earlier threads by them.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

>> Do not ask anyone (member or moderator) for help by email or PM

THANK YOU!!!! (Sorry for the all-caps :twisted: )

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

One thing to note about Rajarajan's solution that may not have been completely obvious...

As it needs to be a 'timeline' item (streaming or otherwise) it will only play for the duration of the timeline segment it is contained within.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

As a side note... Should you still find yourself unable to solve the issue...

Please set debug mode to ON so that future error messages actually state the following:

  1. What the error specifically involves
  2. What line of code contains the error
  3. The actual code from that line and the surrounding lines

You'd be surprised how helpful that kind of information can be when people are trying to troubleshoot code :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

My ip has been entered into the mysql remote host list in cpanel

The SQL server is set up where? On your machine? Remotely at some hosting provider? At the corner store down the street?

If it's set up on your machine then I hope to god you've got a non-dynamic IP address... if so just put the IP address of your machine where you have server= ...

If it's set up at some hosting provider, they should have information for you to know the specific location of the SQL server path as it would be accessed remotely. Generally this would equate to a longish URL/subpath combination specific to an address configured to your particular account node on their SQL server. Most web-host providers will have a link in their SQL server configuration section to show the specific location/URL for your server connection that you can copy to your program. Some even go so far as to provide an entire connection string.

If none of this helps, please post the actual error you're receiving so we can see better what the problem is :)

Hope this helps. Please don't forget to mark your thread solved once the issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Just tossing this out there...

My personal areas of interest are predominantly focused within the games industry. Info about new game releases, company expansions/mergers/splits/closures, new tech being used by the game industry... these are things that *I* would be interested in reading about.

As an example I recently read a product review about Starcraft II (and for those who wonder why my post count dropped dramatically lately, you can blame that game) and I enjoyed it, even if it was a bit heavily biased in favour of the game. Not saying one can't be in favour of the product one's reviewing but the article did come off a bit fanboi'ish :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Should be fixed.

Link Works for me now, so... short of there being some issue between donating vs. non-donating members it should be visible to all :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Gah, for the life of me I know where it should be but I can't recall it at this moment........

Are you using MS Visual C# (VS) for your coding? If so have you checked the References list for your project and the includes in your code?

Also, you could check in the .Designer.cs file(s) for references to the no longer used file(s).

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Accessing a database remotely is the exact same method as accessing it locally with only one major variation... the connection string.

Your connection string will need to point to one of the following:

  • The network address of the database
  • the URL of the database

Also, if you've been working with a local DB for production/testing purposes you may or may not have been utilizing windows authentication for your DB access (if you haven't required a un/pw in your connection string this is likely the case). For any remote DB connection, unless you're working on an infranet with something like Active Directory implemented in your connection, you'll need to utilize a un/pw security protocol for connecting to the DB.

As an additional note, if your DB server is not configured for remote access you will need to do so before you will be able to establish a remote connection from your application.

A few resources to look into that may help (depending on which type of DB you're using) are here:
Reference 1
Reference 2
Reference 3

Hope that helps :) Please remember to mark your thread solved once your issue is resolved. Also, if your issue is related to soemthing other than the above information, please feel free to provide more detailed information (database type, etc) so readers can better assist.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Fix'd!

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Your suggestion does not take into consideration idiotic answers, forum trolls etc. Plus, idiots have a knack of posting on "popular"/"useful" threads which makes down-voting it something which is against the spirit of voting, so yeah... ;-)

Darn it... and now we're back to "mark user as idiot" :twisted: (you know that there are some users who deserve it... as evil as it sounds)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Works for me :) Might at least curb the ones I've noticed (as they tend to be from 1-2 post newbies generally).

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

From what I've been seeing in my own notifications, they've been somewhat... sketchy... since this point.

For a while during that event they stopped altogether. After that was resolved they started coming through normally. About a week later it was kind of hit or miss whether a notification would come through instantly by email, an hour or two later, or not at all.

To this point I get most of my notifications but not all, and some still take 1-2 hours to come through. I had attributed the delays to my own ISP but the missing notifications, not sure.

Hope that helps clear things up a bit :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Unless you're planning for there to be a vast number of users logging in simultaneously you should be fine with the server-side solution. You might just want to ensure there are the least possible number of server-calls for the confirmation that you need (ie: once per page instead of once per function that requires login creds).

Hope that helped at least :) Please remember to mark your thread solved once the issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

If you want to access the variables on a page from outsider page then just declare them public.

Is it possible you're confusing C# with ASP.Net here?

In ASP.Net each page is considered to be, in essence, it's own separate entity. Unless variables are explicitly passed from one to the other, they do not exist outside the page they were created in.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Perhaps I wasn't 'clear' enough with my answer then :P

From what you had said:
>>My question is, should I be storing this information in a http cookie instead of a variable?

And you had indicated one of the concerns was overall processing requirements compared to your variable approach.

My answer basically was to give an overview of the pros/cons of cookie usage for this sort of thing...

Essentially, cookie:

  • user-end = less 'server end' processing
  • User-visible
  • Can be disallowed by the browser negating effectiveness

Server-side user login based variable:

  • Server-end (obviously)
  • Invisible to the user
  • Not affected by browser settings

Beyond that, the choice is yours... If it's being checked against frequently then the cookie method may be better as it doesn't require additional calls to the server to check the bool setting. If it's being checked against infrequently or security is of concern then the server-side bool is better.

Alternately, if you need to use the server-side (hidden from user, better 'security' of information) you can always restrict the call to the beginning and end of the 'login session' and simply pass the value forward from page to page. The problem there is you would need some sort of if/else in place on each page where it checks to see if the value was passed locally from another calling page and if it doesn't find it, it then goes to the server to check there. (dunno …

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Another variation on what Ryshad indicated is to simply use the Regex.Split method which works the same as the single character split but allows string definition for the split markers.

This can be done by first defining a regex pattern then using that pattern in your split command as such:

Regex reg = new Regex(@"><");
string[] sections = Regex.Split(inputString, reg);

Or it can be used in the following way:

string[] sections = Regex.Split(inputString, @"><");

That is, of course, unless my brain has completely rotted and I've forgotten how to use Regex already :twisted:

Hope this helps :) I know the thread's a few days old but it's still 'unsolved' so figured maybe more info could be useful.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Are there any specific system-generated errors that appear when it crashes? (generally windows will give a wonderfully cryptic error message and offer to send the error report to microsoft) This might help pinpoint the nature of the issue to some degree.

EDIT: One other thing I just thought of... Are there any assemblies you are loading into your application at design time that are perhaps not being packaged properly with the distributable?

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

There are pros and cons to using a cookie to store login variables for a website.

Pro:

  • Cookies can be set to terminate either at end of session or after a specified time period
  • Cookies are relatively easy to write/read
  • Cookies are client side and don't require much server overhead

Con:

  • Cookies can be read easily and possibly 'impersonated'
  • Cookies can be easily mis-coded
  • Many people disallow cookies on their browsers

There are other factors to consider but my purpose is just to give an overview of cookies' usefulness.

If you utilize non-descript variables in the cookies (such that it's not apparent that it's a login credential) you should be relatively ok using them for this purpose. Keep in mind that unless otherwise coded, cookies self-terminate as soon as all browser windows are closed (ie: browser 'session' ends).

Generally, for the purpose you've described, cookies will likely be the best bet as they are one of the few persistent methods of session state control available. Your only major drawback is that it obviously won't work if the user doesn't allow cookies on their machine.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

To be honest, there are so many possible incompatibility issues between XP and Vista that it would be difficult to pinpoint a specific problem without looking at the code or knowing specifically what is being done and how within the program.

You've indicated that the .Net framework is installed on the Vista PC so that 'should' eliminate any issue related to missing framework.

It is, however, possible that there are system level controls that you are accessing within the program that are present in XP but not Vista. That being said, it brings us back to what I said originally in that it would be necessary to see the program code itself or an outline of what is being performed and how.

EDIT: What I might recommend as a first step is to attempt to run the application in 'compatibility mode' on the Vista PC using XP compatibility. If it works that way then at least you know it's a vista issue and not some other missing component that the program calls upon that is on the XP and not the Vista system.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

I am getting an error code: Thread started in incorrect forum section; code 101

Looks like you were looking for the VB.Net or ASP.Net forums. :twisted:

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Wow... well first, this is completely in the wrong forum... from the look of things you're looking for either VB.Net or ASP.Net forum.

Second, it would've been great if you'd used the code-tags to surround your code segments above.

Hopefully a moderator will clear all of that up for you and it'll end up in a forum section where it can actually get some attention :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

This request is very vague in nature and so, to be honest, I'm not sure what to suggest.

What I might recommend is first to start off with a planning stage... Utilize pseudocode to plan out the workings of the application and pre-plan your way around any bugs/issues you can see coming up.

Once you've at least got the pseudocode planning stage done then you can at least tackle any issues you may have with "how do I program this portion" with some research (http://www.google.com, http://msdn.microsoft.com, etc).

At that point, once you've started coding your actual application, if you run into any snags that you can't figure out with a little bit of research, you can always ask here for advice (providing samples of your code in the area(s) you're stuck in) and maybe we'll be able to better assist you at that stage.

Hope this helps get you started :)

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

My first question for you would be this... how are you passing the variable?

Are you passing the variable in a session? Cookie? as part of the calling URL?

If a variable is declared in one page of the site and then an attempt is made to call it from another page in the site, unless it's 'passed' somehow then it doesn't exist. Variables are generally 'local' to the page they are created in (similar to how they're local to the form they're created in within a win-app, only you can't just reference the original form to call the variable).

Method 1 - Pass values via QueryString
Method 2 - Pass values via cookie
Method 3 - Pass values via session

Also, there's a helpful set of references on the msdn site specifically about methods of passing info from page to page in an ASP.Net site.

If, on the other hand, this is not what you need, perhaps a more detailed explanation of your problem coupled with some code snippets to show where the specific issue is would help others find a better solution.

Hope this helps :) Please remember to mark your thread solved once the issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

*shrug* Everyone has their off moments.

The fact remains that his method is perfectly sound and can be used as it stands. The fact further remains that your method also works and could be used in it's stead.

What doesn't make much sense to me, however, is your feeling that you need to personally attack me for a very minor mistake :twisted: And, for the record, there are some benefits to looping a line-by-line read in many situations over a full-file dump. While this situation would work just as well either way, not all situations would.

My apologies, your holiness, for misreading your suggestion and reading it as the wrong method... I will endeavour to do better in the future.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

You should use File.ReadAllLines(), it will make it shorter and will work with however many lines you put into the file:

songs = File.ReadAllLines(playlist);

He's reading line-by-line in order to itemize the songs in an array. How will reading all lines at once without separating them help him?

ddanbe commented: Could not have said better :) +7
Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

The only way you're going to have the buttons in the exact same location relative to the background on "any monitor" is with absolute positioning.

If you follow the link above, it leads through a tutorial on CSS and Absolute Positioning that may help you out. Essentially, by using absolute positioning you ensure that the image and the buttons are at the exact same position determined by pixel values from the upper left corner of the screen every time they're loaded.

Another possibility is to use relative positioning of the buttons in relation to the background (in the event that the background is variable in position) but this gets a bit more tricky :) A tutorial for that can also be found at http://www.w3schools.com

Hope that helps :) Please remember to mark the thread solved once your issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

The livejournal "icon" that you're referring to is commonly known as a 'favicon' and is generated from an icon file in your web directory (or an image directory which is referenced by the metatag(s) for the favicon in your webpage(s)).

If you click the link I provided above you will see a 'how to' related to favicons that might help you sort out:

  1. Where your current favicon is located
  2. How to create a custom favicon for your site

Hope that helps :) Please remember to mark your thread solved once your issue is resolved.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

Not necessarily... if it's a nested floating DIV (DIV within a DIV or other container with variable float to left/right) then you won't be able to force the DIV height and it will still only expand to the max height of it's contained parts. The only way (that I know of) to make a div 100% screen height is with absolute positioning which... then... means that you can't float that DIV horizontally.

Lusiphur 185 Practically a Posting Shark Team Colleague Featured Poster

With your iFrame inside a DIV it will be constrained to a maximum height equivalent to the height of the DIV.

Unfortunately, if the content of the iFrame is dynamically populated then what will happen is the DIV (whose height is determined by the max length of the content within it) attempts to size prior to the content being populated and sizes too small for the iFrame contents. The iFrame then sizes to 100% of the height determined by the containing DIV and is likewise too small.

One thing to note, which is unrelated to your issue but related to iFrames in general, is that many web developers are moving away from iFrames due to the fact that a large portion of end-users have security settings that prohibit the display of them. Seems that some folks had the wonderful idea of populating 1px x 1px iFrames with hostile code and now they're somewhat frowned upon.

Hope this all helps with finding the source of your issue however :)