Archive for July 2014

C# Asp.net dropdown control get value text selected by user

to get selected value from the dropdown list to use it in your C# code using the below code

int i= Convert.ToInt32(DDLCity.SelectedValue);

In my example the value is a number and i want to store it in int variable.

To display text selected in dropdownlist in asp.net label i used the below C# code

LblCity.Text= DDLCity.SelectedItem.Text;


Thursday, 24 July 2014
Posted by Sudhir Chekuri
Tag :

C# ASP.NET Dropdownlist control binding data from datasource and add first default item at starting



ASP.NET Code
  <asp:DropDownList ID="DDLCity" runat="server" >
                                    </asp:DropDownList>

                                 
C# Code


        DDLCity.DataSource = d;
        DDLCity.DataTextField = "City";
        DDLCity.DataValueField = "Cid";
        DDLCity.DataBind();
        DDLCity.Items.Insert(0, new ListItem("Select City", "0"));


Monday, 21 July 2014
Posted by Sudhir Chekuri
Tag :

What is Coded UI ?

Coded UI is a new test type for automated unit testing using C#.NET/VB.NET Code. It has rich APIs for WinForms, Web and WPF.
It has built in UI recorder used to generate C#/VB code.
It is integrated with ALM story.
Fast forward and Replay of actions is available.


Friday, 11 July 2014
Posted by Sudhir Chekuri

Followers

Total Pageviews

Powered by Blogger.

- Copyright © 2013 DevStudent - Metrominimalist - Powered by Blogger - Designed by Johanes Djogan -