Showing posts with label Detailsview. Show all posts
Showing posts with label Detailsview. Show all posts

Monday, May 20, 2013

How to Bind Detailsview in Asp.net using Store Procedure


Introduction: In this post I try to explain how we can bind the Detailsview Data control in Asp.net.
Detailsview

Description:
I have created a table name STUDENT_DETAIL and insert data into table. STUDENT_ID is primary key.
STUDENT_ID
int
STUDENT_NAME
varchar(50)
STUDENT_ADDRESS
varchar(50)
STUDENT_CLASS
varchar(50)

Monday, May 6, 2013

How to Bind, Edit, Delete, Paging and Update in Detailsview in Asp.net(C#, VB)?


Introduction: In this post I will explain you how to bind, edit, delete and update the Detailsview data control in Asp.net.

Description:
I have created a table name STUDENT_DETAIL.
STUDENT_ID
int
STUDENT_NAME
varchar(50)
STUDENT_ADDRESS
varchar(50)
STUDENT_CLASS
varchar(50)

STUDENT_ID is primary key.
Now open the Visual Studio>Go to File>New>Website. Add the Connectionstring in web.config file of website.
<configuration>
       <connectionStrings>
    <add name="connection" connectionString="Data Source=SYS-1F78031ED0A;Initial Catalog=TestBlog;Integrated Security=True"/>
       </connectionStrings>
       <system.web>
        <compilation debug="true" targetFramework="4.0" />
    </system.web>
</configuration>

Saturday, May 4, 2013

How to Bind Detailsview control using Sqldataadapter, Datatable and Query in Asp.net(C#, VB)


Introduction: In this post I will explain you how to bind the Detailview data control in Asp.net.
Description:
I have created a table name STUDENT_DETAIL.
STUDENT_ID
int
STUDENT_NAME
varchar(50)
STUDENT_ADDRESS
varchar(50)
STUDENT_CLASS
varchar(50)

STUDENT_ID is primary key.
Now open the Visual Studio>Go to File>New>Website. Add the Connectionstring in web.config file of website.
<configuration>
       <connectionStrings>
    <add name="connection" connectionString="Data Source=SYS-1F78031ED0A;Initial Catalog=TestBlog;Integrated Security=True"/>
       </connectionStrings>
       <system.web>
        <compilation debug="true" targetFramework="4.0" />
    </system.web>
</configuration>