Click here to Skip to main content
15,900,589 members

Comments by Mphirana (Top 4 by date)

Mphirana 17-Jul-12 2:08am View    
I tried both but messagebox still doesnt show, on bottom of the page writes javascipt:void(0)
Mphirana 16-Jul-12 4:35am View    
Thanks pal works
Mphirana 22-Jun-12 7:05am View    
<telerik:RadComboBox ID="cmbPortfolio" runat="server" AutoPostBack="True"
AllowCustomText="True"
önselectedindexchanged="cmbPortfolio_SelectedIndexChanged" AppendDataBoundItems="True" >
<items>
<telerik:RadComboBoxItem runat="server" Text="All" Value="100" />


protected void cmbPortfolio_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
if (cmbPortfolio.SelectedValue== "100")
{
SqlConnection connections = new SqlConnection(Connection());

SqlCommand commands = new SqlCommand("SELECT costID,costGoal,priority,planned,achieved,costMotivation,costStartDate,costDueDate FROM Cost", connections);

SqlDataAdapter daimagess = new SqlDataAdapter(commands);

DataTable dt = new DataTable();

daimagess.Fill(dt);

gvCost.DataSource = dt;

//gvCost.DataBind();
}

my error
Both DataSource and DataSourceID are defined on 'ctl00'. Remove one definition.
Mphirana 21-Jun-12 8:11am View    
how do I bind my gridview in that item i just add