Click here to Skip to main content
15,887,485 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Tab from one Ajax accordion panel to another Pin
Abhijit Jana7-Jul-09 8:37
professionalAbhijit Jana7-Jul-09 8:37 
GeneralRe: Tab from one Ajax accordion panel to another Pin
Manas Bhardwaj7-Jul-09 8:58
professionalManas Bhardwaj7-Jul-09 8:58 
QuestionCrystal Report -problem Pin
sugunavathysubramanian7-Jul-09 4:41
sugunavathysubramanian7-Jul-09 4:41 
QuestionGetting this : ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Pin
aniruddhaghoshal7-Jul-09 4:30
aniruddhaghoshal7-Jul-09 4:30 
AnswerRe: Getting this : ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Pin
Manas Bhardwaj7-Jul-09 4:32
professionalManas Bhardwaj7-Jul-09 4:32 
QuestionUpdatepanel and UltrawebGrid Pin
Vimalsoft(Pty) Ltd7-Jul-09 4:19
professionalVimalsoft(Pty) Ltd7-Jul-09 4:19 
AnswerRe: Updatepanel and UltrawebGrid Pin
Christian Graus7-Jul-09 4:21
protectorChristian Graus7-Jul-09 4:21 
GeneralRe: Updatepanel and UltrawebGrid Pin
Vimalsoft(Pty) Ltd7-Jul-09 4:48
professionalVimalsoft(Pty) Ltd7-Jul-09 4:48 
I have Tested with MS Gridview and it does not get updated too.

This is how i Bind the grid.

In my UserControl i have Exposed the event to the Hosting page like this
public event EventHandler SubjectChange;

protected void OnSubjectChange(EventArgs e)
{
    if (SubjectChange != null)
    {
        SubjectChange(this, e);
    }
}


and in the selectedindexchange event of the dropdownlist i have the the code like this

OnSubjectChange(e);


and in my Hosting page i have



override protected void OnInit(EventArgs e)
{
    this.ActivityCtrl1.TextChanged += new EventHandler(ActivityCtrl1_TextChanged);

    InitializeComponent();

    base.OnInit(e);
}


and the method InitializeComponent() is defined like this

// On main page handle the incomming events
   private void InitializeComponent()
   {
       this.Load += new System.EventHandler(this.Page_Load);
       // Catch SubjectChange events fired on the subject selector
       SubjectSelector1.SubjectChange += new EventHandler(SelectedSubjectChange);
   }



and the Subjectchange is Defined like this

// When a subject is changed on the subject selector
private void SelectedSubjectChange(object sender, EventArgs e)
{
    LoadControlsForSelectedSubject();
    Bind_Staff_Cycle_Grid();
}


the Method Bind_Staff_Cycle_Grid() is the One that Binds the GRid

and i have defined it like this

private void Bind_Staff_Cycle_Grid()
   {
       if (!Page.IsPostBack)
       {
           BLL.BLL obj = new BLL.BLL();

           String Subject_Descr = Convert.ToString(Session["SelectedSubject"]);

           DataTable dt = new DataTable();

           String DB = Convert.ToString(Session["ActiveDatabase"]);

           try
           {
               //



               obj.TRUNCATE_TABLE_FINAL(DB);

               dt = obj.Get_Staff_Cycles(Subject_Descr, DB);

               if (dt.Rows.Count > 0)
               {
                   Gridstaff.DataSource = dt;

                   Gridstaff.DataBind();

                   UpdatePanel2.Update();
               }
           }
           catch (SqlException ex)
           {
               lblGridStaff.Text = ex.Message;
           }
           finally
           {
               obj = null;
           }
       }
   }


and my Gridview's Defination is
<asp:GridView ID="Gridstaff" runat="server" OnSelectedIndexChanged="Gridstaff_SelectedIndexChanged"
                                                           Width="385px">
                                                       </asp:GridView>


Thanks

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

GeneralRe: Updatepanel and UltrawebGrid Pin
r a m e s h7-Jul-09 5:23
r a m e s h7-Jul-09 5:23 
AnswerRe: Updatepanel and UltrawebGrid Pin
Vimalsoft(Pty) Ltd7-Jul-09 20:28
professionalVimalsoft(Pty) Ltd7-Jul-09 20:28 
GeneralRe: Updatepanel and UltrawebGrid Pin
Christian Graus7-Jul-09 5:23
protectorChristian Graus7-Jul-09 5:23 
GeneralRe: Updatepanel and UltrawebGrid Pin
Vimalsoft(Pty) Ltd7-Jul-09 20:13
professionalVimalsoft(Pty) Ltd7-Jul-09 20:13 
GeneralRe: Updatepanel and UltrawebGrid Pin
Vimalsoft(Pty) Ltd7-Jul-09 20:27
professionalVimalsoft(Pty) Ltd7-Jul-09 20:27 
QuestionHow can i draw a rectangle by use of any image in asp.net? Pin
Hitesh Rank7-Jul-09 3:47
Hitesh Rank7-Jul-09 3:47 
AnswerRe: How can i draw a rectangle by use of any image in asp.net? Pin
Christian Graus7-Jul-09 3:54
protectorChristian Graus7-Jul-09 3:54 
QuestionFailed to get operation name from the incoming request Pin
mani.thirumalai7-Jul-09 3:42
mani.thirumalai7-Jul-09 3:42 
AnswerRe: Failed to get operation name from the incoming request Pin
ma_hanifa29-Jul-09 9:57
ma_hanifa29-Jul-09 9:57 
QuestionIS THIS POSSIBLE? Pin
Sundeep Ganiga7-Jul-09 3:36
Sundeep Ganiga7-Jul-09 3:36 
AnswerRe: IS THIS POSSIBLE? Pin
Christian Graus7-Jul-09 3:38
protectorChristian Graus7-Jul-09 3:38 
QuestionHow to send the email using email template? Pin
prasadSn20037-Jul-09 3:30
prasadSn20037-Jul-09 3:30 
AnswerRe: How to send the email using email template? Pin
Christian Graus7-Jul-09 3:37
protectorChristian Graus7-Jul-09 3:37 
QuestionCannot Connect to SQL Server 2000 through IIS Pin
aniruddhaghoshal7-Jul-09 3:11
aniruddhaghoshal7-Jul-09 3:11 
AnswerRe: Cannot Connect to SQL Server 2000 through IIS Pin
Christian Graus7-Jul-09 3:13
protectorChristian Graus7-Jul-09 3:13 
AnswerRe: Cannot Connect to SQL Server 2000 through IIS Pin
Praveen Nair (NinethSense)7-Jul-09 3:25
Praveen Nair (NinethSense)7-Jul-09 3:25 
Question[Message Deleted] Pin
Pawan Kiran7-Jul-09 3:09
Pawan Kiran7-Jul-09 3:09 

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

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