strange issue: ASPX page showing javascript content as text - asp.net

On one user's machine an ASPX page suddenly showed JavaScript code as text on the page. The original contents of the page were also showing half baked and broken. The user was using IE browser. Though I cannot post the contents of the page here, I will try to describe it as accurately as I can. In between the address bar and the actual beginning of the page, there was a cross-section showing some JavaScript text. The text appears to be the automatic JavaScript that is generated by ASP .NET for Validators. The JavaScript text, it seems is of the Validators used inside a User Control that is used on this page.
This issue has happened just one-off. Now the page is showing OK to the same user.
Though I am sure this must have been a bandwidth issue I have no evidence to prove this and nor able to regenerate the issue. And 'someone' claims that this might have been a hacking attempt.
Has anyone faced similar issue ? Is there anyway to conclusively prove that this to be a bandwidth issue and has nothing to do with code or anything on the server ?

Related

CSS gets messed up after Ajax page load

I have a website in wordpress. I recently download a plugin called Advanced Ajax Page Loader. It refreshes you content when clicked on other page without refreshing the whole site(header, footer). I tried to get my answer from plugins developer and wordpress support forum, but none responded.
I read that if ajax jquery call is used then all scripts should be reloaded again, for that the plugin have a place where I should put those codes. Until that everything works correctly, except one thin. When I go from a category to category, everything works fine, but when I open a single Post it completely screws up all my css for that page, when I refresh it, everything looks fine but then again, if I open one of the big categories with many posts, then that pages css is messed up.
I though that I could somehow refresh whole css by putting some code in the "Reload code" box, but I have no idea how to do that using scripts. English isn't my native language, therefore I'm having difficulty finding my answer on google, I tried, but my vocabulary is limited. How can I do it?
are you adding CSS classes to your elements via Javascript? If so, then the styles you add will only affect those elements which are part of the DOM at that point in time, so you might be experiencing a race condition, that actually happens to work in Chrome and Safari, but not Firefox.
second try to validate your markup and CSS and see if you have any error in your css syntax ?

Web page behaves strangely

Have a look at the following site http://www.soe.gr.
The whole page has been built with CSS Page Builder Magic 2 (projectseven.com).
Every button is a link to a different .html page.
However, I do not know why every button press creates a flash effect in the page, the background changes instantly color and generally it gives an impression of abnormal operation. I have not met any site with such behavior except some pages inside projectseven site.
Do you have any idea why that happens? Is it something wrong with Page Builder Magic approach?
I am new to Web Development world and I want to know if there is any problem with these guys.
Thank you very much
I checked it out, it doesn't behave abnormally at all for all those effects you have there, I checked out the size of one of the images it is about 250kb, then imagine the other images which I assume are of the same size, and they are all going to be loaded when the page loads, you definitely should expect some effect

Mobile website in HTML5 not pulling CSS file until refreshed

I'm building a contact form for a mobile website in HTML5 and CSS. It is the same form I use on all mobile website and after not working for 5 hours I pulled the code straight from a working site I built and it still doesn't work properly.
The issue is when you go to the contact page it shows the contact form, but with the labels centered and the submit button image isn't showing up. I must refresh for it to bring up the correct CSS file to align the text left and show the submit button. Initially I thought it was from a CSS/JS conflict with my menu at the top so I pulled that and it still causes the same problem. I have cleared the cashe on my phone and web browsers and they all work the same.
Here is the link: www.lpokc.org/mobi/contact.php after going to this page hit refresh and you will see the difference.
My question is, is this a caching issue, is it server side issue, or is it a conflict in my coding. I'm not good with posting the code on this site but if you go to the mobile site from your web browser you can just right click and view source to see my code. I have a boiler plate html core file with boiler plate CSS and custom CSS.
Is there some sort of script I could use to make this page auto refresh one time on page load then not again after the reload? I don't want to use an improper fix like this but I have been working on this issue for a day.
The left side is before refresh. I have pulled the code from the site now but I think it was a js conflict because it was auto loading the css from the menu when the link for any page was clicked.
I'm seeing it fine on my end. Seems to work flawlessly, but if you are still having a problem, you could either use cookie or session variables. If the variable does not exist, you can use the php function header( 'Location: http://www.lpokc.org/mobi/contact.php' ) ; to "refresh" the page. It's actually just a redirect command, but if you are sending them back to the page they are on, it is pretty much the same thing as a refresh.
It was a conflicting issue with my menu JS/CSS. I pulled it and now everything works fine.

ASP pages hanging in IE6

No this isn't a post from the previous century.
We are stuck with IE6 and some old ASP code using FRAMESETs
The problem:
An ASP page sets up a load of values in a form and then submits it to another ASP page
This second page is a FRAMESET with a map and other associated stuff, the first thing it does is read all the values to setup the layout.
All works well most of the time but sometimes it all goes horribly wrong.
The first page calls the second but the Request.Form.Count is 0 and it all falls over
Once this happens it never works again until I close IE6 and restart it.
Then when I submit Request.Form.Count = 29 which it should be.
Any ideas as to what might be going on in IE?
For some reason calling the initial ASP page from a link on another page causes it to go wrong much more often that just pasting the URL into the address bar.
I've tried all possible methods of linking and redirecting and they all cause the problem more often than not.
Also, it works fine in every other browser I've tried but IE6 is the one we have to target.
Ken
Forgot to say that trying to debug with Fiddler doesn't help since it never goes wrong then

Design Page cannot be viewed!

In Visual Studio 2008, while editing the web page, it is displaying some error and I cannot design my page in design view, I can do only in Source code. It is showing the following error in design view...
Master Page Error
'The Page Contains Markup that is not valid when attached to a master page
Correct the problem in Code View'
Wat is the problem? Whr Should I change ?
Ok, you've got a master page and a content page and when you put the two together you get an error.
If the error isn't obvious you have to work to a point where you can identify what's caused the error - debugging but of pages rather than code.
Create a new page that uses the same master page with no content - does that work? If so then the Master Page is probably not the issue.
Now add the elements in your failing page one at a time to your new page - as close as you can manage to cutting and pasting from one to the next but one change at a time. At some point you should see the error arise in the new page - and at that point you should either be able to fix it or will be able to ask a more specific question about why it doesn't work.
It is the case that designers in VS can just gets themselves tied in knots - but there's usually an underlying cause.
The problem is that your markup in invalid. Fix it.
You likely have an open tag, improperly nested tag, or malformed asp tag.
The problem is that you have edited the source code in such a way that it can no longer be shown in the designer.
Try undoing the latest change that you've made to see if that fixes the problem.
Check too to make sure that you have no <form>, <html>, <body> or <contentplaceholder> tags in your page. These will already be present in the master page, so there's no need for them in the sub-page.
In SharePoint designer, when you insert a MasterPage in customized form, you get this error.
If you remove the < script / > tag,
it works fine for me. Hope that will work for you too.

Resources