in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

Please Help !!! What can I use FindControl Method in ASpxDataview !!!

Last post 11/10/2008 3:48 AM by Umut Aras. 8 replies.
Page 1 of 1 (9 items)
Sort Posts:
Previous Next
  • 11/5/2008 9:29 AM

    Please Help !!! What can I use FindControl Method in ASpxDataview !!!

     Hi Everyone;

    I use "AspxDataview inside AspxPopupControl inside Formview" Controls in my project.

    And Formview mode is insert mode. Post a few information in my database.

    I want to use some control in AspxDataview for my formview.

    But Idont use the findcontrol method AspxDataview.

    Please help what can I do

    My Codes; 

    protected void InsertButton_Click(object sender, EventArgs e)

    {

    Label FirmaID = (Label)ASPxDataView1.FindControl("FirmaIDLabel");

     

     

     

     

     

     

    ASPxPopupControl Popup = (ASPxPopupControl)ASPxDataView1.FindControl("ASPxPopupControl1") ;

     

     

    FormView Formview1 = (FormView)Popup.FindControl("FormView1") ;

     

     

    TextBox EklenmeTarihiTextbox = (TextBox)Formview1.FindControl("EklenmeTarihiTextbox");

     

     

     

     

    TextBox RezFirmaIDTextBox = (TextBox)Formview1.FindControl("RezFirmaIDTextBox");

     

     

    TextBox KullaniciIdTextBox = (TextBox)Formview1.FindControl("KullaniciIdTextBox");

     

     

    TextBox EklenmeTarihiTextBox = (TextBox)Formview1.FindControl("EklenmeTarihiTextBox");

    RezFirmaIDTextBox.Text = FirmaID.Text;

    EklenmeTarihiTextBox.Text =

    DateTime.Now.ToLongTimeString();

     

     

     

    if (Session["KullaniciID"] == null)

    {

    KullaniciIdTextBox.Text =

    "0";

     

     

    else

    {

    KullaniciIdTextBox.Text = Session[

    "KullaniciID"].ToString();

    }

     

    }

     

  • 11/5/2008 11:27 AM In reply to

    Re: Please Help !!! What can I use FindControl Method in ASpxDataview !!!

    Hi,

    I have same problem too, I'm using dataview and I want to button stay checked when I click to  button in the dataview template, but I cant do,

    Thank you for helps

  • 11/5/2008 11:44 AM In reply to

    Re: Please Help !!! What can I use FindControl Method in ASpxDataview !!!

     Yaw İbo nasıl Çözücez bu işi ?

  • 11/6/2008 3:17 AM In reply to

    Re: Please Help !!! What can I use FindControl Method in ASpxDataview !!!

    Hi

    You should use one of the following ASPxDataView's methods:

    FindItemControl(string id, DataViewItem item);
    FindPagerPanelControl(string id, PagerPanelPosition pagerPanelPosition, PagerPanelTemplatePosition templatePosition);

    Thanks, Roman
    R&D, .Net Team
    Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use
    Support Center at http://www.devexpress.com/Support/Center
  • 11/6/2008 6:33 AM In reply to

    Re: Please Help !!! What can I use FindControl Method in ASpxDataview !!!

    Hi,

     

    I still have not able to solve my problem with use  this methods :(   I think I couldnt use  it correctly

    could you send us a short example please ? 

     

    thanks for helps

  • 11/7/2008 7:05 AM In reply to

    Re: Please Help !!! What can I use FindControl Method in ASpxDataview !!!

    Hello

    I don't quite understand the result you want to achieve.
    Could you please send your project to our Support Center for investigation?

    Thanks, Roman
    R&D, .Net Team
    Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use
    Support Center at http://www.devexpress.com/Support/Center
  • 11/7/2008 1:51 PM In reply to

    Re: Please Help !!! What can I use FindControl Method in ASpxDataview !!!

     Do you use Visual Studio Controls Roman?

    I think Yes...

    Another control for exaple Formview , use the method correctly Findcontrol.

    Formview inside Label

    And if u learn Label value you call findcontrol method is right?

    label roman = (Label)Formviev1.findcontrol("Label1");

    but how can ı call in aspxdataview inside formviev has a label?

    if findcontrol dont use in ASPXdataview and if I must use Finditemcontrol

    How can ı Use?

    How can ı call Aspxdaview in normal label value?

    how can I create label from inside ASpxDataview?

  • 11/10/2008 3:28 AM In reply to

    Re: Please Help !!! What can I use FindControl Method in ASpxDataview !!!

    Hello

    Currently, the FormView control shows only one data row from a database, while the ASPxDataView  shows several rows.
    That's why we introduced the FindItemControl method instead of FindControl.

    It's hard to say anything not being able to have a look at your aspx and C# code. The following code works fine for me:
    Label label = (Label)ASPxDataView1.FindItemControl("myLabelID", ASPxDataView1.VisibleItems[0]);

    You should modify your ASPxDataview ItemTemplate to insert a label inside of it.

    Thanks, Roman
    R&D, .Net Team
    Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use
    Support Center at http://www.devexpress.com/Support/Center
  • 11/10/2008 3:48 AM In reply to

    Re: Please Help !!! What can I use FindControl Method in ASpxDataview !!!

     Hello Roman;

    Thank you very much for your help...

    Your information very helpful for me but I was find the same method...

    since 5 days I was occupation :) and will be craye

    I hope see you new Question again :)

    Again Thank you ...

Page 1 of 1 (9 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED