Its not working sir....
Vb.net
Imports System.Data
Imports System.Text
Imports System.Configuration
Imports System.Data.SqlClient
Imports iTextSharp.text.Image
Imports iTextSharp.text
Imports iTextSharp.text.html.simpleparser
Imports iTextSharp.text.pdf
Imports System.IO
Imports System.Drawing
Public Class profiledownload
Inherits System.Web.UI.Page
Dim l As String
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not Me.IsPostBack Then
Profile()
photo()
'Education Details
GetData()
teaching()
industry()
journal()
conference()
eorg()
eatten()
project()
End If
End Sub
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Response.ContentType = "application/pdf"
Response.AddHeader("content-disposition", "attachment;filename=Resume.pdf")
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Dim sw As New StringWriter()
Dim hw As New HtmlTextWriter(sw)
Me.Page.RenderControl(hw)
Dim sr As New StringReader(sw.ToString())
Dim pdfDoc As New Document(PageSize.A4, 10.0F, 10.0F, 100.0F, 0.0F)
Dim htmlparser As New HTMLWorker(pdfDoc)
PdfWriter.GetInstance(pdfDoc, Response.OutputStream)
pdfDoc.Open()
htmlparser.Parse(sr)
pdfDoc.Close()
Response.Write(pdfDoc)
Response.End()
End Sub
Private Function GetData() As DataTable
'Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
Dim con As New SqlConnection
con.ConnectionString = "initial catalog=research; user id=sa; pwd=123456"
con.Open()
l = Request.QueryString("test")
Dim dacust1 As New SqlDataAdapter
Dim dt1 As New DataTable()
If con.State = ConnectionState.Closed Then
con.Open()
End If
dacust1 = New SqlDataAdapter("SELECT course AS Degree, noi AS [Name of the Institution], university AS University, yop AS [Year of Passing], spec AS Specialization, cgpa AS CGPA FROM educ where loginid='" + l + "'", con)
dacust1.Fill(dt1)
GridView1.DataSource = dt1
GridView1.DataBind()
con.Close()
Return Nothing
End Function
Private Function teaching() As DataTable
'Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
Dim con As New SqlConnection
con.ConnectionString = "initial catalog=research; user id=sa; pwd=123456"
con.Open()
l = Request.QueryString("test")
Dim dacust1 As New SqlDataAdapter
Dim dt1 As New DataTable()
If con.State = ConnectionState.Closed Then
con.Open()
End If
dacust1 = New SqlDataAdapter("SELECT iname AS [Institution Name], frm AS [From], dto AS [To], desig AS Designation, salary AS Salary FROM expins where loginid='" + l + "'", con)
dacust1.Fill(dt1)
GridView2.DataSource = dt1
GridView2.DataBind()
con.Close()
Return Nothing
End Function
Private Function industry() As DataTable
'Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
Dim con As New SqlConnection
con.ConnectionString = "initial catalog=research; user id=sa; pwd=123456"
con.Open()
l = Request.QueryString("test")
Dim dacust1 As New SqlDataAdapter
Dim dt1 As New DataTable()
If con.State = ConnectionState.Closed Then
con.Open()
End If
dacust1 = New SqlDataAdapter("SELECT indname AS [Industry Name], frm AS [From], dto AS [To], desig AS Designation, salary AS Salary FROM expind where loginid='" + l + "'", con)
dacust1.Fill(dt1)
GridView3.DataSource = dt1
GridView3.DataBind()
con.Close()
Return Nothing
End Function
Private Function journal() As DataTable
'Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
Dim con As New SqlConnection
con.ConnectionString = "initial catalog=research; user id=sa; pwd=123456"
con.Open()
l = Request.QueryString("test")
Dim dacust1 As New SqlDataAdapter
Dim dt1 As New DataTable()
If con.State = ConnectionState.Closed Then
con.Open()
End If
dacust1 = New SqlDataAdapter("SELECT name AS Name, type AS Type, title AS Title, impfac AS [Impact Factor], vno AS [Volume No], ino AS [Issue No], pno AS [Publication No], mon AS Month, year AS Year, coauth AS Coauthor FROM journal where loginid='" + l + "'", con)
dacust1.Fill(dt1)
GridView4.DataSource = dt1
GridView4.DataBind()
con.Close()
Return Nothing
End Function
Private Function eorg() As DataTable
'Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
Dim con As New SqlConnection
con.ConnectionString = "initial catalog=research; user id=sa; pwd=123456"
con.Open()
l = Request.QueryString("test")
Dim dacust1 As New SqlDataAdapter
Dim dt1 As New DataTable()
If con.State = ConnectionState.Closed Then
con.Open()
End If
dacust1 = New SqlDataAdapter(" SELECT title AS Title, etype AS [Event Type], conv AS Convenor, spon AS Sponser, coord AS Coordinator, agname AS [Agency Name], amt AS Amount, nopart AS [No of Participants], doe AS Date FROM conforg where loginid='" + l + "'", con)
dacust1.Fill(dt1)
GridView6.DataSource = dt1
GridView6.DataBind()
con.Close()
Return Nothing
End Function
Private Function conference() As DataTable
'Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
Dim con As New SqlConnection
con.ConnectionString = "initial catalog=research; user id=sa; pwd=123456"
con.Open()
l = Request.QueryString("test")
Dim dacust1 As New SqlDataAdapter
Dim dt1 As New DataTable()
If con.State = ConnectionState.Closed Then
con.Open()
End If
dacust1 = New SqlDataAdapter("SELECT name AS Name, type AS Type, venue AS Venue, date AS Date, title AS Title FROM conf where loginid='" + l + "'", con)
dacust1.Fill(dt1)
GridView5.DataSource = dt1
GridView5.DataBind()
con.Close()
Return Nothing
End Function
Private Function eatten() As DataTable
'Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
Dim con As New SqlConnection
con.ConnectionString = "initial catalog=research; user id=sa; pwd=123456"
con.Open()
l = Request.QueryString("test")
Dim dacust1 As New SqlDataAdapter
Dim dt1 As New DataTable()
If con.State = ConnectionState.Closed Then
con.Open()
End If
dacust1 = New SqlDataAdapter("SELECT cat AS Category, type AS Type, venue AS Venue, date AS Date, title AS Title FROM event where loginid='" + l + "'", con)
dacust1.Fill(dt1)
GridView7.DataSource = dt1
GridView7.DataBind()
con.Close()
Return Nothing
End Function
Private Function project() As DataTable
'Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
Dim con As New SqlConnection
con.ConnectionString = "initial catalog=research; user id=sa; pwd=123456"
con.Open()
l = Request.QueryString("test")
Dim dacust1 As New SqlDataAdapter
Dim dt1 As New DataTable()
If con.State = ConnectionState.Closed Then
con.Open()
End If
dacust1 = New SqlDataAdapter("SELECT agname AS [Agency Name], pi AS PI, title AS Title, copi AS [Co-PI], durfrom AS [From], durto AS [To], status AS Status, amt AS Amount, reflr AS Reflr FROM prjfund where loginid='" + l + "'", con)
dacust1.Fill(dt1)
GridView8.DataSource = dt1
GridView8.DataBind()
con.Close()
Return Nothing
End Function
Private Function profile() As DataTable
'Dim constr As String = ConfigurationManager.ConnectionStrings("constr").ConnectionString
Dim con As New SqlConnection
Dim dr As SqlDataReader
Dim cmd1 As New SqlCommand
Dim i As Integer
Dim g As String
Dim sign, tname As String
con.ConnectionString = "initial catalog=research; user id=sa; pwd=123456"
con.Open()
l = Request.QueryString("test")
cmd1 = New SqlCommand
cmd1.Connection = con
cmd1.CommandText = "select * from newuser where loginid='" + l + "'"
'dr.Close()
cmd1.CommandType = Data.CommandType.Text
dr = cmd1.ExecuteReader
' Dim sign As String, tname As String
If dr.HasRows Then
While dr.Read()
'MsgBox(dr(4))
' MsgBox("hi")
sign = dr(4)
End While
End If
If sign = "1" Or sign = "3" Then
tname = "Scholar"
g = "bgp"
ElseIf sign = "2" Then
tname = "Supervisor"
g = "bgrp"
ElseIf sign = "4" Or sign = "5" Then
tname = "Staff"
g = "bgrp"
End If
dr.Close()
Using cmd As New SqlCommand("SELECT name,dept," + g + ",dob,age,desig,contno,email,resadd,offadd,doj FROM " + tname + " where loginid='" + l + "' ", con)
dr = cmd.ExecuteReader()
While dr.Read
name.Text = dr.Item("name")
dept.Text = dr.Item("dept")
If sign = "1" Or sign = "3" Then
bgrp.Text = dr.Item("bgp")
ElseIf sign = "2" Then
bgrp.Text = dr.Item("bgrp")
ElseIf sign = "4" Or sign = "5" Then
bgrp.Text = dr.Item("bgrp")
End If
DOB.Text = dr.Item("dob")
age.Text = dr.Item("age")
desig.Text = dr.Item("desig")
contactno.Text = dr.Item("contno")
email.Text = dr.Item("email")
resadd.Text = dr.Item("resadd")
offadd.Text = dr.Item("offadd")
doj.Text = dr.Item("doj")
i = 1
End While
dr.Close()
Return Nothing
End Using
End Function
Protected Function photo() As DataTable
Dim con As New SqlConnection
Dim dr As SqlDataReader
Dim i As Integer
con.ConnectionString = "initial catalog=research; user id=sa; pwd=123456"
con.Open()
l = Request.QueryString("test")
Using cmd As New SqlCommand("select name from upphoto where loginid='" + l + "' ", con)
dr = cmd.ExecuteReader()
While dr.Read
Image1.ImageUrl = dr.Item("name")
i = 1
End While
dr.Close()
Return Nothing
End Using
End Function
Public Overrides Sub VerifyRenderingInServerForm(control As Control)
End Sub
End Class
Source Code
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="profiledownload.aspx.vb" EnableEventValidation="false" Inherits="RD.profiledownload" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title> <meta name="keywords" content="" />
<meta name="description" content="" />
<link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900|Quicksand:400,700|Questrial" rel="stylesheet" />
<link href="default2.css" rel="stylesheet" type="text/css" media="all" />
<link href="fonts.css" rel="stylesheet" type="text/css" media="all" /> <%-- <style type="text/css">
.auto-style1 {
width: 221px;
}
.auto-style2 {
width: 359px;
}
.auto-style3 {
width: 85px;
}
</style>--%></head><body bgcolor="#16A085"> <form id="form1" runat="server" aria-multiline="False">
<%--<div id="header-wrapper">
<div id="header" class="container">
<div id="logo">
<div id="menu">
<asp:ImageButton ID="ImageButton1" runat="server" Height="43px" ImageUrl="~/home.jpg" PostBackUrl="~/home.aspx" Width="59px" ImageAlign="Middle" />
<ul>
<p style="font-family: David; color: #FFFFFF; font-weight: bold; font-size: x-large; font-style: italic; width: 383px;">Details</p>
</ul> <asp:ImageButton ID="ImageButton3" runat="server" Height="85px" ImageUrl="~/log.jpg" PostBackUrl="~/Default.aspx" Width="144px" ImageAlign="Middle" />
</div><br /><br /></div></div></div>--%>
<br />
<asp:Button ID="Button1" runat="server" Font-Bold="True" Font-Names="Andalus" Font-Size="Medium" Text="Download" />
<br />
<br />
<br />
<table border="2" cellpadding="7" cellspacing="5">
<%--<tr><td>
<b>Login Id:</b></td>
<td><asp:TextBox ID="login" runat="server" Width="200px" onchange="this.value=this.value.toUpperCase();"></asp:TextBox>
<br/><asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server"
ControlToValidate="login" ErrorMessage="Mandatory"></asp:RequiredFieldValidator>
</td>
<td>
<b>Password:<br/> (Maximum 9 Characters)</b></td>
<td><asp:TextBox ID="pwd" runat="server" Width="200px" TextMode=Password MaxLength="9"></asp:TextBox>
<br/><asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server"
ControlToValidate="pwd" ErrorMessage="Mandatory"></asp:RequiredFieldValidator></td>
</tr>--%>
<tr>
<td><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :large; font-weight: bold;">Name :</b></td>
<td class="auto-style2">
<asp:TextBox ID="name" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" Width="200px" TextMode="MultiLine"></asp:TextBox></td>
<td>
<asp:Image ID="Image1" runat="server" />
</td>
</tr>
<tr>
<td><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :large; font-weight: bold;">Department:</b></td>
<td class="auto-style2">
<asp:TextBox ID="dept" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" Width="193px" TextMode="MultiLine"></asp:TextBox>
<br />
</td>
</tr>
<tr>
<td><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :large; font-weight: bold;">Blood Group:</b></td>
<td class="auto-style2">
<asp:TextBox ID="bgrp" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" onchange="this.value=this.value.toUpperCase();" Width="200px" TextMode="MultiLine"></asp:TextBox>
<br />
</td>
</tr>
<tr>
<td><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :medium; font-weight: bold;">DOB<br />
(DD/MM/YYYY):</b></td>
<td class="auto-style2">
<asp:TextBox ID="DOB" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" onblur="CalculateAge(this)" Width="200px" TextMode="MultiLine"></asp:TextBox>
<br />
</td></tr>
<tr>
<td><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :large; font-weight: bold;">Age:</b></td>
<td class="auto-style2">
<asp:TextBox ID="age" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" Width="200px" TextMode="MultiLine"></asp:TextBox>
<br />
</td>
</tr>
<tr>
<td><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :large; font-weight: bold;">Designation:</b></td>
<td class="auto-style2">
<asp:TextBox ID="desig" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" Width="202px" TextMode="MultiLine"></asp:TextBox>
<br />
</td>
</tr>
<tr>
<td><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :large; font-weight: bold;">Contact Number:</b></td>
<td class="auto-style2">
<asp:TextBox ID="contactno" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" onchange="this.value=this.value.toUpperCase();" Width="200px" TextMode="MultiLine"></asp:TextBox>
<br />
</td>
</tr>
<tr>
<td><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :large; font-weight: bold;">Email Id:</b></td>
<td class="auto-style2">
<asp:TextBox ID="email" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" Width="200px" TextMode="MultiLine"></asp:TextBox>
<br />
</td>
<%--<asp:RegularExpressionValidator ID="regexpName" runat="server"
ErrorMessage="This Email is not valid."
ControlToValidate="email"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />--%>
<asp:RegularExpressionValidator ID="regexpName" runat="server" ControlToValidate="email" ErrorMessage="This Email is not valid." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
</tr>
<tr>
<td class="auto-style1"><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :large; font-weight: bold;">Residential Address:</b></td>
<td class="auto-style2">
<asp:TextBox ID="resadd" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" TextMode="MultiLine" Width="197px" Wrap="true"></asp:TextBox>
<br />
</td>
</tr>
<tr>
<td class="auto-style1"><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :large; font-weight: bold;">Official Address:</b></td>
<td class="auto-style2">
<asp:TextBox ID="offadd" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" TextMode="MultiLine" Width="197px" Wrap="true"></asp:TextBox>
<br />
</td>
</tr>
<tr>
<td><b style="color: #000099; font-family :'Lucida Calligraphy' ;font-size :large; font-weight: bold;">DOJ at NEC:</b></td>
<td class="auto-style2">
<asp:TextBox ID="doj" runat="server" Font-Bold="True" Font-Names="Century" Font-Size="Medium" ForeColor="#009900" onblur="checkdate(this);" onchange="this.value=this.value.toUpperCase();" Width="200px" TextMode="MultiLine"></asp:TextBox>
<br />
</td>
</table>
<br />
<br />
<br />
<br />
<br />
<asp:Label ID="Edu" runat="server" Text="Education Details" Font-Bold="True" Font-Names="Algerian" ForeColor="#FF6600" /> <br />
<br />
<br />
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" EnableModelValidation="True" Width="647px">
<Columns>
<asp:BoundField DataField="Degree" HeaderText="Degree" SortExpression="Degree" />
<asp:BoundField DataField="Name of the Institution" HeaderText="Name of the Institution" SortExpression="Name of the Institution" />
<asp:BoundField DataField="University" HeaderText="University" SortExpression="University" />
<asp:BoundField DataField="Year of Passing" HeaderText="Year of Passing" SortExpression="Year of Passing" />
<asp:BoundField DataField="Specialization" HeaderText="Specialization" SortExpression="Specialization" />
<asp:BoundField DataField="CGPA" HeaderText="CGPA" SortExpression="CGPA" />
</Columns>
</asp:GridView>
<br />
<br />
<br />
<asp:Label ID="Edu0" runat="server" Text="Teaching Experience" Font-Bold="True" Font-Names="Algerian" ForeColor="#FF6600" />
<br />
<br />
<br />
<br />
<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" EnableModelValidation="True" Width="650px" >
<Columns>
<asp:BoundField DataField="Institution Name" HeaderText="Institution Name" SortExpression="Institution Name" />
<asp:BoundField DataField="From" HeaderText="From" SortExpression="From" />
<asp:BoundField DataField="To" HeaderText="To" SortExpression="To" />
<asp:BoundField DataField="Designation" HeaderText="Designation" SortExpression="Designation" />
<asp:BoundField DataField="Salary" HeaderText="Salary" SortExpression="Salary" />
</Columns>
</asp:GridView>
<br />
<br />
<br />
<asp:Label ID="Edu1" runat="server" Text="Industry Experience" Font-Bold="True" Font-Names="Algerian" ForeColor="#FF6600" />
<br />
<br />
<br />
<br />
<asp:GridView ID="GridView3" runat="server" AutoGenerateColumns="False" EnableModelValidation="True" Width="617px">
<Columns>
<asp:BoundField DataField="Industry Name" HeaderText="Industry Name" SortExpression="Industry Name" />
<asp:BoundField DataField="From" HeaderText="From" SortExpression="From" />
<asp:BoundField DataField="To" HeaderText="To" SortExpression="To" />
<asp:BoundField DataField="Designation" HeaderText="Designation" SortExpression="Designation" />
<asp:BoundField DataField="Salary" HeaderText="Salary" SortExpression="Salary" />
</Columns>
</asp:GridView>
<br />
<br />
<br />
<asp:Label ID="Edu2" runat="server" Text="Journal Details" Font-Bold="True" Font-Names="Algerian" ForeColor="#FF6600" />
<br />
<br />
<br />
<br />
<asp:GridView ID="GridView4" runat="server" AutoGenerateColumns="False" EnableModelValidation="True" Width="920px">
<Columns>
<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
<asp:BoundField DataField="Type" HeaderText="Type" SortExpression="Type" />
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
<asp:BoundField DataField="Impact Factor" HeaderText="Impact Factor" SortExpression="Impact Factor" />
<asp:BoundField DataField="Volume No" HeaderText="Volume No" SortExpression="Volume No" />
<asp:BoundField DataField="Issue No" HeaderText="Issue No" SortExpression="Issue No" />
<asp:BoundField DataField="Publication No" HeaderText="Publication No" SortExpression="Publication No" />
<asp:BoundField DataField="Month" HeaderText="Month" SortExpression="Month" />
<asp:BoundField DataField="Year" HeaderText="Year" SortExpression="Year" />
<asp:BoundField DataField="Coauthor" HeaderText="Coauthor" SortExpression="Coauthor" />
</Columns>
</asp:GridView>
<br />
<br />
<asp:Label ID="Edu3" runat="server" Text="Conference Details" Font-Bold="True" Font-Names="Algerian" ForeColor="#FF6600" />
<br />
<br />
<br />
<asp:GridView ID="GridView5" runat="server" AutoGenerateColumns="False" EnableModelValidation="True" Width="773px">
<Columns>
<asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
<asp:BoundField DataField="Type" HeaderText="Type" SortExpression="Type" />
<asp:BoundField DataField="Venue" HeaderText="Venue" SortExpression="Venue" />
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
</Columns>
</asp:GridView>
<br />
<br />
<br />
<asp:Label ID="Edu4" runat="server" Text="Events Organized Details" Font-Bold="True" Font-Names="Algerian" ForeColor="#FF6600" />
<br />
<br />
<br />
<asp:GridView ID="GridView6" runat="server" AutoGenerateColumns="False" EnableModelValidation="True" Width="968px">
<Columns>
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
<asp:BoundField DataField="Event Type" HeaderText="Event Type" SortExpression="Event Type" />
<asp:BoundField DataField="Convenor" HeaderText="Convenor" SortExpression="Convenor" />
<asp:BoundField DataField="Sponser" HeaderText="Sponser" SortExpression="Sponser" />
<asp:BoundField DataField="Coordinator" HeaderText="Coordinator" SortExpression="Coordinator" />
<asp:BoundField DataField="Agency Name" HeaderText="Agency Name" SortExpression="Agency Name" />
<asp:BoundField DataField="Amount" HeaderText="Amount" SortExpression="Amount" />
<asp:BoundField DataField="No of Participants" HeaderText="No of Participants" SortExpression="No of Participants" />
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
</Columns>
</asp:GridView>
<br />
<br />
<br />
<asp:Label ID="Edu5" runat="server" Text="Events Attended Details" Font-Bold="True" Font-Names="Algerian" ForeColor="#FF6600" />
<br />
<br />
<br />
<br />
<asp:GridView ID="GridView7" runat="server" AutoGenerateColumns="False" EnableModelValidation="True" Width="737px">
<Columns>
<asp:BoundField DataField="Category" HeaderText="Category" SortExpression="Category" />
<asp:BoundField DataField="Type" HeaderText="Type" SortExpression="Type" />
<asp:BoundField DataField="Venue" HeaderText="Venue" SortExpression="Venue" />
<asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" />
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
</Columns>
</asp:GridView>
<br />
<br />
<br />
<asp:Label ID="Edu6" runat="server" Text="Project Details" Font-Bold="True" Font-Names="Algerian" ForeColor="#FF6600" />
<br />
<br />
<br />
<br />
<br />
<asp:GridView ID="GridView8" runat="server" AutoGenerateColumns="False" EnableModelValidation="True" Width="987px" Height="158px">
<Columns>
<asp:BoundField DataField="Agency Name" HeaderText="Agency Name" SortExpression="Agency Name" />
<asp:BoundField DataField="PI" HeaderText="PI" SortExpression="PI" />
<asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
<asp:BoundField DataField="Co-PI" HeaderText="Co-PI" SortExpression="Co-PI" />
<asp:BoundField DataField="From" HeaderText="From" SortExpression="From" />
<asp:BoundField DataField="To" HeaderText="To" SortExpression="To" />
<asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" />
<asp:BoundField DataField="Amount" HeaderText="Amount" SortExpression="Amount" />
<asp:BoundField DataField="Reflr" HeaderText="Reflr" SortExpression="Reflr" />
</Columns>
</asp:GridView>
<br />
<br />
</div>
</form>
</body>
</html>
Error: 'C:\Windows\system32\inetsrv\photo\vg.jpg'
How to resolve it?