page

Running JavaScript function before page load (setting background of appropriate size)

I've got an image background which content I want to be always visible, no matter what is the user's resolution. Therefore, I want to be able to determine what is the resolution and set appropriate background image file before page loads, on the very beginning. Is it possible somehow? ...

Alternate layout views in single aspx page.

I want to make my ASPX page to look different based on some Object property. Assuming Customer is the object, I want to make Customer.aspx file layout different for both CustomerType.Regular and CustomerType.Vip values of the Customer.Type property. Theoretically it is possible for me to have two asp:Repeater controls with different Id'...

Drupal: If statement for page.tpl.php (Depending on page section)

I want to use the if statement to select specific pages that have <body class="section-category"> and output custom content for only those pages. My PHP is not very good and I hope this is a very simple task to do. Can anyone give me a tip? ...

Page is blank in Google Chrome until I clear the cache

One of my clients is reporting that the PHP application page on my server is displaying a blank page on Google Chrome. Other websites are working ok with Chrome. The page also works on FF and Chrome on my PC so I didn't encountered this problem. The client said that the page loads blank until he clears the cache. After the cache clear he...

MVC Master page and RenderPartial

I'm trying to create nested master pages in MVC. In the main master page I have a partial view that is rendered using Html.RenderPartial. This works fine when using the main master page directly in my view. The problem occurs when I have a child master page of the main master page. When using the child master page the RenderPartial metho...

Page cannot be null

I am using a ScriptManager in my aspx page and when I run on the submit button within the page I am receiving a "Page cannot be null" error message. I have looked around but cannot find anything that deals with this. I am writing in C# using VS2008 with the latest .NET framework, and the ScriptManager is for two Infragistics controls f...

Wordpress password protected pages.

Hello everyone, I am hoping someone can help me this this problem. I know how to password protect a page in wordpress admin area, in the edit page area, edit the visibility and set it to password protected. I want to know if there are wordpress php functions to check if the user typed in the correct password in the layout php file. I...

My web page only prints onto 1 page (there is no break)

I'm having trouble printing a web page of information, which should span onto about 3 pages. Currently, only 1 page is printed, and the rest of the data is not visible anywhere? Is there some JS or HTML I can use to break the page, and allow the information to continue being printed on the next pages. ...

Sharepoint Foundation master pages on subsites

Hi Using Sharepoint Foundation 2010 I've edited v4.master, added a ref to a new CSS file, saved the changes and they are applied to the home site no problem. However when I create a subsite it uses the old version of v4.master for some irritating reason. I'm vaguely aware that some of the publishing features from SPS are not included i...

Exit button, without saving to database when items have already been added

I do not have any code to show, but using asp.net, vb.net, and SQL with stored procedures. If on a page I have an item that is added to the database and therefore that information is "saved", is there a way to have an ("exit without saving") button on the page that does away with those changes? Using infragisitcs ultrawebgrid, you add ...