[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Asp.net and the Msgbox minizing on taskbar -

Posted on 2011-10-14
Medium Priority
Last Modified: 2012-05-12
Hi folks!
  I am using MS Visual Studio 2010 Express and have created an inout page, test.aspx page and naturally it created a test.aspx.vb page for the coding. In the test.aspx.vb page, I have a valdiation routine that occurs when they submit the form. I do not want to use the RequiredValidtors control so thus, my own validation rtn. The PROBLEM is when I test the page, the msgbox will often minimize itself to the task bar and if this is happening while testing, it is going to happen when live. How do I prevent it from doing so and staying on "top" for the user?
I am open to any suggestions....
Question by:Overthere
LVL 16

Expert Comment

ID: 36970768
so you are running javascript to show up the messagebox from server side?

Author Comment

ID: 36970857
No, I couldn't get the values from my textboxes using javscript - I think I am not constructing it right in javascript - for example in my old page under older software I could do this in javascript:

if (document.Form1.txtFName.value == "")
           missinginfo += "\n First Name missing";

And use an alert box but in this software, that won't fly....:(

So I am using vbscript on the test.vb.aspx page but will want to move it to the test.aspx page checking it under isPostback
The end goal is to validate the fields naturally and then if okat, create an email message to rescue group. It's an input form for adopting a dog and I am really under the gun..
Open to any suggestions...

Accepted Solution

gopaltayde earned 2000 total points
ID: 36973087
I am not sure if I understood the question correctly. I guess you wanted to display a javascript alert kind of message. I would suggest ajax model popup extender. It is accessible from code behind as well as from client side. So just perform your validation and display the validation messages in a div wrapped in model popup extender. It has various properties to set the location, background color, position and size.
check http://www.asp.net/ajaxlibrary/AjaxControlToolkitSampleSite/modalpopup/modalpopup.aspx for more info

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
Suggested Courses
Course of the Month19 days, 14 hours left to enroll

873 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