TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Krishna
NA
37
9.3k
how to compare if a text box has two strings
Mar 17 2015 2:57 AM
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Comparitive .aspx.cs" Inherits="Comparitive_" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div>
<a href ="http://localhost:49369/login.aspx">Login</a>
<a href ="http://localhost:49369/Home.aspx">Home</a>
<br />
<asp:Image ID="Image1" runat="server" Height="195px" Width="924px" ImageUrl="~/Images/aa2.png" />
<br />
<h3> User Entity (or)User Query </h3>
<table style="width: 70%; height: 269px;">
<tr>
<td>
<asp:Image ID="Image2" runat="server" Height="110px" ImageUrl="~/Images/decesion.png" Width="186px" />
</td>
<td>
<asp:Label ID="Label1" runat="server" Text="#start"></asp:Label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:Label ID="Label3" runat="server" Text="#end"></asp:Label>
<asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="Enter some text">*</asp:CustomValidator>
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="Keyword"></asp:Label>
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
<asp:CustomValidator ID="CustomValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="Enter some text">*</asp:CustomValidator>
<br />
<br />
<br />
<asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" Width="100px" />
<br />
<br />
</td>
</tr>
</table>
<br />
</div>
</form>
</body>
</html>
in text box 2 i am entering the (hyderabad & banglore ) i should compare the text box values with the values present in the database and retrieve the result
thanks in advance
Reply
Answers (
1
)
Building a PFD reader.
Stop Watch inside a grid view