TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ankit Shukla
NA
681
116.7k
Values are showing null on button click
Jul 19 2019 5:34 AM
Hi,
My Code is:
public
partial
class
RoughPage : System.Web.UI.Page
{
byte
[] imageSize;
public
int
a;
protected
void
Page_Load(object sender, EventArgs e)
{
}
public
void
btnUpload_Click(object sender, EventArgs e)
{
if
(ImgUpload.HasFile)
{
a =
8
;
imageSize =
new
byte
[ImgUpload.PostedFile.ContentLength];
HttpPostedFile uploadedImage = ImgUpload.PostedFile;
uploadedImage.InputStream.Read(imageSize,
0
, (
int
)ImgUpload.PostedFile.ContentLength);
hfPic.Value =
"Y"
;
}
}
public
void
btnUpload1_Click(object sender, EventArgs e)
{
int
b = a;
byte
[] aa = imageSize;
}
}
Plz tell me, why value of 'b' and 'aa' are null on "btnUpload1_Click". how to get value of 'imageSize'
Thanks in advance
Reply
Answers (
2
)
How to use Bootstrap data table in asp.net core MVC.
There is no row at position 0.