< Browse > Home / Archive: December 2008

| Mobile | RSS

How to set up Visual Studio Project to use NUnit-Gui Test Runner

I am writing this post to help people like me who are new to nunit. Bascially it’s easy to setup but some time it can be really hard for some people.

Share and Enjoy:

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

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 |
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!!!