473,325 Members | 2,671 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,325 software developers and data experts.

VS2005 - Run Code only in Read Only mode.

Using VS2005 / SQL 2000 / VB.NET 2 / ASPX
---------------------

I have a code that I want to run ONLY when the ReadOnly mode of Formview is
loaded. How do I do this. Since ReadOnly is the default load for Formview,
I can add the code to Page Load. In the Read Only mode,
I have a Label that displays something but it's only in the Read Only mode.
If I Edit something and then hit Update, I get an error saying object can
not be found. I tried adding the code to check to see if it's NOT postback
and the default mode is ReadOnly and that works but I get the same error
message when I go from Edit mode to Read mode. This has been bugging me for
awhile now and I decided it's time for me to find an answer to this.
Thanks!
Apr 6 '07 #1
0 918

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

Similar topics

2
by: David Hearn | last post by:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. Description: An unhandled exception occurred during the execution of the current...
6
by: Chris Botha | last post by:
I am porting an existing 2003 project to 2005. Yesterday I found that some of my Java script did not want to work. After eventually examining the HTML view of the new and old form for differences,...
2
by: Bob | last post by:
I have noticed that as one adds related tables to a bindingsource and dataset(vs2005 Vb.Net Sql Server 2005), the TODO and following code that fills the datasets on form load are written to the...
16
by: Edward Diener | last post by:
After spending more than a day reducing a complicated compiler bug to a simple case I reported it to the MSDN Product Feedback Center as a bug just now. However this bug is completely stymying my...
0
by: Chris Davoli | last post by:
Environment - Win XP Pro, VS2005, ASP.Net. I'm able to put Panels on a web page and they work just fine, but the problem comes in on when I want to look at the web page in DESIGN mode in VS2005....
0
by: Chris Davoli | last post by:
I'm using Visual Studio 2005 to build my web pages. This works fine except for using the VS2005 design mode and inserting panels to not display some rows (before and after TR tags), it won't show...
4
by: Jules Winfield | last post by:
I'm using VS2005. I have a solution consisting of twelve projects. All projects are console/service apps except for one which is a WinForms app. There are no web projects. I'd say that I'm at...
13
by: John J. Hughes II | last post by:
All, General question. I am working on upgrading my system from a 3.2GHz P4 to something better. 1) Well switching to Windows XP Pro 64 bit cause me massive problem with VS? 2) Is the...
11
by: active | last post by:
If I install .NET Framework 3.0 what will happen to my VS2005 experience? Will it automatically use 3.0? Will I find new features available? Will the VS doc be updated? Thanks fir any...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.