Can you give a step by step Aspnetcontrol example

0
0

Hi,

Happy new year!

Could you give me an example on how do i have to add an aspnetcontrol?. In the examples that i can found in the forum, the controls are already added. I can’t reproduce the process. It would be much trouble if you upload a video showing the process?. Can you do it in vb.net?. It would be perfect if you use in the example some report tool like crystal reports or reportviewer.
Thanks in advance
Claudio

  • You must to post comments
0
0

There is an attachment here:

https://wisej.com/support/question/aspnetcontrol

Shows how to wrap the report viewer ASP.NET control.

It’s simple, you simply derive a class from Wisej.Web.Ext.AspNetWrapper<T>. Where T is the ASP.NET control class.

Then you have to create the properties and methods that you want to use and assign them to the wrapped ASP.NET control using:

this.WrapperControl.{Property}

WrappedControl is of type T being a generic class.

The only time you can assign those properties to ASP.NET is in the Init, Load, PreLoad events because ASP.NET controls do not exist outside of the page cycle. See the relevant documentation about ASP.NET controls and the page cycle here.

It’s all done in the sample code attached in the original post.

 

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.