Click here to Skip to main content
11,582,911 members (74,785 online)

.NET Framework

 
QuestionRe: resizing a form in corner, bottom,right Pin
Eddy Vluggen21-Sep-12 6:20
memberEddy Vluggen21-Sep-12 6:20 
QuestionLookup table .NET Component Pin
HentoDeluxe21-Sep-12 5:26
memberHentoDeluxe21-Sep-12 5:26 
AnswerRe: Lookup table .NET Component Pin
Eddy Vluggen21-Sep-12 6:19
memberEddy Vluggen21-Sep-12 6:19 
QuestionConverting from base10 to base16 and save it in unsigned char array? Pin
Kiran Satish19-Sep-12 10:06
memberKiran Satish19-Sep-12 10:06 
AnswerRe: Converting from base10 to base16 and save it in unsigned char array? Pin
Richard MacCutchan19-Sep-12 11:28
mvpRichard MacCutchan19-Sep-12 11:28 
GeneralRe: Converting from base10 to base16 and save it in unsigned char array? Pin
Kiran Satish19-Sep-12 11:36
memberKiran Satish19-Sep-12 11:36 
GeneralRe: Converting from base10 to base16 and save it in unsigned char array? Pin
Richard MacCutchan19-Sep-12 11:52
mvpRichard MacCutchan19-Sep-12 11:52 
QuestionWhat is Common Type System (CTS) in .net framework? Pin
hiredotnet16-Sep-12 19:48
memberhiredotnet16-Sep-12 19:48 
AnswerRe: What is Common Type System (CTS) in .net framework? Pin
Pete O'Hanlon16-Sep-12 19:56
protectorPete O'Hanlon16-Sep-12 19:56 
AnswerRe: What is Common Type System (CTS) in .net framework? Pin
Himanshu Yadav20-Sep-12 8:11
memberHimanshu Yadav20-Sep-12 8:11 
AnswerRe: What is Common Type System (CTS) in .net framework? Pin
Tadit Dash22-Sep-12 19:01
memberTadit Dash22-Sep-12 19:01 
QuestionMain components of .NET Framework Pin
hiredotnet16-Sep-12 19:45
memberhiredotnet16-Sep-12 19:45 
RantRe: Main components of .NET Framework Pin
Paul Conrad16-Sep-12 19:48
memberPaul Conrad16-Sep-12 19:48 
Questioni m new in asp.net. and i want 2 call a gridview by dropdownlist. Pin
Rashid Choudhary13-Sep-12 22:27
memberRashid Choudhary13-Sep-12 22:27 
i have a drop down list which have three entry.when i select every entry of dropdownlist then the data show into the gridview...my code behind page is


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Net.Mail;
using System.IO;
using System.ComponentModel;
using System.Drawing;
using System.Web.SessionState;
 
namespace AccountManagement
{
    public partial class Account : System.Web.UI.Page
    {
        SqlConnection con;
       SqlDataAdapter da;
        SqlDataReader dr;
        //DataSet ds1;
       // String Sql;
        //int Count;
        DataTable dt;
        SqlCommand cmd;
        protected void Page_Load(object sender, EventArgs e)
        {
            string s = ConfigurationManager.ConnectionStrings["conn"].ConnectionString;
            con = new SqlConnection(s);
            //if (!IsPostBack)
            //{
            //    bindgrid();
            //    bindlst();
            //}
            con.Open();
        }
 
        //protected void Button1_Click(object sender, EventArgs e)
        //{
        //    bindgrid();
        //    GridView1.Visible = true;
            
        //}
        public void bindgrid()
        {
            cmd=new SqlCommand ("select distinct Fname,Lname from Client_registration_tbl",con);
            //ds1 = new DataSet();
            con.Open();
            dr = cmd.ExecuteReader();
            //da.Fill(ds1);
            GridView1.DataSource = dr;
            GridView1.DataBind();
            GridView1.Visible = true;
            con.Close();
 
        }
 
        public void bindlst()
        {
            da = new SqlDataAdapter("select distinct Fname,Lname from Client_registration_tbl", con);
            dt = new DataTable();
            da.Fill(dt);
            DropDownList1.DataSource = dt;
            DropDownList1.DataBind();
        }
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
 
            da = new SqlDataAdapter("select distinct Fname,Lname from Client_registration_tbl" + DropDownList1.SelectedItem.Text + "", con);
            dt = new DataTable();
            da.Fill(dt);
            GridView1.DataSource = dt;
            GridView1.DataBind();
           
