473,385 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Page comes up blank

I have a case with one page that if the page does not get any data for
it's datagrid on the page, the page refuses to render. I mean all the
text, images everything even the static stuff does not render. I have
checked and it does not generate an error, nor does it run the
page.Prerender event in the page or the base clase that the page is
derived from. I have another 100 pages that all work fine, just this
one. I was wondering if anyone had ever heard of a page that came up
blank before?

Pulling my hair out

Sean

Nov 14 '06 #1
3 1944
Check a couple of things

1) On the HTML page that the declarations at the very top are still there
e.g. the bit reading

<%@ Page language=C# CodeBehind ...

2) Expand the Web Form Designer generated code region and make sure that the
overridden OnInit method is present and it is calling InitalizeComponent

3) And finally within Initialize component make sure that the handler for
load is being attached

this.Load += new System.EventHandler(this.Page_Load);

--
Bits. Bytes.
http://bytes.thinkersroom.com
------------------------------
"se******@rogers.com" wrote:
I have a case with one page that if the page does not get any data for
it's datagrid on the page, the page refuses to render. I mean all the
text, images everything even the static stuff does not render. I have
checked and it does not generate an error, nor does it run the
page.Prerender event in the page or the base clase that the page is
derived from. I have another 100 pages that all work fine, just this
one. I was wondering if anyone had ever heard of a page that came up
blank before?

Pulling my hair out

Sean

Nov 15 '06 #2
4. If you overrode the OnLoad Event please call base.OnLoad()
"Rad [Visual C# MVP]" <no****@nospam.comwrote in message
news:78**********************************@microsof t.com...
Check a couple of things

1) On the HTML page that the declarations at the very top are still there
e.g. the bit reading

<%@ Page language=C# CodeBehind ...

2) Expand the Web Form Designer generated code region and make sure that
the
overridden OnInit method is present and it is calling InitalizeComponent

3) And finally within Initialize component make sure that the handler for
load is being attached

this.Load += new System.EventHandler(this.Page_Load);

--
Bits. Bytes.
http://bytes.thinkersroom.com
------------------------------
"se******@rogers.com" wrote:
>I have a case with one page that if the page does not get any data for
it's datagrid on the page, the page refuses to render. I mean all the
text, images everything even the static stuff does not render. I have
checked and it does not generate an error, nor does it run the
page.Prerender event in the page or the base clase that the page is
derived from. I have another 100 pages that all work fine, just this
one. I was wondering if anyone had ever heard of a page that came up
blank before?

Pulling my hair out

Sean


Nov 15 '06 #3
Thanks for the replies, I double checked the event handlers and they
are hooked up properly ( I am using VB so the handler slightly
different but there). I also double checked the OnInit in the page and
the Initialize component in the page and they both look the same as
other pages in the application, which also are derived from the
basepage class.
The thing that I find weird is that my Prerender event at the page
level does not fire, I am pretty sure that if I find the reason for
that then I will find the reason for why I have a white screen with
just the HTML and Body tags....nothing else.

Thanks for all the help so far

Sean

Nov 15 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matt Herson | last post by:
I am looking for a validation script that will only look at the fields in the cgi form, determine if the fields are filled out, then if one or more are blank will write a message at the top of the...
0
by: Leslie McGann | last post by:
Hi, I need to open a different pdf file in an iframe each time the user clicks a button. I also need to open the pdf to a specific page each time. The pdfs in question are located on a web...
12
by: Tom wilson | last post by:
This is the same topic as the thread above, "Dealing with the Back button". I'm getting nowhere. The closest I've come is a sample left for me: <%@ Page Language="vb" %> <!DOCTYPE HTML PUBLIC...
4
by: vvenk | last post by:
Hello: I get a blank page when I tried to use a datagrid on a web page that is bound to a dataset. The dataset ahs 1 table and 6 rows in that table. Please help. venki
0
by: vivek.triad | last post by:
hi groups, In my scenario, there is a report with only one page(ie. Browser is showing only one page) but when I give print, it comes as 2 pages. One page contains the actual details and other...
5
by: un1xg33k | last post by:
Hello, I'd like to find out if the following can be done. When someone comes to my site I would like to check to see if their homepage is set to my site. If it is then nothing is done. If it...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
3
by: Mantorok | last post by:
Hi all This has been driving me nuts for months now, if I access my site from IE https://db.cornwall.gov.uk/PlanningApplications and then hover over one of the 2-level menus it comes up with the...
2
by: Paulson | last post by:
Hi guys , I got a problem. I have made a pdf report using .rdlc in .net 2007. The problem is that the report has 2 parts First it displays the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.