Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 22nd, 2007, 05:13 AM
Registered User
 
Join Date: Jun 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Grid Not Displaying Error Message

I am working in OBOUT Grid.I am trying to display an error message while updating the grid but when i click in update link the error message is not diplaying.Please help me to solve this solution.Thank you.This is the script,

protected void grdMain_UpdateCommand(object sender, Obout.Grid.GridRecordEventArgs e)
    {
         if (Convert.ToString(e.Record["Workload_time"]) == "")
        {
            Response.Write("<script language='javascript'>alert('Don't leave this field as blank');</script>");
        }

//Sourcecode

  <obout:Grid ID="grdMain" runat="server" EnableTypeValidation = "true" AutoGenerateColumns="False" OnUpdateCommand="grdMain_UpdateCommand">

<Columns>
<obout:Column DataField="Workload_time" Index="0" >
</Columns>
 </obout:Grid>






Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying message on the form nasirmunir Javascript How-To 3 June 4th, 2008 10:20 PM
Displaying a completed message after the query has sibo32000 Excel VBA 1 February 19th, 2007 11:13 PM
Error in displaying data grid lamort ASP.NET 2.0 Basics 2 December 1st, 2006 08:55 PM
Trouble displaying Data Grid control bam1934 ASP.NET 1.0 and 1.1 Basics 4 May 25th, 2005 07:59 AM
Confirmation message on delete of Data grid item [email protected] VS.NET 2002/2003 1 December 22nd, 2004 02:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.