15,892,005 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 Abhimanyu vij (Top 12 by date)
Abhimanyu vij
5-Oct-13 4:54am
View
But tell me how i can set i am new to XML
Abhimanyu vij
26-Jul-13 1:01am
View
[WebMethod]
public List<properties> GetStates()
{
SqlConnection oSqlConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString);
SqlCommand oSqlCommand = new SqlCommand("select * from States", oSqlConnection);
oSqlCommand.CommandType = CommandType.Text;
oSqlConnection.Open();
List<properties> oListproperties = new List<properties>();
using (SqlDataReader OReader = oSqlCommand.ExecuteReader())
{
while (OReader.Read())
{
properties Oproperties = new properties();
Oproperties.Id = Convert.ToInt32(OReader["State_ID"].ToString());
Oproperties.State = OReader["State"].ToString();
oListproperties.Add(Oproperties);
}
}
return oListproperties;
}
[WebMethod]
public List<properties> GetCity(int ID)
{
//properties Oproperties1 = new properties();
//Oproperties1.Id = StateID;
SqlConnection oSqlConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString);
SqlCommand oSqlCommand = new SqlCommand("select * from City where State_ID ="+ID , oSqlConnection);
oSqlCommand.CommandType = CommandType.Text;
oSqlConnection.Open();
List<properties> oListproperties=new List<properties>();
using(SqlDataReader OReader = oSqlCommand.ExecuteReader())
{while(OReader.Read())
{properties Oproperties=new properties();
Oproperties.Id=Convert.ToInt32(OReader["ID"].ToString());
Oproperties.City=OReader["City"].ToString();
oListproperties.Add(Oproperties);
}
return oListproperties;
}
}
Abhimanyu vij
26-Jul-13 1:01am
View
[WebMethod]
public List<properties> GetStates()
{
SqlConnection oSqlConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString);
SqlCommand oSqlCommand = new SqlCommand("select * from States", oSqlConnection);
oSqlCommand.CommandType = CommandType.Text;
oSqlConnection.Open();
List<properties> oListproperties = new List<properties>();
using (SqlDataReader OReader = oSqlCommand.ExecuteReader())
{
while (OReader.Read())
{
properties Oproperties = new properties();
Oproperties.Id = Convert.ToInt32(OReader["State_ID"].ToString());
Oproperties.State = OReader["State"].ToString();
oListproperties.Add(Oproperties);
}
}
return oListproperties;
}
[WebMethod]
public List<properties> GetCity(int ID)
{
//properties Oproperties1 = new properties();
//Oproperties1.Id = StateID;
SqlConnection oSqlConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString);
SqlCommand oSqlCommand = new SqlCommand("select * from City where State_ID ="+ID , oSqlConnection);
oSqlCommand.CommandType = CommandType.Text;
oSqlConnection.Open();
List<properties> oListproperties=new List<properties>();
using(SqlDataReader OReader = oSqlCommand.ExecuteReader())
{while(OReader.Read())
{properties Oproperties=new properties();
Oproperties.Id=Convert.ToInt32(OReader["ID"].ToString());
Oproperties.City=OReader["City"].ToString();
oListproperties.Add(Oproperties);
}
return oListproperties;
}
}
Abhimanyu vij
16-Jul-13 2:45am
View
through json function CheckLogin() {
var email1 = document.getElementById("txtLoginusername").value;
var pass = document.getElementById("txtLoginpassword").value;
// alert(email1 + " , " + pass);
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "../WebServices/CheckLoginService.asmx/LoginCh",
data: "{'email':'" + email1 + "','password':'" + pass + "'}",
dataType: "json",
success: function (response) {
var Result = response.d
if (Result == true) {
var url = 'http://localhost:51001/UI/RegisterUser.aspx';
$(location).attr('href', url);
}
// alert(Result);
},
error: function (result) {
var Result = result.d;
if (Result == false) {
alert(Result);
}
}
})
return false;
plz tell Me solution
Abhimanyu vij
16-Jul-13 0:43am
View
Reason for my vote of 5 \n good article
Abhimanyu vij
16-Jul-13 0:42am
View
Reason for my vote of 5 \n this is very simplified article easy to understand
Abhimanyu vij
15-Jul-13 2:33am
View
I have set http://localhost:51001/UI/RegisterUser.aspx
this value i have set
Abhimanyu vij
24-Aug-12 13:31pm
View
its not working
Abhimanyu vij
24-Aug-12 13:22pm
View
when i am trying to write it in the textbox it does not show even it shows only ontextchanged
Abhimanyu vij
24-Aug-12 13:18pm
View
but there is no such type of event exist on asp textbox
Abhimanyu vij
24-Aug-12 13:12pm
View
there is no such kinDA OF EVENT IN THE TEXTBOX i think
Abhimanyu vij
16-Aug-12 13:39pm
View
thanks sir
Show More