For a web form vb.net 2010 application, I want to make a call to the sql server 2012 database from the code listed below. This code is executed when the user clicks on a link in a gridview control. I want to make a call to the database to make certain there is not more than one student record that would be in the database due to a user error. This error can be caused by the user working with the vendor software than I have no control over.
My plan is to display an error message to the user and place a 'return' in the code listed below.
Thus can you show me code and/or point me to a url that will show me how I can connect to the database from the code listed below:
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="default.aspx.vb" Inherits="attendanceletters_default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
Delpin Susai RajPosted Sep 1, 2016, 1:43 PM