Click here to Skip to main content
16,013,642 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Life cycle of ASP.Net page Pin
Nouman Bhatti21-Aug-07 23:31
Nouman Bhatti21-Aug-07 23:31 
Questionautomatic installation of mysql db in the local machine Pin
praveenkumar_mca21-Aug-07 20:21
praveenkumar_mca21-Aug-07 20:21 
AnswerRe: automatic installation of mysql db in the local machine Pin
N a v a n e e t h21-Aug-07 21:05
N a v a n e e t h21-Aug-07 21:05 
QuestionCannot Upload from code Pin
abdelhameed8121-Aug-07 20:19
abdelhameed8121-Aug-07 20:19 
AnswerRe: Cannot Upload from code Pin
Goalie3522-Aug-07 3:23
Goalie3522-Aug-07 3:23 
QuestionGridView validation by Javascript Pin
Milind Panchal21-Aug-07 20:12
Milind Panchal21-Aug-07 20:12 
AnswerRe: GridView validation by Javascript Pin
Michael Sync21-Aug-07 21:16
Michael Sync21-Aug-07 21:16 
GeneralRe: GridView validation by Javascript Pin
Michael Sync21-Aug-07 21:17
Michael Sync21-Aug-07 21:17 
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!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>
<meta http-equiv="cache-control" content="no-cache">
</head>
<body>
<script language="javascript" type="text/javascript">
function isValidPhoneNumber(sender, args){
if(args.Value == "something")
args.IsValid = true;
else
args.IsValid = false;
}
</script>

<form id="form1" runat="server">
<div>
<asp:GridView ID="GridView1" runat="server" Width="249px">
<Columns>
<asp:TemplateField HeaderText="1">
<ItemTemplate>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:CustomValidator ID="CustomValidator1" runat="server" ClientValidationFunction="isValidPhoneNumber"
ControlToValidate="TextBox1" ErrorMessage="CustomValidator"></asp:CustomValidator>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="2">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText="3"></asp:TemplateField>
</Columns>
</asp:GridView>
&nbsp;&nbsp;
<asp:ValidationSummary ID="ValidationSummary1" runat="server" />
&nbsp;&nbsp;
<asp:Button ID="Button1" runat="server" Text="Button" /></div>
</form>
</body>
</html>


Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)

If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. Smile | :)
QuestionTabContainer in AjaxControlToolkit Pin
Milind Panchal21-Aug-07 20:08
Milind Panchal21-Aug-07 20:08 
AnswerRe: TabContainer in AjaxControlToolkit Pin
Illegal Operation21-Aug-07 20:38
Illegal Operation21-Aug-07 20:38 
Questionpdf file Pin
yesu prakash21-Aug-07 20:04
yesu prakash21-Aug-07 20:04 
AnswerRe: pdf file Pin
Christian Graus21-Aug-07 20:08
protectorChristian Graus21-Aug-07 20:08 
GeneralRe: pdf file Pin
yesu prakash21-Aug-07 20:11
yesu prakash21-Aug-07 20:11 
GeneralRe: pdf file Pin
N a v a n e e t h21-Aug-07 20:17
N a v a n e e t h21-Aug-07 20:17 
GeneralRe: pdf file Pin
Christian Graus21-Aug-07 20:22
protectorChristian Graus21-Aug-07 20:22 
AnswerRe: pdf file Pin
Vasudevan Deepak Kumar21-Aug-07 21:06
Vasudevan Deepak Kumar21-Aug-07 21:06 
QuestionCalling a method outside of Page_Load is not working [modified] Pin
shivamray21-Aug-07 19:59
shivamray21-Aug-07 19:59 
AnswerRe: Calling a method outside of Page_Load is not working Pin
Christian Graus21-Aug-07 20:06
protectorChristian Graus21-Aug-07 20:06 
GeneralRe: Calling a method outside of Page_Load is not working Pin
shivamray21-Aug-07 20:12
shivamray21-Aug-07 20:12 
GeneralRe: Calling a method outside of Page_Load is not working Pin
N a v a n e e t h21-Aug-07 20:19
N a v a n e e t h21-Aug-07 20:19 
GeneralRe: Calling a method outside of Page_Load is not working Pin
shivamray22-Aug-07 22:30
shivamray22-Aug-07 22:30 
GeneralRe: Calling a method outside of Page_Load is not working Pin
Christian Graus21-Aug-07 20:20
protectorChristian Graus21-Aug-07 20:20 
QuestionCompilation in VWD 2008 Pin
sacheesach21-Aug-07 19:48
sacheesach21-Aug-07 19:48 
AnswerRe: Compilation in VWD 2008 Pin
Illegal Operation21-Aug-07 20:40
Illegal Operation21-Aug-07 20:40 
GeneralRe: Compilation in VWD 2008 Pin
sacheesach21-Aug-07 20:45
sacheesach21-Aug-07 20:45 

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.