Click here to Skip to main content
15,913,836 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: wizard Control! Pin
Brij18-Dec-09 5:58
mentorBrij18-Dec-09 5:58 
GeneralRe: wizard Control! Pin
sashidhar18-Dec-09 17:51
sashidhar18-Dec-09 17:51 
AnswerRe: wizard Control! Pin
sashidhar18-Dec-09 17:54
sashidhar18-Dec-09 17:54 
QuestionA question about web-design tools for ASP.NET Pin
James Shao18-Dec-09 2:52
James Shao18-Dec-09 2:52 
AnswerRe: A question about web-design tools for ASP.NET Pin
Ashfield18-Dec-09 9:03
Ashfield18-Dec-09 9:03 
Questionhow to access c# dll from javascript? Pin
iamdking18-Dec-09 2:49
iamdking18-Dec-09 2:49 
AnswerRe: how to access c# dll from javascript? Pin
Abhijit Jana18-Dec-09 3:35
professionalAbhijit Jana18-Dec-09 3:35 
AnswerRe: how to access c# dll from javascript? Pin
Ennis Ray Lynch, Jr.18-Dec-09 3:56
Ennis Ray Lynch, Jr.18-Dec-09 3:56 
AnswerRe: how to access c# dll from javascript? Pin
Abhishek Sur18-Dec-09 4:19
professionalAbhishek Sur18-Dec-09 4:19 
QuestionSystem.Web.UI.ScriptManager Pin
Subin Mavunkal18-Dec-09 2:11
Subin Mavunkal18-Dec-09 2:11 
AnswerRe: System.Web.UI.ScriptManager Pin
Abhishek Sur18-Dec-09 3:28
professionalAbhishek Sur18-Dec-09 3:28 
Questiondownload doc or open pdf file in brower Pin
Pankaj Saha18-Dec-09 1:54
Pankaj Saha18-Dec-09 1:54 
AnswerRe: download doc or open pdf file in brower Pin
Pankaj Saha21-Dec-09 18:41
Pankaj Saha21-Dec-09 18:41 
QuestionEvent is not firing in custon control. Pin
Imran Khan Pathan18-Dec-09 1:50
Imran Khan Pathan18-Dec-09 1:50 
AnswerRe: Event is not firing in custon control. Pin
Imran Khan Pathan18-Dec-09 2:09
Imran Khan Pathan18-Dec-09 2:09 
QuestionCreate textbox like query editor in sql server Pin
Dot-Net-Dev18-Dec-09 0:32
Dot-Net-Dev18-Dec-09 0:32 
AnswerRe: Create textbox like query editor in sql server Pin
Ashfield18-Dec-09 1:20
Ashfield18-Dec-09 1:20 
GeneralRe: Create textbox like query editor in sql server Pin
Dot-Net-Dev18-Dec-09 19:09
Dot-Net-Dev18-Dec-09 19:09 
GeneralRe: Create textbox like query editor in sql server Pin
Ashfield18-Dec-09 20:28
Ashfield18-Dec-09 20:28 
AnswerRe: Create textbox like query editor in sql server Pin
Imran Khan Pathan18-Dec-09 1:57
Imran Khan Pathan18-Dec-09 1:57 
GeneralRe: Create textbox like query editor in sql server Pin
Dot-Net-Dev18-Dec-09 19:12
Dot-Net-Dev18-Dec-09 19:12 
QuestionUsing Proxy with SmtpClient class Pin
VikasAgarwal8417-Dec-09 23:34
VikasAgarwal8417-Dec-09 23:34 
QuestionImage upload problem... Pin
RajpootRohan17-Dec-09 22:44
professionalRajpootRohan17-Dec-09 22:44 
Hi to all,

I am using a gridview to display products with a link "view details". When the user clicks on the "view details" for a product, all the details are displayed in the detailsview control. I the edit mode , if user don't want to edit the image, then the initial path saved in the label should go. The path is going but image is not displayed. I am unable to find the problem. Here is the code:

<br />
                    <asp:TemplateField HeaderText="Image"><br />
                    <ItemTemplate><br />
                    <asp:Label ID="lblimage" runat="server" Text='<%# Eval("image") %>' /><br />
                    </ItemTemplate><br />
                    <EditItemTemplate><br />
                    <asp:Label ID="labelImage" runat="server" Text='<%# Eval("image") %>' /><br />
                    <asp:FileUpload ID="UpldImage" runat="server" /><br />
                    </EditItemTemplate><br />
                    </asp:TemplateField><br />


//To upload large image
FileUpload UpldImage = (FileUpload)DetailsView1.FindControl("UpldImage");
Label labelImage = (Label)DetailsView1.FindControl("labelImage");
string im = labelImage.Text;
if (UpldImage.HasFile)
{
    string fileName = "~/ProductImages/" + UpldImage.FileName;
    SqlDataSource2.UpdateParameters["image"].DefaultValue = fileName;
    UpldImage.SaveAs(Server.MapPath(fileName));
}
else
{
    SqlDataSource2.UpdateParameters["image"].DefaultValue = im;
    UpldImage.SaveAs(Server.MapPath(im));
}


Please assist me...where I am going wrong.

cheers,
sneha

AnswerRe: Image upload problem... Pin
Abhishek Sur17-Dec-09 23:19
professionalAbhishek Sur17-Dec-09 23:19 
GeneralRe: Image upload problem... Pin
RajpootRohan17-Dec-09 23:29
professionalRajpootRohan17-Dec-09 23:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.