Line 1: <%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="WebForm3.aspx.cs" Inherits="Healthcare.docInterface.WebForm3" %>
Line 2:
Line 3: <%@ Import Namespace="MySql.Data.MySqlClient" %>
Line 4: <%@ Import Namespace="Healthcare.dbcon" %>
Line 5: <%@ Import Namespace= "System.Data" %>
The code when written in code-behind works fine.
How do I use MySql.Data.MySqlClient in the .aspx file itself?
MySql.Data.MySqlClient dll must be exist in /bin/ directory.