View Single Post
  #12 (permalink)  
Old February 19th, 2008, 11:40 AM
hdpark hdpark is offline
Authorized User
Join Date: Oct 2007
Location: , , .
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts

Hi Imar,
I needed \(back slash) after UserFiles like this.
FileUpload1.SaveAs(Server.MapPath("UserFiles\") & FileUpload1.FileName)

Thanks for your kind help.

I have another question about DropDownList.
I used it from your codes in Chapter 6 as this: lstBlogEntry.SelectedIndex = -1
When I enter this routine, "-1" brings 1st selection from data. I want to bring specific value (it is in Public pubVars.pubBlogID) and set this value to this DropDownList. I tried it like these two:
1. lstBlogEntry.SelectedIndex = Convert.ToInt32(pubVars.pubBlogID)
2. lstBlogEntry.SelectedValue = Convert.ToInt32(pubVars.pubBlogID)

But I do not have right result. Can you please advise me about this?
I really appreciate your kind help always.