Author: mgiridharreddy | Posted on: 4/22/2009 11:29:19 PM | Views : 369

Hi,

 Currently I am trying to set the width of the asp.net Table as follows.

<asp:Table width="<%=GetWidth()%>" >

 

and code behind

protected Unit GetWidth()

{

return Unit.Percentage(50);

}

 

 

It's not working. I know that it works if I set the width complete on some page event(like page_load) of code behind....

 

Is there a way to maintain the same syntax like calling code behind function in design page...i.e. calling function of .aspx.cs in .aspx page and assign the width as shown above.

 

Thanks and regards,

Giridhar.
...

Go to the complete details ...