< Browse > Home

| Mobile | RSS

How to Use Code Behind to display text on Binding

I had to display Yes or No based on databind this is how I did it.
<asp:Label ID=”IsUserActiveCheckBox” Text=’<%# if(Eval(“IsUserActive”),”Yes”,”No”) %>’
runat=”server” />
Also Bind will not work if you are databinding it.
Here is another example where I used code behind.
in Aspx :
<asp:RadioButtonList ID=”rbGLRSearch” runat=”server” RepeatDirection=”Horizontal”
OnSelectedIndexChanged=”EnableCluster” AutoPostBack=”true” SelectedValue=’<%# GetCheckBoxValue(Eval(“GLRSearch”)) %>’>
<asp:ListItem>Yes</asp:ListItem>
<asp:ListItem>No</asp:ListItem>
<asp:ListItem>N/A</asp:ListItem>
</asp:RadioButtonList>
in code behind :
Protected Function GetCheckBoxValue(ByVal bool) As [...]

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • LinkedIn
[ More ] December 1st, 2008 | No Comments | Posted in Asp.net |

Ajax CalanderExtender :Display dates of current (selected) month only

Today I have decided that I will start writting one post everyday. Lets see how far I go.
Today only one bug( rather a minor change) was requested by our clients doing UAT.
Problem : We have ajax calanderextender and it shows all the dates for the selected month.
Solution : So rather than doing something in the [...]

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • LinkedIn
[ More ] November 26th, 2008 | No Comments | Posted in Ajax |

Some Top Must-Have Tools for an ASP.NET Developer

Came across this blogs.
really good collection of tools.
worth trying them.
http://www.dotnetcurry.com/(X(1)S(ksuw3045ka04q3rcittjc0nk))/ShowArticle.aspx?ID=103&AspxAutoDetectCookieSupport=1

Share and Enjoy:

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • LinkedIn
[ More ] November 19th, 2008 | No Comments | Posted in Asp.net |

Performance Tips for ASP.NET Applications

I found this article while looking for improving the performance of ASP.NET for one of my application.
Its really good one.
I am going to try some of the stuff and see if there is a difference in performance.
Here;s the link to the blog
http://blogs.microsoft.co.il/blogs/rotemb/archive/2008/08/17/performance-tips-for-asp-net-applications.aspx
http://blogs.microsoft.co.il/blogs/rotemb/archive/2008/07/29/tune-your-net-application-that-suffer-from-contention-poor-performance-and-deadlocks.aspx

Share and Enjoy:

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • LinkedIn
[ More ] November 19th, 2008 | No Comments | Posted in Asp.net |

Who the hell wrote this

You love someone, you marry someone else!
The one you marry becomes your spouse!
And the one you loved becomes….
the password of your mail id!

***

Share and Enjoy:

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • LinkedIn
[ More ] November 18th, 2008 | No Comments | Posted in Funny Stuff |

How to leave a trackback ??

I have recently started blogging. And so far my experience with wordpress is good.
But there are lots of things that I need to know about blogging one of them being Trackbacks.
Each and every blog that I have read has a Trackback below the post.

Share and Enjoy:

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • LinkedIn
[ More ] October 24th, 2008 | 1 Comment | Posted in Tutorials |
My first Valentine dayI like it dadWhat are you doing dad ?My first Valentine dayI am hungry now...DiaDad...I am tired nowDiaWant a Ride ?Help me!!!