Styles are not Merging

  • Thread starter Thread starter Ponnurangam
  • Start date Start date
P

Ponnurangam

Hi,

I have created two styles from cssclass and merged first one with the second
one.

I then used the style for an Item.

The styles are not merging. Here is the code that I used

Dim mystyle1, mystyle2 As System.Web.UI.WebControls.Style
mystyle1 = New Style

mystyle2 = New Style

mystyle1.CssClass = "Group1"

mystyle2.CssClass = "Group2"

mystyle1.MergeWith(mystyle2)

myItem.MergeWith(mystyle1)


I am getting the styles that are in group1 cssclass, the styles are not
merging.

Any help would be appreciated

Thanks

Ponnurangam
 
Back
Top