Click here to Skip to main content
15,899,754 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Stop debuggin and run time messages in asp.net Pin
Parwej Ahamad15-May-09 6:10
professionalParwej Ahamad15-May-09 6:10 
GeneralRe: Stop debuggin and run time messages in asp.net Pin
rains197918-May-09 3:38
rains197918-May-09 3:38 
AnswerRe: Stop debuggin and run time messages in asp.net Pin
Manas Bhardwaj16-May-09 6:13
professionalManas Bhardwaj16-May-09 6:13 
GeneralRe: Stop debuggin and run time messages in asp.net Pin
rains197918-May-09 22:57
rains197918-May-09 22:57 
GeneralRe: Stop debuggin and run time messages in asp.net Pin
Manas Bhardwaj18-May-09 23:03
professionalManas Bhardwaj18-May-09 23:03 
GeneralRe: Stop debuggin and run time messages in asp.net Pin
rains197919-May-09 0:23
rains197919-May-09 0:23 
GeneralRe: Stop debuggin and run time messages in asp.net Pin
rains197919-May-09 0:10
rains197919-May-09 0:10 
QuestionPage.IsValid conditional not working Pin
bigmish215-May-09 4:05
bigmish215-May-09 4:05 
Newbie question here: I’ve got a page with a text box with a requered field validator and a label that should say “OK” if there is text in the field (using Page.IsValid) or “Bad” if not. However, it doesn’t say “Bad” when there is no text. Below is the page code and the source code. Can anyone help me under stand why this is happening? Thanks!

PAGE CODE:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="pageIsValidTest.aspx.vb" Inherits="pageIsValidTest" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
      <title>Untitled Page</title>
</head>
<body>
      <form id="form1" runat="server">
      <div>
            &nbsp;Textbox:
            <asp:TextBox ID="TextBox" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox"
                  ErrorMessage="enter text"></asp:RequiredFieldValidator><br />
            <asp:Button ID="Button1" runat="server" Text="Button" /><br />
            Label:
            <asp:Label ID="Label" runat="server"></asp:Label></div>
      </form>
</body>
</html>

SOURCE CODE
Partial Class pageIsValidTest
      Inherits System.Web.UI.Page

      Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
            If Page.IsValid Then
                  Label.Text = "OK"
            Else
                  Label.Text = "Bad"
            End If
      End Sub
End Class
AnswerRe: Page.IsValid conditional not working Pin
RyanMorris15-May-09 4:54
RyanMorris15-May-09 4:54 
GeneralRe: Page.IsValid conditional not working Pin
bigmish215-May-09 5:05
bigmish215-May-09 5:05 
GeneralRe: Page.IsValid conditional not working Pin
RyanMorris15-May-09 5:18
RyanMorris15-May-09 5:18 
GeneralRe: Page.IsValid conditional not working Pin
bigmish215-May-09 5:43
bigmish215-May-09 5:43 
AnswerRe: Page.IsValid conditional not working Pin
Samer Aburabie15-May-09 4:59
Samer Aburabie15-May-09 4:59 
NewsSending SMS in ASP.Net 2.0 using webservice Pin
Smart_Boy15-May-09 2:42
Smart_Boy15-May-09 2:42 
QuestionWeb setup project fails in Windows vista and IIS7 Pin
Muhammad Sohaib Yousaf15-May-09 2:14
Muhammad Sohaib Yousaf15-May-09 2:14 
AnswerRe: Web setup project fails in Windows vista and IIS7 Pin
N a v a n e e t h15-May-09 2:20
N a v a n e e t h15-May-09 2:20 
AnswerRe: Web setup project fails in Windows vista and IIS7 Pin
Glider1234518-Jun-09 3:24
Glider1234518-Jun-09 3:24 
QuestionAJAX: How to make relation between a linkbutton in a Accordion Menu and a GridView Pin
beginner_csharper15-May-09 1:24
beginner_csharper15-May-09 1:24 
AnswerRe: AJAX: How to make relation between a linkbutton in a Accordion Menu and a GridView Pin
Smart_Boy15-May-09 2:44
Smart_Boy15-May-09 2:44 
GeneralRe: AJAX: How to make relation between a linkbutton in a Accordion Menu and a GridView Pin
beginner_csharper15-May-09 5:17
beginner_csharper15-May-09 5:17 
AnswerRe: AJAX: How to make relation between a linkbutton in a Accordion Menu and a GridView Pin
Smart_Boy15-May-09 9:00
Smart_Boy15-May-09 9:00 
GeneralRe: AJAX: How to make relation between a linkbutton in a Accordion Menu and a GridView Pin
beginner_csharper15-May-09 22:03
beginner_csharper15-May-09 22:03 
GeneralRe: AJAX: How to make relation between a linkbutton in a Accordion Menu and a GridView Pin
Smart_Boy16-May-09 20:17
Smart_Boy16-May-09 20:17 
GeneralRe: AJAX: How to make relation between a linkbutton in a Accordion Menu and a GridView Pin
beginner_csharper16-May-09 23:12
beginner_csharper16-May-09 23:12 
GeneralRe: AJAX: How to make relation between a linkbutton in a Accordion Menu and a GridView Pin
Smart_Boy17-May-09 3:36
Smart_Boy17-May-09 3:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.