الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

ارجو المساعدة(Browse File & Upload code)

مغلق
بدأه Albattar في 19 أبريل 2005 · 5 رد · 899 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

انا اعمل على مشروع(Conference Menegament System) Website و احتاج فيه الى Upload File على Site عن طريق زر (Borwse),(مثل الموجودة عند اضافة موضوع جديد وارفاق ملف او صوره) واكن لا اعرف كيف اعمل كلاهما.ارجو مساعدتي ,

و جزاكم الله خير :rolleyes:

#2

1.Add a file control(HTML control)

2.right click on it -->runas server control

3.give it a name

4.go to the code

write

Upfile.PostedFile.SaveAs(Server.MapPath("Upload\") & Upfile.PostedFile.FileName)

*Upfile=name of the file control

*Upload=name of a folder to upload to it

Sami is the name .net is the game

SamiKaraeen@hotmail.com

#3

شكرا على الرد

\ولكن اين يمكن ان اجد (html control) لكي اضيفها, اتقصد بها (user control) ام (html page).

اسف

#4

in the Vs.net click the html controls from the toolbox window there u will find it

Sami is the name .net is the game

SamiKaraeen@hotmail.com

#5

السلام عليكم

انا عارف غلبتك معي, بس لما كتبت الCode اعطاني الخطأ التالي:

"Exception Details: System.NullReferenceException: Object reference not set to an instance of an object"

Line 37: Upfile.PostedFile.SaveAs(Server.MapPath("Upload") & Upfile.PostedFile.FileName

ما العمل جزاك الله خير

هذا الموضوع مغلق.

مواضيع مشابهة