Click here to Skip to main content
15,890,282 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionValidation Issue Pin
Dayekh2-May-10 3:01
Dayekh2-May-10 3:01 
AnswerRe: Validation Issue Pin
Dayekh2-May-10 3:48
Dayekh2-May-10 3:48 
AnswerRe: Validation Issue Pin
Luc Pattyn2-May-10 4:02
sitebuilderLuc Pattyn2-May-10 4:02 
GeneralRe: Validation Issue Pin
Dayekh4-May-10 0:03
Dayekh4-May-10 0:03 
GeneralRe: Validation Issue Pin
Luc Pattyn4-May-10 2:16
sitebuilderLuc Pattyn4-May-10 2:16 
Questionhow to create the template like this Pin
developerit1-May-10 23:53
developerit1-May-10 23:53 
AnswerRe: how to create the template like this Pin
wangbo02392-May-10 1:06
wangbo02392-May-10 1:06 
QuestionSwappping the images but after closing application same images Pin
developerit1-May-10 22:25
developerit1-May-10 22:25 
hi iam using asp.net with c#

i have two images imgnew and imagold when i click on browse button i will upload the image and put in imgnew image and the previous image will be in imgold image control it is going fine but when iam closing the application .then again old images are there swap images are not present

can you correct my code where iam going wrong .which helps me
protected void Button1_Click(object sender, EventArgs e)
{ImgOld.Src=ImgNew.Src;
if (FileUpload1.HasFile)
{
FileUpload1.SaveAs(MapPath("~/images/" + FileUpload1.FileName));
ImgNew.Src= "~/images/" + FileUpload1.FileName;
}
}
 
 
 
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="transfer.aspx.cs" Inherits="transfer" %>
<!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>
</head>
<body>
<form id="form1" runat="server">
<div>
<img id="ImgNew" alt="ImgNew" src="PH02071U.BMP" style="z-index: 102; left: 144px;
width: 144px; position: absolute; top: 104px; height: 200px" runat="server" />
<img id="ImgOld" alt="ImgOld" src="" style="z-index: 103; left: 376px; width: 144px;
position: absolute; top: 112px; height: 184px" runat="server" />
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="z-index: 100;
left: 280px; position: absolute; top: 424px" Text="Save" />
<asp:FileUpload ID="FileUpload1" runat="server" Style="z-index: 104; left: 152px;
position: absolute; top: 328px" Width="160px" />
</div>
</form>
</body>
</html


i want what ever i have changed that shoul be present after closing appplication also
Questionproblem creating asp.net project in visual studio 2003 with xp pro Pin
bapu28891-May-10 14:15
bapu28891-May-10 14:15 
AnswerRe: problem creating asp.net project in visual studio 2003 with xp pro Pin
Michel Godfroid1-May-10 22:32
Michel Godfroid1-May-10 22:32 
GeneralRe: problem creating asp.net project in visual studio 2003 with xp pro Pin
bapu28892-May-10 2:30
bapu28892-May-10 2:30 
GeneralRe: problem creating asp.net project in visual studio 2003 with xp pro Pin
Michel Godfroid2-May-10 2:47
Michel Godfroid2-May-10 2:47 
GeneralRe: problem creating asp.net project in visual studio 2003 with xp pro Pin
bapu28892-May-10 3:06
bapu28892-May-10 3:06 
Questionuser group from active directory Pin
test-091-May-10 7:09
test-091-May-10 7:09 
AnswerRe: user group from active directory Pin
Abhijit Jana1-May-10 8:28
professionalAbhijit Jana1-May-10 8:28 
AnswerRe: user group from active directory Pin
Michel Godfroid1-May-10 22:18
Michel Godfroid1-May-10 22:18 
QuestionHow to access dynamically created Gridview HeaderRow Pin
KittyKit1-May-10 3:54
KittyKit1-May-10 3:54 
Questionsearch query Pin
diyaa_0830-Apr-10 23:50
diyaa_0830-Apr-10 23:50 
AnswerRe: search query Pin
Brij1-May-10 5:54
mentorBrij1-May-10 5:54 
Questionretreving images from database problem Pin
developerit30-Apr-10 22:51
developerit30-Apr-10 22:51 
AnswerRe: retreving images from database problem Pin
Abhishek Sur30-Apr-10 23:52
professionalAbhishek Sur30-Apr-10 23:52 
AnswerRe: retreving images from database problem Pin
Abhijit Jana30-Apr-10 23:53
professionalAbhijit Jana30-Apr-10 23:53 
QuestionGRID VIEW Row command Pin
Amit Patel198530-Apr-10 21:24
Amit Patel198530-Apr-10 21:24 
AnswerRe: GRID VIEW Row command Pin
Peace ON30-Apr-10 22:44
Peace ON30-Apr-10 22:44 
QuestionIntegrating Paypal Pin
Gjm30-Apr-10 15:29
Gjm30-Apr-10 15: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.