Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Server Control

Reply
Thread Tools

Server Control

 
 
Eric
Guest
Posts: n/a
 
      10-06-2004
Hi,

I have a strange behaviour with my Server Control.
An easy one:
public class SystemInfo : System.Web.UI.WebControls.WebControl

{

//protected override void Render(HtmlTextWriter output)

{ output.Write(""); ...}

}

No more than that.

The strange thing is, when I use this one on an ASPX page, it works with a
normal browser like IE6 with WinXP.

But when I navigate with my Ipaq (Mobile Browser) to this page, I get an
exception:

Unhandled Execution Error
Object reference not set to an instance of an object.
at Bluesware.Library.Web.SystemInfo.Render(HtmlTextWr iter output)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
at System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter
writer)
at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
at System.Web.UI.Control.Render(HtmlTextWriter writer)
at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
at System.Web.UI.Page.ProcessRequestMain()




There shouldn't be a difference if I call this page with IE6 or PocketIE?

The rendering should work same (We are still not in ASP.NET V2).

Or I'm missing something?

Thanks

Eric






 
Reply With Quote
 
 
 
 
Eric
Guest
Posts: n/a
 
      10-06-2004
I have found the problem.

There was an exception inside the Render function, which led to this
NullPointerException.

Eric

"Eric" <(E-Mail Removed)> wrote in message
news:#(E-Mail Removed)...
> Hi,
>
> I have a strange behaviour with my Server Control.
> An easy one:
> public class SystemInfo : System.Web.UI.WebControls.WebControl
>
> {
>
> //protected override void Render(HtmlTextWriter output)
>
> { output.Write(""); ...}
>
> }
>
> No more than that.
>
> The strange thing is, when I use this one on an ASPX page, it works with a
> normal browser like IE6 with WinXP.
>
> But when I navigate with my Ipaq (Mobile Browser) to this page, I get an
> exception:
>
> Unhandled Execution Error
> Object reference not set to an instance of an object.
> at Bluesware.Library.Web.SystemInfo.Render(HtmlTextWr iter output)
> at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
> at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
> at

System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter
> writer)
> at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter

output)
> at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
> at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
> at System.Web.UI.Control.Render(HtmlTextWriter writer)
> at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
> at System.Web.UI.Page.ProcessRequestMain()
>
>
>
>
> There shouldn't be a difference if I call this page with IE6 or PocketIE?
>
> The rendering should work same (We are still not in ASP.NET V2).
>
> Or I'm missing something?
>
> Thanks
>
> Eric
>
>
>
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server to server = Server client to server? - Java 2 07-29-2005 10:46 PM
Embed 3rd Party Server Control into my Custom Web Server Control Tim ASP .Net Web Controls 0 04-15-2005 03:13 PM
Copy file from server to server using server control button FileCopy() HELP =?Utf-8?B?UGVyZG8=?= ASP .Net 0 02-06-2004 08:11 PM
HTML Client Control versus. HTML Server Control versus. Web Server Control Matthew Louden ASP .Net 1 10-11-2003 07:09 PM
Using Table control in a custom composite control. Control does not render properly in design time. jb_in_marietta@yahoo.com ASP .Net 0 07-01-2003 09:26 PM



Advertisments