?
Solved

Communication Between .vb File and .aspx File

Posted on 2008-10-09
6
Medium Priority
?
201 Views
Last Modified: 2013-11-05
I have a GridView on an .aspx form and the content is controlled by an ObjectDataSource. The actual table update takes place in a .vb file. My question is now: how can I communicate a situation in the .vb file (e.g. no records found, missing update etc.) to the user of the .aspx file? In case of an error found in the .vb file, I want to put a message to the user in e.g. a label on the .aspx file.
0
Comment
Question by:Kim Neesgaard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 18

Accepted Solution

by:
David Robitaille earned 1000 total points
ID: 22678613
Usualy i raise Application exception (using Throw New ApplicationException("text")) and than catch it in the RowUpdated of the grid view
 here all my inspirations:
http://www.asp.net/learn/data-access/tutorial-18-vb.aspx
0
 

Author Comment

by:Kim Neesgaard
ID: 22685598
Hi!

This is EXACTLY what I was looking for - THANK YOU! I have tested it and it works perfectly!
0
 

Author Comment

by:Kim Neesgaard
ID: 22685608
Nothing more to add.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 18

Expert Comment

by:David Robitaille
ID: 22686220
Well, I could just wait that the question to be close, but I think you should select my comment as the solution instead of your comment and mine as the assisted solution.
0
 

Author Comment

by:Kim Neesgaard
ID: 22686266
I am new to EE and sorry if I have done something wrong! Of course your solution must be selected - it help me a lot. I will try to make it correct.
0
 

Author Closing Comment

by:Kim Neesgaard
ID: 31504562
Now I hope things is done the right way! Thanks one more time.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question