15,893,668 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by KManishS (Top 24 by date)
KManishS
10-Sep-19 1:46am
View
what to do now to achieve this?
KManishS
19-Jan-17 22:21pm
View
the target is to display data into gridview.. all other lines will be only for testing purpose(ignored later).
how to display data from datagridview?
KManishS
4-Jan-17 1:51am
View
its already defined with nvarchar(max)
KManishS
12-Dec-16 0:55am
View
(NextQuestion[0] as Button).BackColor = Color.Red; // Change this line according to your need.
error in the above line, index was outside the bounds of array
KManishS
11-Dec-16 23:46pm
View
https://photos.google.com/share/AF1QipOQ-xh3hBypJ4XZf-rmJIcoCCbiKXoawQQTuIVn2_kNQU5x0RNsh1yjMWomCjKXug?key=ZFFwcFZYVURMQks1MEhJV3pQWnp0UXFHc1NYOENR
KManishS
11-Dec-16 23:38pm
View
Deleted
i don't know how to attach... :(
KManishS
3-Mar-15 23:24pm
View
that's I already know, my question is would I re-design it for mobile application???
KManishS
22-Oct-14 0:12am
View
Did you mean it occur some exception? but, why .exe running successfully?
how to use an UnhandledExceptionEventhandler and what is the benefit???
KManishS
24-Dec-13 6:21am
View
i need like this with image, help me
KManishS
24-Dec-13 6:20am
View
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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>
<script language ="javascript" type = "text/javascript">
function checkusername(txt)
{
//alert("Hello World!");
var valusername=txt;
if(valusername!="")
{
PageMethods.checkUserName(valusername,OnSucceeded, OnFailed);
//alert("Hello World!");
}
}
function OnSucceeded(result,userContext, methodName)
{
//alert("Succeed");
var userarray=result;
document.getElementById('lblerror').innerHTML=userarray;
}
function OnFailed(error, userContext, methodName)
{
//alert("Failed");
alert("An Error Occured During Check Your UserName. Please Try After Some Time!!!");
}
</script>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"
EnablePageMethods="true">
<table width = "40%" border = "0" cellpadding = "0" cellspacing = "0">
<tr>
<td style =" width:30%">
<asp:TextBox ID="txtUName" onkeyup="checkusername(this.value);" runat="server" >
</td>
<td>
<asp:Label ID="lblerror" runat="server" Font-Bold="False" ForeColor="Red" Text="" >
</td>
</tr>
</table>
</form>
</body>
</html>
___________________________________________________________
using System;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Web.Services;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
[WebMethod]
public static string checkUserName(string struname)
{
try
{
string strSQL = "Select UserFrstName From Tbl_UserRegistration where LoginID Like('" + struname + "')";
SqlConnection cnn = new SqlConnection("Data Source = MANISHPC\\DIPTIPC; User ID = PrernaStudent; Password = PrernaStudent@123; Initial Catalog = PrernaStudent; Integrated Security = False");
if (cnn.State == ConnectionState.Closed) { cnn.Open(); }
SqlDataAdapter da = new SqlDataAdapter(strSQL, cnn);
DataSet ds = new DataSet();
da.Fill(ds, "UserName");
string uerror = "";
if (ds.Tables[0].Rows.Count > 0)
{
DataRow dtr;
int i = 0;
while (i < ds.Tables[0].Rows.Count)
{
dtr = ds.Tables[0].Rows[i];
uerror = "<img height = '12px' width = '18px' alt = 'User name available' src ='UsrNameNtAvailble.png' />
UserName Already Exist!
";
break;
}
}
else
{
uerror = "<img height = '12px' width = '18px' alt = 'User name available' src ='UsrNameAvailble.png' />
UserName Available!
";
}
return uerror;
}
catch (Exception ex)
{
string uerror = "Error occur during checking your username";
return uerror;
}
}
}
KManishS
24-Dec-13 6:19am
View
thanks for help but actually I need to change the color of label as well
KManishS
16-Jan-13 8:24am
View
any sample???
KManishS
15-Jan-13 8:03am
View
permission deny to use AJAX, any other solution Sir???
KManishS
15-Jan-13 7:53am
View
done it, not working...
Suggest experts.
KManishS
15-Jan-13 6:55am
View
how to use it in my code?????
KManishS
7-Dec-12 1:43am
View
If it works fine with mozilla 3.0 then why should not with higher version??????
KManishS
7-Dec-12 1:20am
View
Reason for my vote of 4 \n It works fine with asp page which not using css.. guide me
KManishS
29-Nov-12 5:14am
View
Thank You So Much.... I have got a very simple example of image slider..
i need to explore about .js file. guide me!
KManishS
10-Oct-12 9:12am
View
its a hosted website
KManishS
17-Aug-12 1:39am
View
i have done this but still getting the same ERROR
KManishS
10-Aug-12 4:24am
View
i got an error "Invalid Object name StudentDetails@Session"
KManishS
10-Aug-12 2:52am
View
Successfully passed value from asp page to stored procedure with parameter named @Session, i have written some query in Stored procedure like Select * from StudentDetails, how to concatenate???
its urgent
KManishS
10-Aug-12 2:46am
View
Successfully passed value from asp page to stored procedure with parameter named @Session, i have written some query in Stored procedure like Select * from StudentDetails, how to concatenate???
its urgent
KManishS
31-Jul-12 5:31am
View
thank you so much for reply, but i did it
Show More