Monday, January 30, 2012

if condition in gridview source code page

if condition in gridview in source code or .aspx page
this will decrease many operation so performance increase. 
 
<Columns>
  <asp:TemplateField>
    <ItemTemplate>
      <asp:ImageButton ID="ifgridview" runat="server" 
         ImageUrl=<%# ((bool) Eval("condition"))? "yes.png":"no.png" %>
         OnClick="ifgridview_Click" />
    </ItemTemplate>
  </asp:TemplateField>
</columns>

Thursday, January 26, 2012

scroll bar in table

Scrollbar in table is not possible. 
There is one way in that UI is like Scroll bar in table.
 <div style="height: 250px; overflow: scroll;">
<table></table>
</div>
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
And Repeat 1 And Repeat 2 And Repeat 3
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
And Repeat 1 And Repeat 2 And Repeat 3
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
And Repeat 1 And Repeat 2 And Repeat 3
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
And Repeat 1 And Repeat 2 And Repeat 3
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
And Repeat 1 And Repeat 2 And Repeat 3
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
And Repeat 1 And Repeat 2 And Repeat 3
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
And Repeat 1 And Repeat 2 And Repeat 3
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
And Repeat 1 And Repeat 2 And Repeat 3
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
And Repeat 1 And Repeat 2 And Repeat 3
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
And Repeat 1 And Repeat 2 And Repeat 3
Scroll bar Table Cell Content 1 Scroll bar Table Cell Content 2 Scroll bar Table Cell Content 3
More Scroll bar Table Cell Content 1 More Scroll bar Table Cell Content 2 More Scroll bar Table Cell Content 3
Even More Scroll bar Table Cell Content 1 Even More Scroll bar Table Cell Content 2 Even More Scroll bar Table Cell Content 3
End of Scroll bar Table Cell Content 1 End of Scroll bar Table Cell Content 2 End of Scroll bar Table Cell Content 3

Wednesday, January 18, 2012

video audio player all in one plugin for mp3, mp4,mov,.3gp,swf in asp.net,php,jsp








Browser JWPlayer support .mp3, .mp4, .mov, .swf
below example is given
<script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
<div id='mediaplayer'></div>
<script type="text/javascript">
  jwplayer('mediaplayer').setup({
    'flashplayer': 'player.swf',
    'id': 'playerID',
    'width': '480',
    'height': '270',
    'file': 'video.flv',
    'image': 'image.jpg',
    'plugins': {
       'viral-2': {
           'onpause': 'false',
           'callout': 'none'
       }
    }
  });
</script>
  
 Plugin Download
ASPdotNET-Example