Skip to main content

Amjad Issa

Go Search
Home
About Me
  

Web Part Development Part 2

New session with JSUG, but this time my presentation was about Web Part Developments

During the 2-hours (the session time frame) I executed few samples for Web Part developments

Including the following headlines

       SharePoint Designer Web Parts

       Web Part Life Cycle

       Web Part Validation

       Web Part With Java Script

       Web Part With SharePoint API

http://geeksconnected.com/amjad/Downloads/JSUG%20WebPart%20Dev%202.rar

it was a nice night with good audience thanks to all participants :)

Object Extension using Generics

I faced a problem where I need to extends System.Web.UI.WebControls.Control Classes and it is Childs (TextBox , Button , …) so I can add some extra properties and methods to be shared across all the Control class family .

We can simple create Wrapper Class like this to do the task

public class ControlWrapper

{

    public Control OriginalObject;

    public ControlWrapper(Control obj)

    {

        OriginalObject = obj;

    }

 

    //I need to add this method to all Control Family

    public string PrintIt()

    {

        return "Print This :" + this.OriginalObject.ClientID;

    }

}

The problem with this module, I will lose access to the original property for the child class , I cannot access TextBox special property without casting.

What is wrong with casting!? .. nothing really wrong with it , but I am building component to be easier for the rest of the developer to work with. So I need a way to maintain the original type properties!

Okie .. the Generics provide nice solution about that , just watch the following implementation

//Factory Class used to create extended controls

public class ExtendedControlFactory

{

    public ExtendedControl<T> ExtendControl<T>(T obj) where T : Control

    {

        ExtendedControl<T> newObj = new ExtendedControl<T>(obj);

        return newObj;

    }

}

 

public class ExtendedControl<T> where T : Control

{

    public ExtendedControl(T objIn)

    {

        this.OriginalObject = objIn;

    }

    //this property gave caller access to the wrapped object original property

    public T OriginalObject;

 

    //I need to add this method to all Control Family

    public string PrintIt(){

        return "Print This :" + this.OriginalObject.ClientID;

    }

}

Now , just gave a look to the client code

//Create Factory Instance

ExtendedControlFactory controlFactory = new ExtendedControlFactory();

//Create Extended Control Instance

ExtendedControl <Button> extdCon = controlFactory.ExtendControl<Button>(new Button());

 

//Note those properties are specific property for the Button Control , they are not exist on the parent Control class. 

extdCon.OriginalObject.ToolTip = "ToolTip";

extdCon.OriginalObject.Text = "Text";

//Note this is the extra method added using the Wrapper

extdCon.PrintIt();

now notice , you have access to the original object property methods , and the extra method added by the Wrapper.

I found this trick a nice one , I just want to share it with the rest of you coders

Enjoye …

Devosis Office is Ready !
finally .. Devosis office is ready .. this is my first post from in here :D ..
from now on .. thier will be no reason to go home ............ !
Lets do it team :D
Share Point Print List \ Item Feature

In Devosis www.devosis.com we are focusing on BPA (Business Process Automation) using Microsoft technology , Share Point , WF , and BizTalk . and we extend SharePoint power with many third party applications

Nintex workflow : http://www.nintex.com/

AvePoint : http://www.avepoint.com/

Colligo : http://www.colligo.com/products/sharepoint/index.asp

 Why I am telling you this!!? ; just to prepare you when you see me start blogging  on deferent technology such as SharePoint , or WF.

Anyway .. I was preparing a POC of providing printable version of share point list and items. And I end up with this nice blog.

http://blog.thekid.me.uk/archive/2007/07/22/easily-print-sharepoint-lists-using-your-own-template.aspx

 

Enjoy ….

BizTalk Impersonating !

Lately I faced a case where I have to access some resources from BizTalk Orchestration where credential of the BizTalk service are not enough to do that

So I choose to impersonate my code with more powerful user to accomplish this task  !

This is nice link from code project who you how to do this in normal C# scenario … sure you can always use this with BizTalk

… sure … it is not a healthy way to access resources this way from your orchestration … but you still have this option to do it .

http://www.codeproject.com/KB/cs/zetaimpersonator.aspx

 

Enjoy …

Create Test Certificate
you may need some test certificate to do some POC
the best way to this is using the makecert.exe tool
 
 
 
be sure to check this tool before going with anyother option
 
Enjoy ...
Larg Size Messages support in BizTalk 2004
check this link it is very nice
things get enhanced on BizTalk 2006. still this artical can give you alot of information about this issue
 
 
Enjoy ...
Devosis

Me , Muhannad “the sharepoint MVP geeksconnected ” , and Mohammad the “the c# MVP geeksconnected” are working together now in Devosis :D  www.devosis.com

It is important step , in our career path … I believe it will be a great one

… ya I know I was disconnected for some time .. but you know … “too much things to do it those days”

Okie … we have a great community action , we are creating Phoenix  :) ... check muhannad blog form more information ....

 

Anyway , I will proceed posting , but I will add posts on deferent topics now .. not only BizTalk

Enjoy   

BizTalk First Step Training Program done

Okei .. the training is done

I think I need to increase period for the training, since I could not reach the Rule Engine section.

Anyway , overall it was enjoyable activity from my side , I hope my audience enjoy it too

BizTalk First Step Training Program

Today was the first day of the BizTalk First Step Training Program , I was the instructor :)

Geeksconnected do this training with coordination with jordev http://jordev.net/default.aspx

this is free training to raise the awareness of BizTalk Server and to help Developer and architect understand the power and potential of the BizTalk server

as it is name tell !! First Step , this will help the audience to start their journey to explore the BizTalk word. “I hope :)”

 

Training Program

Days

Session

Expected Audience

Period

1

-BizTalk as Integration Server

Architect ,Team Leader , Developers

1.5 h

 

-BizTalk Life Cycle

-Power Sample

Architect ,Team Leader , Developers

1.5 h

2

-Xml BizTalk Schemas

-Flat BizTalk Schemas

Team Leader ,Developers

1.5 h

 

-BizTalk Maps

-Message Routing

Team Leader ,Developers

1.5 h

3

-BizTalk Orchestration

-Correlation Sample

Team Leader ,Developers

1.5 h

 

-Rule Engine

Team Leader ,Developers

1.5 h

 

This training separated in 3-day each day 3-hours

I do not have too much time in Jordan , so I will not be able to give more training here :(

Anyway , this training will be in KSA next time , or in UAE , I am not really sure … you know , when ever my business take me :)

… oooh .. sorry for not blogining those days , but I am really busy I will have some time soon …

Thanks for reading this

1 - 10 Next

 ‭(Hidden)‬ Admin Links