Null Exception Error on Fileupload

Posted by Shijohnjoseph under Regular Expressions on 2/7/2011 | Points: 10 | Views : 1988 | Status : [Member] | Replies : 6
Hi ,
i am new to asp.net web developing i have a forum with a fileupload control when i am clicking my submit button it gets null exception i tried a lot to find the error but i can't anyone can help me./.....

"Personality has the power to open many doors, but character must keep them open"


Responses

Posted by: Krkc on: 2/7/2011 [Member] Starter | Points: 25

Up
0
Down
Make sure your fileUpload control is NOT placed inside UpdatePanel

Thanks,
Ravi

Shijohnjoseph, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naimishforu on: 2/7/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Can you please provide some more code have look into?? Sample code??

Thanks,
Naimish
http://dotnetinterview.zxq.net/
http://naimishpandya.blogspot.in/

Shijohnjoseph, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vuyiswamb on: 2/7/2011 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
let us see your code

Thank you for posting at Dotnetfunda
[Administrator]

Shijohnjoseph, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/7/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Null exception in file control is mostly the File upload control value would be null... Check a validation for that... To see in depth pls post your code

Thanks
Karthik
www.f5Debug.net

Shijohnjoseph, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Shijohnjoseph on: 2/8/2011 [Member] Starter | Points: 25

Up
0
Down
Thank You Mr.Ravi Kalyan ....
your Suggestion is right..
Thank you very Much

"Personality has the power to open many doors, but character must keep them open"

Shijohnjoseph, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikanbarasan on: 2/8/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi Shijohnjoseph...

Can you please let us know the solution which you fixed for this issue...

Thanks
Karthik
www.f5Debug.net

Shijohnjoseph, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response