AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 Gridview Process in C# code
Posted by manoj savaliya on  2/22/2011 1:24:22 AM Category: C#
Add to my favorites
Email to friend
How to Display Image In Gridview From Database with Example All Details

Post Your Reply Post New Question

 Viewer's Reply
How to Display Image In Gridview From Database with Example All Details
Answered By manoj savaliya on 2/22/2011 1:27:10 AM
public partial class Default3 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (fileUpEx.HasFile)
{

string filepath = fileUpEx.PostedFile.FileName;
string pat = @"\\(?:.+)\\(.+)\.(.+)";
Regex r = new Regex(pat);
//run
return false;
}
}
return true;

}

</script>

</head>
<body>
<form id="form1" runat="server">
<div>
&nbsp;</div>
<table style="width: 333px; height: 95px">
<tr>
<td style="width: 267px">
UserName:
</td>
<td style="width: 4383px">
<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 267px">
Password :</td>
<td style="width: 4383px">
<asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="148px"></asp:TextBox>
</td>
</tr>
<tr>
<td style="width: 267px">
<asp:Label ID="lblfirstname" runat="server" Text="FirstName:"></asp:Label></td>
<td style="width: 4383px">
<asp:TextBox ID="txtFirstname" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 267px">
<asp:Label ID="lastname" runat="server" Text="LastName:"></asp:Label></td>
<td style="width: 4383px">
<asp:TextBox ID="txtLastName" runat="server"></asp:TextBox></td>
</tr>
<tr>
<td style="width: 267px">
<asp:Label ID="lblEmailId" runat="server" Text="EmailId:"></asp:Label></td>
<td style="width: 4383px">
<asp:TextBox ID="txtEmailId" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2">
&nbsp;<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<table width="15%">
<tr>
<td style="width: 226px">
Country:</td>
<td style="width: 98px">
<asp:DropDownList ID="ddlCountry" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged"
Width="97px">
<asp:ListItem Value="0">India</asp:ListItem>
<asp:ListItem Value="1">Australia</asp:ListItem>
<asp:ListItem Value="2">america</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 226px">
State:</td>
<td style="width: 98px">
<asp:DropDownList ID="ddlstate" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlstate_SelectedIndexChanged"
Width="96px">
<asp:ListItem>Gujarat</asp:ListItem>
<asp:ListItem>Rajasthan</asp:ListItem>
<asp:ListItem>Maharastra</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td style="width: 226px">
<asp:Label ID="lblCity" runat="server" Text="City:"></asp:Label></td>
<td style="width: 98px">
<asp:DropDownList ID="ddlCity" runat="server">
<asp:ListItem>Ahmedabad</asp:ListItem>
<asp:ListItem>Surat</asp:ListItem>
<asp:ListItem>Baroda</asp:ListItem>
</asp:DropDownList></td>
</tr>
</table>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
 
Post Your Reply If you still have problem, post it again under this reply for better response.

 
Sponsored by
The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition - Free 207 Page Preview!
The ASP.NET 2.0 Anthology: 101 Essential Tips, Tricks & Hacks - Free 156 Page Preview
Take Advantage of Oracle's 2 Day DBA Course