473,396 Members | 2,002 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,396 software developers and data experts.

How to add Page.header error out in vb.net?

121 100+
Hello,
I am trying to add
Expand|Select|Wrap|Line Numbers
  1.   Page.Header.Controls.Add(New LiteralControl("<link href='../CSS/test.css' rel='stylesheet' type='text/css' />"))
  2.  
in vb code. Strangely the solution builds but when i run my code i get 'Object reference not set to an instance of an object.' error.

i have searched extensively on internet but couldn't see what's going wrong. Solution builds alright but it errors out while running on same line of code.

Any help will be appreciated

Regards
Jay
Feb 4 '11 #1
1 2057
jay123
121 100+
Just figured out that Page.Header is Coming as 'Nothing'

Any Suggestion why this may be?

Regards
Jay
Feb 5 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: V.Boomessh | last post by:
I am facing hte following in Crystal report for VS.NET, can any please help me out of this issue The structure of the report is as follows 0.Report Heade 1.Page Heade 2. Group Header
4
by: Tony O'Hara | last post by:
Hi all, I've just found a piece of code in the Microsoft KB (311280) that supposedly lets me change the page setup, i.e. page header etc, via the registry. I simply cut and paste the code into my...
2
by: Anthony | last post by:
Our Database is having errors. We are currently using PostgreSQL to store 2.5 Million records per day. The average addition to our primary table is 4.5 Gigs of data. We are doing this on a dual...
5
by: Ed L. | last post by:
I have 5 corrupted page headers as evidenced by these errors: ERROR: Invalid page header in block 13947 of ... The corruption is causing numerous queries to abort. First option is to try to...
4
by: Alan Silver | last post by:
Hello, I downloaded and registered VWD Express from the MS site, and this gave me a free download of a book called "Build A Web Site Now!", which is a (very light) introduction to VWD. In the...
0
by: Arnold | last post by:
Hi Everyone; In a report, I've essentially recreated a paper sheet by adding various labels--name, date, problem, year, Progress Notes, etc.--and horizontal lines (people have traditionally...
1
by: Hank | last post by:
My boss wants the font on reports to be user selectable on a Configuration screen. I open the Font Dialog and one is selected. When the report opens, I call a funtion that changes the font of all...
1
by: Asif | last post by:
Hi All, I did follow the MSDN article (http://msdn2.microsoft.com/en-us/ library/ms379585(VS.80).aspx ) for overriding Master Page properties by setting page title and other Meta information(...
3
by: | last post by:
In my report I have a calculated field that counts the number of records of the underlying table, =Count(). This field is placed in the report's header. I'd like to repeat this value on every page...
1
by: michael | last post by:
I want to include a simple menu in a usercontrol on a page. The page inherits a BaseClass that overrides Render method, including header control. Header is dynamically generated. .........
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.