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
ahmed saleh
NA
9
6.3k
page updating problem
Dec 12 2013 8:31 AM
hi , how are you guys ?I hope you all fine ...
here
I went from desktop application to web application , and now I have big problem with page updates after every control events
here am going to explain the problem here with images
I have (Html) table and (asp) button
The photo
when I press the button the ADD GROUP place appear , then I added group name
and here is the source code off the adding button
grpname = TextBox11.Text;
body.Style["background-color"] = "white";
label11.Visible = false;
TextBox11.Visible = false;
Button33.Visible = false;
Label[] label = new Label[1000];
label[limit] = new Label();
label[limit].Text = grpname;
label[limit].BackColor = Color.Silver;
label[limit].ForeColor = Color.Green;
label[limit].BorderStyle = BorderStyle.Ridge;
label[limit].Style["border-width"] = "1px";
label[limit].Style["border-color"] = "blue";
label[limit].Style["font-style"] = "italic";
label[limit].Style["text-align"] = "center";
label[limit].Style["width"] = "200px";
label[limit].Style["margin-top"] = margintop + "px";
label[limit].Style["margin-left"] = marginleft1 + "px";
label[limit2] = new Label();
label[limit2].BackColor = Color.DarkGoldenrod;
label[limit2].ForeColor = Color.Green;
label[limit2].BorderStyle = BorderStyle.Ridge;
label[limit2].Style["border-width"] = "1px";
label[limit2].Style["border-color"] = "blue";
label[limit2].Style["font-style"] = "italic";
label[limit2].Style["text-align"] = "center";
label[limit2].Style["width"] = "200px";
label[limit2].Style["margin-top"] = margintop + "px";
label[limit2].Style["margin-left"] = marginleft2 + "px";
label[limit2].Text = "ssss";
Controls.Add(label[limit]);
Controls.Add(label[limit2]);
TextBox11.Text = "";
margintop += 2;
limit++;
limit2 += 2;
and here is the result
Every thing is good until now ... but when I try to do anything else clicking button or do any events ... in asp controls ..
the code is running again , and the labels has gone in the PREVIEWS PAGE .. I really don't know how to fix that ... in desktop application that should work very well!..
I hope you guys can help me
thank you
Reply
Answers (
2
)
Microsoft.ACE.OLEDB.4.0 provider is not registered
How to Get Grid Color in C#