This is a discussion on C# .Net Tips & Tricks within the C# Programming forums, part of the Software Development category; hi sundram, Try to this code: Code: string Name_Image = UPLOAD_STORE_IMAGE.PostedFile.FileName; string Advertisers_RegId = Session["REG_ID"].ToString(); string ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| hi sundram, Try to this code: Code: string Name_Image = UPLOAD_STORE_IMAGE.PostedFile.FileName;
string Advertisers_RegId = Session["REG_ID"].ToString();
string strFileName = "";
strFileName = Path.GetFileName(Name_Image);
string savePath = Server.MapPath(@"UploadImage\");
strFileName = "Reg" + "_" + Advertisers_RegId + "-" + strFileName;
savePath += strFileName;
UPLOAD_STORE_IMAGE.PostedFile.SaveAs(savePath);
string Iname = "~/Registration/UploadImage/" + strFileName.ToString();
comm.Parameters.Add(new SqlParameter("@IMAGE", SqlDbType.VarChar, 300)).Value = Iname;
comm.Parameters.Add(new SqlParameter("@HTML_LINK", SqlDbType.VarChar, 50)).Value = TXT_STORE_HTMLLINK.Value;
__________________ M.Ramesh Kumar |
| Sponsored Links |
| |||
| // Create an arraylist with initial capacity of 2 elements System.Collections.ArrayList al = new ArrayList(2); // Now, fix the size. al = System.Collections.ArrayList.FixedSize(al); //Add two elements to the arraylist al.Add("ramesh"); al.Add("deeban"); // When you try to add another item, an exception is thrown. al.Add("sundaram");
__________________ Regards, Sundaram |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/c-programming/3129-c-net-tips-tricks.html | |||
| Posted By | For | Type | Date |
| DiscussWeb IT Community - Technical Support and Technology Discussions | This thread | Refback | 08-18-2007 04:01 AM |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SAP Tips & Tricks | leoraja8 | Operating Systems | 0 | 03-29-2008 01:11 AM |
| BlueTooth tips and tricks | devarajan.v | Mobile Software Development | 52 | 03-13-2008 10:46 PM |
| PHP Tips and Tricks | Sabari | PHP Programming | 20 | 12-18-2007 06:26 AM |
| .NET tricks & Tips | Karpagarajan | VB.NET Programming | 1 | 04-23-2007 09:17 AM |
| SEO Tips & Tricks | spid4r | Search Engine Optimization | 0 | 03-09-2007 12:03 AM |