            bindgrid();
            bindlst();
            //GridView1.Visible = true;
        }
 
      
 

    }
}
thanksss in advance
AnswerRe: i m new in asp.net. and i want 2 call a gridview by dropdownlist. Pin
Richard MacCutchan13-Sep-12 23:31
mvpRichard MacCutchan13-Sep-12 23:31 
GeneralRe: i m new in asp.net. and i want 2 call a gridview by dropdownlist. Pin
Rashid Choudhary13-Sep-12 23:36
memberRashid Choudhary13-Sep-12 23:36 
GeneralRe: i m new in asp.net. and i want 2 call a gridview by dropdownlist. Pin
Pete O'Hanlon13-Sep-12 23:40
protectorPete O'Hanlon13-Sep-12 23:40 
GeneralRe: i m new in asp.net. and i want 2 call a gridview by dropdownlist. Pin
Richard MacCutchan14-Sep-12 0:05
mvpRichard MacCutchan14-Sep-12 0:05 
GeneralRe: i m new in asp.net. and i want 2 call a gridview by dropdownlist. Pin
Pete O'Hanlon14-Sep-12 0:28
protectorPete O'Hanlon14-Sep-12 0:28 
GeneralRe: i m new in asp.net. and i want 2 call a gridview by dropdownlist. Pin
Richard MacCutchan14-Sep-12 0:44
mvpRichard MacCutchan14-Sep-12 0:44 
GeneralRe: i m new in asp.net. and i want 2 call a gridview by dropdownlist. Pin
Tadit Dash22-Sep-12 19:06
memberTadit Dash22-Sep-12 19:06 
AnswerRe: i m new in asp.net. and i want 2 call a gridview by dropdownlist. Pin
Meysam Tolouee14-Sep-12 9:01
memberMeysam Tolouee14-Sep-12 9:01 
Questionbiztalk server Pin
srinuthippyreddy12-Sep-12 21:12
membersrinuthippyreddy12-Sep-12 21:12 
AnswerRe: biztalk server Pin
Richard MacCutchan12-Sep-12 22:13
mvpRichard MacCutchan12-Sep-12 22:13 
QuestionMultiple Column ComboBox in VB.Net Pin
sivanesh.p12-Sep-12 2:49
membersivanesh.p12-Sep-12 2:49 
AnswerRe: Multiple Column ComboBox in VB.Net Pin
Bernhard Hiller12-Sep-12 3:51
memberBernhard Hiller12-Sep-12 3:51 
AnswerRe: Multiple Column ComboBox in VB.Net Pin
Dave Kreskowiak12-Sep-12 3:53
mvpDave Kreskowiak12-Sep-12 3:53 
AnswerRe: Multiple Column ComboBox in VB.Net Pin
hiredotnet16-Sep-12 19:41
memberhiredotnet16-Sep-12 19:41 
QuestionHow to disable No of copies in Print Dialog in C#.net Windows Application Pin
sr1599-Sep-12 23:13
membersr1599-Sep-12 23:13 
AnswerRe: How to disable No of copies in Print Dialog in C#.net Windows Application Pin
Eddy Vluggen10-Sep-12 2:45
memberEddy Vluggen10-Sep-12 2:45 
AnswerRe: How to disable No of copies in Print Dialog in C#.net Windows Application Pin
Pete O'Hanlon10-Sep-12 23:27
protectorPete O'Hanlon10-Sep-12 23:27 
QuestionRegarding datamining Pin
vinu Rajendran9-Sep-12 20:03
membervinu Rajendran9-Sep-12 20:03 
AnswerRe: Regarding datamining Pin
Eddy Vluggen10-Sep-12 2:46
memberEddy Vluggen10-Sep-12 2:46 
QuestionC# .Net windows application unable to open MS Access Database Connection in windows server 2003 Pin
ankit_1987_95-Sep-12 23:04
memberankit_1987_95-Sep-12 23:04 
AnswerRe: C# .Net windows application unable to open MS Access Database Connection in windows server 2003 Pin
Eddy Vluggen5-Sep-12 23:48
memberEddy Vluggen5-Sep-12 23:48 
Generaloptiontips.in Pin
optiontips.in4-Sep-12 21:26
memberoptiontips.in4-Sep-12 21:26 
AnswerRe: optiontips.in Pin
Eddy Vluggen4-Sep-12 21:58
memberEddy Vluggen4-Sep-12 21:58 
QuestionObtain Summary Values from GridView Control in vb.Net?? Pin
Priyanka Jain4-Sep-12 19:39
memberPriyanka Jain4-Sep-12 19:39 
AnswerRe: Obtain Summary Values from GridView Control in vb.Net?? Pin
Eddy Vluggen4-Sep-12 21:55
memberEddy Vluggen4-Sep-12 21:55 
AnswerRe: Obtain Summary Values from GridView Control in vb.Net?? Pin
Durgeshyadav201210-Sep-12 23:20
memberDurgeshyadav201210-Sep-12 23:20 
QuestionXML Deserializing Button.Color Pin
Dan Orr4-Sep-12 19:20
memberDan Orr4-Sep-12 19:20 
AnswerRe: XML Deserializing Button.Color Pin
Eddy Vluggen4-Sep-12 21:54
memberEddy Vluggen4-Sep-12 21:54 
QuestionBest way to understand .Net Framework!? Pin
Tanajee Vaghmare4-Sep-12 6:34
memberTanajee Vaghmare4-Sep-12 6:34 
AnswerRe: Best way to understand .Net Framework!? Pin
Eddy Vluggen4-Sep-12 6:42
memberEddy Vluggen4-Sep-12 6:42 
QuestionCustom Tool and Designer Serializer Pin
Mdallal842-Sep-12 2:17
memberMdallal842-Sep-12 2:17 
GeneralRazor Engine Pin
albarhami1-Sep-12 20:45
memberalbarhami1-Sep-12 20:45 
GeneralRe: Razor Engine Pin
Eddy Vluggen1-Sep-12 21:50
memberEddy Vluggen1-Sep-12 21:50 
GeneralRe: Razor Engine Pin
Dave Kreskowiak2-Sep-12 4:45
mvpDave Kreskowiak2-Sep-12 4:45 
QuestionRazor engine (MVC) Pin
albarhami1-Sep-12 20:44
memberalbarhami1-Sep-12 20:44 
Questionhow to create database with sql connection in vb.net Pin
mamnafih31-Aug-12 1:05
membermamnafih31-Aug-12 1:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 6 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid