473,386 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Disappearing Controls

Has anyone had this issue...

I working on a simple ASP .NET app - three web forms. I'm working on page
three and when I swith back to page 1 in VS, half of my controls are
missing. I add them back in, but it takes a while before the new controls
are recognized by VS (Compiler kept telling me that the stuff wasn't
declared when, clearly, it was.) Most of it's back to normal, but the
button control still doesn't trigger the code in the code-behind page. When
I double click the button I get sent to the correct sub, so VS knows it's
there and which button it's tied to, but the code doesn't run when I'm
hitting the app from a browser...

Help!?

Jerry
Nov 18 '05 #1
2 1058
Hi

I fi have understood u'r problem correctly, then try thes

1) When you are switching between the pages in the VS , make sure that each page is loaded completely and then switch to the other page. Othewise, all the code is gone

2) Coming to the button event, Check for "handles button.serverclick" event at the declaration in the funtion .Cause if you miss this the vent will not work

for ex: It shld be like this

Private Sub botton_ServerClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles button.ServerClic
End Su

Hope this helps!!!!!!!!!!!
Nov 18 '05 #2
Everything was setup properly - the original code was inserted by VS. And
this was a page that had been open in VS for at least an hour that I was
working with.

I ended up restarting the IIS box where the applives and that seems to have
fixed it. It was strange, though. I appreciate the feedback.

Jerry

"Sileesh" <an*******@discussions.microsoft.com> wrote in message
news:C8**********************************@microsof t.com...
Hi

I fi have understood u'r problem correctly, then try these

1) When you are switching between the pages in the VS , make sure that each page is loaded completely and then switch to the other page. Othewise,
all the code is gone.
2) Coming to the button event, Check for "handles button.serverclick" event at the declaration in the funtion .Cause if you miss this the vent
will not work.
for ex: It shld be like this
Private Sub botton_ServerClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles button.ServerClick End Sub

Hope this helps!!!!!!!!!!!

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: neptune | last post by:
I built a form to access a query with a 2 field primary key. It should use 2 controls to find the unique record and display the other field values on the form. In the criteria section of the...
4
by: Steve | last post by:
Hi All, I've seen many postings regarding different situations where controls disappear but have never seen a decent solution. Here is the problem. I have a form onto which I am placing some...
2
by: Rachel Suddeth | last post by:
Here is my scenario: I have a few custom controls that I set up on a form and tested setting properties and appearances. Then I added a couple references to the project which add classes I need to...
4
by: Frank Rizzo | last post by:
Hello, I have a form that contains the Browser control (via interop, of course) among other things. The browser control is in a Panel control. When I add other controls (such as splitter and some...
2
by: Grant Merwitz | last post by:
I am using usercontrols to control the contant in my website. Currently, depending on a parameter passed in the querystring, the appropriate usercontrol will be loaded. i.e. private void...
7
by: Mike Bulava | last post by:
I have created a base form that I plan to use throughout my application let call the form form1. I have Built the project then add another form that inherits from form1, I add a few panel controls...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
6
by: George Yefchak | last post by:
Hi folks, What's the latest news on the "disappearing controls" issue? I've seen a few posts over the last several months indicating that other people have the same problem, but I've seen...
4
by: c676228 | last post by:
Hi all, the data disappearing problem occurs to all my controls even my regualr web control like asp:textbox, when I click back button in web browser from second page to first page and then click...
1
by: JDeats | last post by:
I have many labels that are disappearing from my form when the user resizes it, they seem to dissapear when certain width/height thresholds are exceeded. I have no code in place purposely trying...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.