Posts Tagged: web.config


15
Sep 09

HOWTO: Use C# and VB in the same project

You will get a com­pi­la­tion error if you will place  C# and VB code along in App_Code direc­tory. This lit­tle code snip­pet for web.config gives your com­pliper an abil­ity to dis­tin­guish between lan­guages.  Some of you could ask, i use X lan­guage why should i start an appli­ca­tion with native sup­port for few ? Real life exam­ple explains why would you do that.

Con­tinue reading →


9
Sep 09

HOWTO: Limit Viewstate length

In some occa­sions browsers may block or trun­cate  gen­er­ated view­state due to it’s length. This short tweak may solve the issue  by divid­ing the view­state to inde­pen­dent hid­den fields based on the num­ber you pro­vide as value. In this exam­ple max­PageS­tate­Field­Length set to 50 this means when view­state get beyond 50 char­ac­ters it will be bro­ken to dif­fer­ent hid­den fields hold­ing viewstate’s value

Con­tinue reading →