Built in SQL server Controls !!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • newkhan
    New Member
    • Oct 2007
    • 35

    Built in SQL server Controls !!

    Hello,
    I am using Microsoft .NET 2005. I have to do is to insert,delete and report viewing in c#. I have made bindingsourcena vigator and made connections of database and tables. Navigation buttons, Adding records buttons, deleting records buttons have come by default through .NET2005. But the Event handler functions are not seeing in the code that .NET has made. Like

    private void bindingNavigato rSave_Click(obj ect sender, EventArgs e)
    {
    }
    this.bindingNav igatorSave.Clic k += new System.EventHan dler(this.bindi ngNavigatorSave _Click);

    These above mentioned lines are not available in the code. I want to know that whether .NET do it or we should do it ourself. We have to make these functions as event handlers and write down the code to insert and delete the record.
    If we should do it then what is the benefit for this builtin feature.
    Kindly guide me in a right way.
    Thanks.
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    You will need to declare the event, public event EventHandler Click;, before the click event. HTH.

    Comment

    Working...