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

ASP.NET

 
GeneralRe: iam using update progress control,it is not working in pageload Pin
kathyani21-Jul-08 2:29
kathyani21-Jul-08 2:29 
GeneralRe: iam using update progress control,it is not working in pageload Pin
kathyani21-Jul-08 21:01
kathyani21-Jul-08 21:01 
QuestionPage.RegisterClientScriptBlock Method Pin
dews turner20-Jul-08 23:54
dews turner20-Jul-08 23:54 
AnswerRe: Page.RegisterClientScriptBlock Method Pin
Sam Xavier22-Jul-08 21:27
Sam Xavier22-Jul-08 21:27 
QuestionUsing NUnitAsp mock objects and using DB Pin
Member 451421820-Jul-08 22:58
Member 451421820-Jul-08 22:58 
QuestionCrystal Report taking long time to loading Pin
mdAsfar20-Jul-08 22:57
mdAsfar20-Jul-08 22:57 
AnswerRe: Crystal Report taking long time to loading Pin
eyeseetee20-Jul-08 23:19
eyeseetee20-Jul-08 23:19 
Questionfile upload control in user control Pin
gaurav mangal20-Jul-08 22:55
gaurav mangal20-Jul-08 22:55 
hi every one

i am using fileupload control in usercontrol ant set the property for fileupload control .by this way;
public string pic
{
get
{
return cchildpic.FileName;
}

}


now i am taking usercontrol at page 2 .and user submit the picture by using fileupload control which is in usercontrol .
now
if (Convert.ToInt32(Session["child"]) <= 4)
{

Session["b"] = ctcchild1.nameofthedauson;
Session["c"] = ctcchild1.dateofissue;
Session["h"] = ctcchild1.placeofissue;
Session["d"] = ctcchild1.dateofexpiry;
Session["e"] = ctcchild1.dateofbirth;
Session["f"] = ctcchild1.seat;
Session["g"] = ctcchild1.meal;

str3 = "C:/uploads/" + ctcchild1.pic;

}


and i am using this condition at page 2 .but when i am submitting the file name in database at the same page .
con = new OleDbConnection("provider=microsoft.jet.oledb.4.0;data source=c:/image.mdb;");
string ss1 = "INSERT INTO picture1 VALUES('" + str3 + "')";
com = new OleDbCommand(ss1);
com.Connection = con;
con.Open();
com.ExecuteNonQuery();
con.Close();

one blank submit in a row and in naxt line the the correct path store .why this blank submit in data base .
if any one have idea .what is going on.
i am also confuse about these points :
am i using correct property for filecontrol


thanks .....
gaurav
QuestionDisplay Chinese Character in Textbox Pin
HatakeKaKaShi20-Jul-08 22:34
HatakeKaKaShi20-Jul-08 22:34 
QuestionWindows User Recovery Without Windows Integrated Authentication Pin
Ariel Kazeed20-Jul-08 22:00
Ariel Kazeed20-Jul-08 22:00 
QuestionExport button in crystal report viewer Pin
Raghvendra Kumar Roy20-Jul-08 19:58
Raghvendra Kumar Roy20-Jul-08 19:58 
AnswerRe: Export button in crystal report viewer Pin
eyeseetee20-Jul-08 21:39
eyeseetee20-Jul-08 21:39 
QuestionReverse Proxy Pin
DotNetMan20-Jul-08 15:45
DotNetMan20-Jul-08 15:45 
GeneralForm Keeps Losing a Control Pin
Brady Kelly20-Jul-08 4:24
Brady Kelly20-Jul-08 4:24 
GeneralRe: Form Keeps Losing a Control Pin
Guffa20-Jul-08 14:49
Guffa20-Jul-08 14:49 
GeneralRe: Form Keeps Losing a Control Pin
Brady Kelly20-Jul-08 22:37
Brady Kelly20-Jul-08 22:37 
QuestionSmtp Mail Pin
pinna_hari20-Jul-08 3:00
pinna_hari20-Jul-08 3:00 
AnswerRe: Smtp Mail Pin
N a v a n e e t h20-Jul-08 5:30
N a v a n e e t h20-Jul-08 5:30 
AnswerRe: Smtp Mail Pin
Gayani Devapriya20-Jul-08 18:12
Gayani Devapriya20-Jul-08 18:12 
AnswerRe: Smtp Mail Pin
NetBot20-Jul-08 22:22
NetBot20-Jul-08 22:22 
QuestionAbout Calendar Popup Pin
legend_of_zanado20-Jul-08 1:51
legend_of_zanado20-Jul-08 1:51 
AnswerRe: About Calendar Popup Pin
Venkatesh Mookkan20-Jul-08 17:26
Venkatesh Mookkan20-Jul-08 17:26 
QuestionRe: About Calendar Popup Pin
Abhijit Jana20-Jul-08 17:30
professionalAbhijit Jana20-Jul-08 17:30 
AnswerRe: About Calendar Popup Pin
Gayani Devapriya20-Jul-08 18:03
Gayani Devapriya20-Jul-08 18:03 
GeneralPhantom Class Declaration Pin
Brady Kelly20-Jul-08 0:14
Brady Kelly20-Jul-08 0:14 

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.