This is a simple task for searching grid view
and views the details of in grid view data in popup window (new browser).
Search.aspx (.aspx)
<%@
Page Language="C#"
AutoEventWireup="true"
CodeFile="Search.aspx.cs"
Inherits="Search"
%>
<!DOCTYPE
html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml">
<head
runat="server">
<title>Untitled
Page</title>
<style
type="text/css">
.form
{
background-color:
skyblue;
}
.div
{
right: 302px;
left: 300px;
height:
112px;
}
.div1
{
right: 302px;
left: 10px;
height:
112px;
}
</style>
</head>
<body
class="form">
<form
id="form1"
runat="server">
<div
class="div"
style="position:
absolute; top:
42px;">
<table>
<tr>
<td
align="center">
<b>Know
Your Application Status </b>
</td>
</tr>
<tr>
<td>
<asp:Panel
ID="Panel1"
runat="server">
<asp:RadioButtonList
ID="RadioButtonList1"
runat="server"
RepeatDirection="Horizontal"
Width="372px">
<asp:ListItem
Value="Id"
Selected="True">Application
ID</asp:ListItem>
<asp:ListItem
Value="Name">Applicant
Name</asp:ListItem>
<asp:ListItem
Value="No">House
Number</asp:ListItem>
</asp:RadioButtonList>
</asp:Panel>
</td>
</tr>
<tr>
<td
align="center">
<asp:TextBox
ID="txtSearchContect"
runat="server"
Width="197px"></asp:TextBox>
</td>
</tr>
<tr>
<td
align="center">
<asp:Button
ID="btnsearch"
runat="server"
Text="Search"
OnClick="btnsearch_Click"
/>
</td>
</tr>
</table>
</div>
<div
class="div1"
style="position:
absolute; top:
200px;">
<table>
<tr>
<td
align="left">
<asp:GridView
ID="gvappdetails"
AutoGenerateColumns="False"
runat="server"
Style="margin-left:
0px"
Width="916px"
BackColor="White"
BorderColor="#336666"
BorderStyle="Double"
BorderWidth="3px"
CellPadding="4"
GridLines="Horizontal">
<RowStyle
BackColor="White"
ForeColor="#333333"
/>
<Columns>
<asp:BoundField
HeaderText="APP ID"
DataField="APPID"
/>
<asp:BoundField
HeaderText="NAME"
DataField="NAME"
/>
<asp:BoundField
HeaderText="RELATION
NAME" DataField="RELATIONNAME"
/>
<asp:BoundField
HeaderText="AGE"
DataField="AGE"
/>
<asp:BoundField
HeaderText="HOUSE NO"
DataField="HOUSENO" />
<%--<asp:BoundField
HeaderText="AC NUMBER" DataField="[ACNUMBER&NAME]" />--%>
<asp:BoundField
HeaderText="PART NO"
DataField="PARTNO" />
<asp:TemplateField
HeaderText="View
Status?">
<ItemTemplate>
<a
href="javascript:window.open('Searchdetails.aspx?AppId=<%#
Eval("APPID") %>','NewPage','width=400,height=500');">
View Status</a>
</ItemTemplate>
</asp:TemplateField>
</Columns>
<FooterStyle
BackColor="White"
ForeColor="#333333"
/>
<PagerStyle
BackColor="#336666"
ForeColor="White"
HorizontalAlign="Center"
/>
<SelectedRowStyle
BackColor="#339966"
Font-Bold="True"
ForeColor="White"
/>


Join the conversation! Your thoughts help the community grow.