15,914,608 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 Thiyagu Arockiasamy (Top 83 by date)
Thiyagu Arockiasamy
23-Aug-16 4:56am
View
okay sir
Thiyagu Arockiasamy
23-Aug-16 3:12am
View
for example user wise login method sir. like gmail login after search ..
Thiyagu Arockiasamy
23-Aug-16 2:23am
View
sir i want to one system to another system the visited link is stayed. how can i do it sir . any ideas
Thiyagu Arockiasamy
23-Aug-16 1:32am
View
sir i have one doubt. if i clear cookies visited links are also cleared in naormal? and also if i use one system to another system the visited link is stayed ? pls tel
Thiyagu Arockiasamy
22-Aug-16 6:09am
View
dear sir i tryed . its work for fully div. but i using retrieve the values in single div element using jquery. if i want to press any one of link at a particular link color is changed others not be changed. pls give any solution
Thiyagu Arockiasamy
9-Aug-16 11:13am
View
5
Thiyagu Arockiasamy
9-Aug-16 7:21am
View
Thanks a lot. i got output....
Thiyagu Arockiasamy
9-Aug-16 7:19am
View
Deleted
Thanks a lot sir. i got output
Thiyagu Arockiasamy
28-Jul-16 6:03am
View
Thanks a lot sir
Thiyagu Arockiasamy
28-Jul-16 5:44am
View
Dear sir its working for me. Thanks for your article
Thiyagu Arockiasamy
28-Jul-16 3:09am
View
Deleted
Please help any other link sir
Thiyagu Arockiasamy
27-Jul-16 2:14am
View
Incorrect syntax near '*'.
In this Error is occured
Thiyagu Arockiasamy
27-Jul-16 2:11am
View
Deleted
DECLARE @Topic VARCHAR(200)
SET @Topic = '372,382'
select Topic,NewsTopic from MulitSearch_PortalNews where '1' = dbo.fun_QueryCSVColumn (Topic,',',@Topic,'contains')
Its working for me , how to include my procedure sir please help.
create PROCEDURE [dbo].[Sp_MultiSearchNews]
@Topic VARCHAR(200) = NULL,
@pageno int = NULL,
@pagesize int = NULL
AS
BEGIN
IF( @Topic = 'null' )
BEGIN
SET @Topic = NULL;
END;
DECLARE @sql NVARCHAR(MAX), @sqlPaging NVARCHAR(MAX);
SET @sql = 'select distinct NewsID,CompanyID,Companyname,NewsTopic,Topic from MulitSearch_PortalNews WHERE 1=1';
IF @Topic IS NOT NULL
SET @sql = @sql + ' and Topic IN (' + @Topic + ')';
DECLARE @count VARCHAR(MAX);
SET @count = 'select count(*) as TotalCount from ( ' + @sql + ' ) as T';
exec (' select CAST(ROW_NUMBER() OVER(ORDER BY NewsID) AS INT) AS Row, TotalRecords,NewsID,CompanyID,Companyname,NewsTopic,Topic
from ( SELECT ROW_NUMBER() OVER(ORDER BY NewsID ) AS Row,('+@count+') AS TotalRecords ,* from ( '+@sql+' ) as T ) as pageResult
where ( Row between (('+@pageno+' -1)* '+@pagesize+'+1) AND '+@pageno+' * '+@pagesize+' )' );
END;
Thiyagu Arockiasamy
26-Jul-16 5:31am
View
okay sir
Thiyagu Arockiasamy
26-Jul-16 5:26am
View
yes sir
Thiyagu Arockiasamy
26-Jul-16 5:18am
View
for example i have
371
382
371
371,382
382,380 records but its only search on
371
382
371
Thiyagu Arockiasamy
26-Jul-16 5:12am
View
sir its only find the values in 371 and 382 Not like '371,382' or '382,380' values
Thiyagu Arockiasamy
26-Jul-16 3:33am
View
Topic is string field in database
Thiyagu Arockiasamy
26-Jul-16 3:08am
View
yes its correct sir but not working for me
Thiyagu Arockiasamy
26-Jul-16 3:01am
View
Database also string in Topic. Topic (varchar(250),not null) its my database field.
Thiyagu Arockiasamy
26-Jul-16 2:51am
View
its a comma separated values
Thiyagu Arockiasamy
26-Jul-16 2:50am
View
String field in Topic sir
Thiyagu Arockiasamy
26-Jul-16 2:50am
View
yes sir kindly help
Thiyagu Arockiasamy
26-Jul-16 2:31am
View
its not working sir. there is no one records search it.
Thiyagu Arockiasamy
15-Jul-16 3:23am
View
dear sir i changed my insert method its work fine sir. Thanks a lot
Thiyagu Arockiasamy
15-Jul-16 3:23am
View
dear sir i changed my insert method its work fine sir. Thanks a lot
Thiyagu Arockiasamy
14-Jul-16 8:45am
View
<p></p> tag is applicable for me sir after close </p> tag next paragraph start
Thiyagu Arockiasamy
14-Jul-16 8:41am
View
dear sir after '.' is not a correct way for me sir. if i give Rs.120 Crore. It will take two spaces of two paragraph sir. please help
Thiyagu Arockiasamy
14-Jul-16 8:27am
View
its only working for first paragraph sir . separated in lot of paragraphs sir. help me sir
Thiyagu Arockiasamy
14-Jul-16 8:24am
View
dear sir not working for me sir . please help
Thiyagu Arockiasamy
7-Jul-16 5:55am
View
Thanks a lot sir its Working for me
Thiyagu Arockiasamy
7-Jul-16 5:41am
View
sir i declare but its showing all records, for example
SET @count = 'SELECT COUNT(CompanyID) FROM MulitSearch_Portal
EXEC ( ' select CAST(ROW_NUMBER() OVER(ORDER BY PrjInfoAsOfDate) AS INT) AS Row ,TotalRecords,CompanyID,CompanyName,AliasName,CompanyCategoryID,LegalTypeID,IncorpYear,CompanyCategory,LegalType,
IndstryID,IndstryName,SubIndstryID,SubIndstryName,ProductID,ProductName,ProjectID,ProjectTitle,ProjTypeID,ProjectType,PrjStatusID,ProjectStatus,
EstimateCost,GuesstimateCost,ActualCost,PrjInfoAsOfDate,ProjRegionID,ProjectRegion,PrjStateID,ProjectState,PrjDistrictID,PrjDistrict from ( SELECT ROW_NUMBER() OVER(ORDER BY CompanyID ) AS Row, ('+@count+') AS TotalRecords , * from ( '+@sql+' ) as T ) as pageResult where ( Row between (('+@pageno+' -1)* '+@pagesize+'+1) AND '+@pageno+' * '+@pagesize+' )' );
only 40 records are available in companyId based but display output is Fully records count. i want to specific parameters count values sir
Thiyagu Arockiasamy
7-Jul-16 5:18am
View
Hi sir I want to need above procedure count sir . please help me sir
Thiyagu Arockiasamy
1-Jul-16 7:38am
View
My friend also said thanks to you . thanks a lot....
Thiyagu Arockiasamy
1-Jul-16 7:37am
View
Thanks sir its working.
Thiyagu Arockiasamy
1-Jul-16 6:07am
View
Its very important that's why i am asking sorry
Thiyagu Arockiasamy
29-Jun-16 9:21am
View
Thanks a lot Madhu....
Thiyagu Arockiasamy
29-Jun-16 8:56am
View
Thanks for your help bro . thanks a lot
Thiyagu Arockiasamy
29-Jun-16 6:35am
View
Thanks a lot :-)
Thiyagu Arockiasamy
29-Jun-16 5:13am
View
Thanks a lot . Its Work Fine for me.
Thiyagu Arockiasamy
28-Jun-16 8:28am
View
i finished this work. its work fine thanks
Thiyagu Arockiasamy
27-Jun-16 0:53am
View
i want to load data while scrolling page down with jquery and html page
Thiyagu Arockiasamy
24-Jun-16 2:25am
View
Thanks a lot F-ES Sitecore. It's work fine for me. Thank yo very much.
Thiyagu Arockiasamy
23-Jun-16 9:32am
View
Thanks ji i finished
Thiyagu Arockiasamy
23-Jun-16 9:32am
View
thanks thala i got it
Thiyagu Arockiasamy
22-Jun-16 8:10am
View
i have one more doubt how to search particular textbox or dropdownlist list id via in dynamic binding pls tell
Thiyagu Arockiasamy
22-Jun-16 8:10am
View
its fine ji. but i have one more doubt how to search particular textbox or dropdownlist list id via in dynamic
Thiyagu Arockiasamy
22-Jun-16 8:08am
View
Thanks ji its fine
Thiyagu Arockiasamy
22-Jun-16 7:21am
View
no
Thiyagu Arockiasamy
22-Jun-16 6:59am
View
http://localhost:25012/NewsRestService.svc/NewsById/4
its work fine i want to dynamic search NewsID have anyone for example(1,2,3,4,..).
how can i get particular record passed dynamic id
Thiyagu Arockiasamy
22-Jun-16 6:57am
View
ya its fine my question is if i give any one of if for example 2 or 3 how can i get the values. in my procedure id field is NewsID. pls tel
Thiyagu Arockiasamy
22-Jun-16 6:04am
View
Deleted
sry Afzaal Ahmad Zeeshan i'm not getting output. i'm using wcf rest service. i below added my code for jquery its not working pls help
<script type="text/javascript">
$(document).ready (function(NewsByIdResult) {
debugger;
$.ajax({
url: "http://localhost:25012/NewsRestService.svc/NewsById/4",
dataType: "JSON",
type: "GET",
contentType: "application/json; charset=utf-8",
data: JSON.stringify({newsbyidresult: NewsByIdResult}),
async: true,
cache: false,
success: function (data) {
var out = "";
var i;
window.sessionStorage.setItem('newsObject');
for (i = 0; i < data.NewsByIdResult.length; i++) {
out += '<div class="blog-post-content-desc">'
+ '<div class="blog-post-content">'
+ '
' + data.NewsByIdResult[i].NewsTopic + '
/h2>'
}
document.getElementById("hre").innerHTML = out;
},
})
});
</script>
Thiyagu Arockiasamy
22-Jun-16 4:03am
View
ok boss thanks
Thiyagu Arockiasamy
22-Jun-16 3:08am
View
unga mail id enaku neenga tharave illa
Thiyagu Arockiasamy
22-Jun-16 3:07am
View
Deleted
okay night availaple a ?
Thiyagu Arockiasamy
22-Jun-16 3:06am
View
.
Thiyagu Arockiasamy
22-Jun-16 3:05am
View
iruku
Thiyagu Arockiasamy
22-Jun-16 2:52am
View
thanks thala
Thiyagu Arockiasamy
22-Jun-16 2:10am
View
thala mail id thanga . i would like to asked some questions on jquery ji.
Thiyagu Arockiasamy
22-Jun-16 2:03am
View
okay mail id tharalame .
Thiyagu Arockiasamy
22-Jun-16 1:22am
View
mail id ? thala
Thiyagu Arockiasamy
21-Jun-16 9:27am
View
berakpoint does not read(go) in ajax. its only read function()
Thiyagu Arockiasamy
21-Jun-16 9:10am
View
i'm use in this method
<script type="text/javascript">
$(document).ready(function () {
debugger;
$.ajax({
type: "GET",
url: 'http://localhost:25012/NewsRestService.svc/WrappedNewsById/4',
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
cache: false,
}).success(function (data) {
$('#data').append(JSON.parse(data));
alert(data);
});
})
</script>
please tell me ajax call service method . i'm struggle
Thiyagu Arockiasamy
21-Jun-16 8:47am
View
<script type="text/javascript">
$(document).ready(function () {
debugger;
$.ajax({
type: "GET",
url: 'http://localhost:25012/NewsRestService.svc/WrappedNewsById/4',
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
cache: false,
}).success(function (data) {
$('#data').append(JSON.parse(data));
alert(data);
});
})
</script>
Another Type of Code is:
<script type="text/javascript">
debugger;
var service = 'http://localhost:25012/NewsRestService.svc/NewsById/';
$(document).ready(function () {
jQuery.support.cors = true;
$.ajax(
{
type: "GET",
url: service + '4',
data: "{}",
contentType: "application/json; charset=utf-8",
dataType: "json",
cache: false,
success: function (data) {
alert(data);
var trHTML = '';
$.each(data.newsid, function (i, item) {
'<div class="blog-post-content-desc">'
+ '<div class="blog-post-content">'
+ '
' + listvalues.newsid[0].NewsTopic + '
'
});
$('#blog-post-content-desc').append(trHTML);
},
error: function (msg) {
alert(msg.responseText);
}
});
});
</script>
Thiyagu Arockiasamy
21-Jun-16 8:33am
View
Uncaught TypeError: Cannot read property 'toLowerCase' of undefined
its my error message. yes i serialised json format.i got output http://localhost:25012/NewsRestService.svc/NewsById/4 but i did not read in url using jquery.,
Thiyagu Arockiasamy
21-Jun-16 8:27am
View
does not read it. not getting
Thiyagu Arockiasamy
21-Jun-16 8:22am
View
I'm working in asp.net wcf rest service. below code is my service
public List<newss> NewsById(string NewsID)
{
string Status = TokenHelper.IsValidateToken();
using (DbConnection con = db.CreateConnection())
try
{
con.Open();List<newss> Lstnews = new List<newss>();
DbCommand cmd = db.GetStoredProcCommand("spNews_GetValues", NewsID);
cmd.CommandTimeout = int.MaxValue;
SqlDataReader objnewsRead = (SqlDataReader)db.ExecuteReader(cmd);
while (objnewsRead.Read())
{
Lstnews.Add(new Newss()
{
NewsID = objnewsRead.GetInt32(objnewsRead.GetOrdinal("NewsID")),
NewsCompId = objnewsRead.GetInt32(objnewsRead.GetOrdinal("NewsCompId")),
CompanyId = objnewsRead.GetInt32(objnewsRead.GetOrdinal("CompanyIds")),
CompanyLegalName = objnewsRead.GetString(objnewsRead.GetOrdinal("CompanyLegalName")),
});
}
return Lstnews;
}
finally
{
con.Close();
}
}
IService code:
[OperationContract]
[WebGet(UriTemplate = "WrappedNewsById/{NewsID}", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)]
List<newss> NewsById(string NewsID);
Thiyagu Arockiasamy
21-Jun-16 3:20am
View
Thanks A Lot sir, really you save my lot of time sir..... Thank You very much sir........ It's working fine to me sir.
Thiyagu Arockiasamy
21-Jun-16 2:47am
View
Thanks a Lot sir . IT's working fine to me. Thanks again
Thiyagu Arockiasamy
20-Jun-16 8:12am
View
dear sir if i deserialize this JSON the array. "[{.....}]" is displayed. how to remove " " sir. code below
var JsonNews = Newtonsoft.Json.JsonConvert.SerializeObject(Lstnews);
var jobject = sonConvert.DeserializeObject<List<newss>>(JsonNews);
return JsonNews;
Thiyagu Arockiasamy
20-Jun-16 7:02am
View
i am using wcf rest service WEB API
Thiyagu Arockiasamy
20-Jun-16 6:41am
View
my rest service code is
[OperationContract]
[WebGet(UriTemplate = "NewsById/{NewsID}", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)]
string NewsById(string NewsID);
And my Jquery code of Html page :
<script type="text/javascript">
$(document).ready(function () {
debugger
$.ajax({
crossDomain: true,
async: true,
cache: false,
type: "GET",
url: 'http://localhost:25012/NewsRestService.svc/NewsById/4',
data: JSON.stringify(),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
alert(response.d);
},
failure: function (response) {
alert(response.responseText);
}
});
}
);
</script>
Thiyagu Arockiasamy
20-Jun-16 6:39am
View
i am using wcf rest service sir.
Thiyagu Arockiasamy
20-Jun-16 6:19am
View
Dear sir, i check it, you demo output is fine its a valid joson. but my output of json is
{"NewsByIdResult":"[{\"NewsID\":4,\"CompanyId\":160,\"NewsCompId\":7,\"CompanyLegalName\":\"TCS BUSINESS INFORMATION\"}]"}
please how can i remove array of "". if i remove " " its work fine. please help me sir
Thiyagu Arockiasamy
20-Jun-16 6:06am
View
okay sir thanks a lot.And one more question , How to get json data in html page using jquery.
Thiyagu Arockiasamy
20-Jun-16 0:41am
View
I get raw data in below code.
public string NewsById(string NewsID)
{
string Status = TokenHelper.IsValidateToken();
using (DbConnection con = db.CreateConnection())
try
{
con.Open();
List<newss> Lstnews = new List<newss>();
DbCommand cmd = db.GetStoredProcCommand("spNews_GetValues", NewsID);
cmd.CommandTimeout = int.MaxValue;
SqlDataReader objnewsRead = (SqlDataReader)db.ExecuteReader(cmd);
while (objnewsRead.Read())
{
Lstnews.Add(new Newss()
{
NewsID = objnewsRead.GetInt32(objnewsRead.GetOrdinal("NewsID")),
NewsCompId = objnewsRead.GetInt32(objnewsRead.GetOrdinal("NewsCompId")),
CompanyId = objnewsRead.GetInt32(objnewsRead.GetOrdinal("CompanyIds")),
CompanyLegalName = objnewsRead.GetString(objnewsRead.GetOrdinal("CompanyLegalName")),
}
var JsonNews = Newtonsoft.Json.JsonConvert.SerializeObject(Lstnews);
return JsonNews;
}
finally
{
con.Close();
}
}
Its my service code
Please help me
Thiyagu Arockiasamy
18-Jun-16 1:48am
View
Sir, i implement joson data with HTML page using jquery its not work.i added my HTML page jquery code please help me
<script type="text/javascript">
$(document).ready(function () {
debugger
$.ajax({
crossDomain: true,
async: true,
cache: false,
type: "GET",
url: 'http://localhost:25012/ProjectRestService.svc/NewsById/4',
data: JSON.stringify(),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
alert(response.d);
},
failure: function (response) {
alert(response.responseText);
}
});
}
);
</script>
Thiyagu Arockiasamy
18-Jun-16 1:36am
View
Okay sir but its not working. i implement joson data with HTML page using jquery its not work.i added my HTML page jquery code please help sir
<script type="text/javascript">
$(document).ready(function () {
debugger
$.ajax({
crossDomain: true,
async: true,
cache: false,
type: "GET",
url: 'http://localhost:25012/ProjectRestService.svc/NewsById/4',
data: JSON.stringify(),
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (response) {
alert(response.d);
},
failure: function (response) {
alert(response.responseText);
}
});
}
);
</script>
Thiyagu Arockiasamy
18-Jun-16 1:04am
View
How can i remove "" . please tell me
Thiyagu Arockiasamy
17-Jun-16 9:13am
View
Its not a smile Its "CompanyID\":0, In this ID No need
Thiyagu Arockiasamy
17-Jun-16 8:47am
View
CompanyID No need sir
Thiyagu Arockiasamy
17-Jun-16 8:04am
View
i only got output in raw data i want to need joson data. i used code
var JsonNews = Newtonsoft.Json.JsonConvert.SerializeObject(Lstnews);
return JsonNews;
its only get raw data, but i need json data
{"NewsByIdResult":"[{\"NewsID\":4,\"CompanyID\"Blush | :O ,\"CompanyIds\":null,\"CompanyId\":160,\"CompanyIdVal\":null,\"Topic\":\"280\",\"Industry\":83,\"CompanyLegalName\":\"TCS BUSINESS INFORMATION\"}]"}
Thiyagu Arockiasamy
17-Jun-16 8:02am
View
Okay, then how can to remove the \ symbol in raw data. i couldn't able to bind the value.
Show More