hello sir
In my application i want to upload a image/file in rowdatabound in gridview event
this is possibe in asp.net
because i face some problem to asp.cs page not getting the file name
like as
protected void gvCarrierCorner_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
Button bts = e.CommandSource as Button;
if (e.CommandName == "UpdateLinks")
{
// string Carrierid = gvCarrierCorner.DataKeys.[e.c].Value.ToString();
int CarrierCategoryId = Convert.ToInt32(e.CommandArgument.ToString());
GridViewRow row = gvCarrierCorner.Rows[CarrierCategoryId];
try
{
TextBox txtLinkName = ((TextBox)row.FindControl("txtLinkName"));
string name = txtLinkName.Text.ToString().Replace(",", "");
FileUpload flpdfurl = (FileUpload)row.FindControl("flpdfUrl");
string file = flpdfurl.ToString();
TextBox txtexlink = (TextBox)row.FindControl("txtexlink");
TextBox txtMessage = (TextBox)row.FindControl("txtMessage");
DropDownList drplinktype = (DropDownList)row.FindControl("drpLinkType");
string value = drplinktype.SelectedValue.ToString();
if (name != string.Empty)
{
if (flpdfurl.HasFile)
{