Solved

Communication Between .vb File and .aspx File

Posted on 2008-10-09
6
192 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
  • 4
  • 2
6 Comments
 
LVL 18

Accepted Solution

by:
David Robitaille earned 250 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now