15,900,461 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 arun.m.mr (Top 11 by date)
arun.m.mr
3-Jul-12 2:24am
View
Hi raju,
Here it only transfer customer id because you use only one session variable. Session["aaa"] = cuser_id.ToString();
If u need further more details, use the session value in the second page to retrieve data from database or some where else where you stored data.
Thank you.
arun.m.mr
27-Jun-12 5:26am
View
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Data" %>
<script runat="server">
[System.Web.Services.WebMethod]
[System.Web.Script.Services.ScriptMethod]
public static System.Data.DataTable MyMethod(int value)
{
return GetDataSet(value);
}
public static System.Data.DataTable GetDataSet(int value)
{
DataTable dt = new DataTable("Author");
DataRow dr;
dt.Columns.Add(new DataColumn("Id", typeof(Int32)));
dt.Columns.Add(new DataColumn("Author", typeof(string)));
for (int i = 0; i <= 10; i++)
{
dr = dt.NewRow();
dr[0] = i;
dr[1] = "Author" + i.ToString();
dt.Rows.Add(dr);
}
for (int i = 20; i <= 40; i++)
{
dr = dt.NewRow();
dr[0] = i;
dr[1] = "Author" + i.ToString();
dt.Rows.Add(dr);
}
DataView dv = new DataView(dt);
dv.RowFilter = "Id='" + value + "'";
return dv.Table;
}
</script>
<!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 id="Head1" runat="server">
<title>Untitled Page</title>
<script language="javascript" type="text/javascript">
function CallMyWebService()
{
WebService.MyMethod(1,OnRequestComplete);
}
function OnRequestComplete(result)
{
var str="";
for(var i = 0; i < result.rows.length; i++)
{
str+=result.rows[i].Author +"<br>";
}
document.getElementById('result').innerHTML=str;
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ScriptManager ID="scriptManger1" runat="server"
EnablePageMethods="true">
<services>
<asp:ServiceReference Path="~/WebService.asmx" />
<div id="result">
</div>
<input type="button" önclick="CallMyWebService();" id="myButton"
value="Call MyWebService" />
</div>
</form>
</body>
</html>
if you tried, you likely received some sort of circular reference serialization error to take advantage of this, you will need to add the following to your web.config:
<system.web.extensions>
<scripting>
<webservices>
<jsonserialization>
<converters>
<add name="DataSetConverter"
type="Microsoft.Web.Preview.Script.Serialization.Converters.DataSetConverter,
Microsoft.Web.Preview">
<add name="DataRowConverter"
type="Microsoft.Web.Preview.Script.Serialization.Converters.DataRowConverter,
Microsoft.Web.Preview">
<add name="DataTableConverter"
type="Microsoft.Web.Preview.Script.Serialization.Converters.DataTableConverter,
Microsoft.Web.Preview">
</scripting>
I use the same code. But it is not working. Can u check it Vani.
arun.m.mr
27-Jun-12 4:24am
View
Thank you Vani Kulkarni.
arun.m.mr
27-Jun-12 0:40am
View
Hi. guys, I checked those links... I'm beginner in this kind of stuff like web services. Can anyone specify the steps please..
arun.m.mr
20-Jun-12 3:29am
View
I need it like this.
<hedder>
<id>1
<name>ID
But This code shows like this..
<id>10
<name>ABC10
<hedder>
<id>11
<name>ABC11
<hedder>
No opening tag <HEADDER>... Only closing tag</HEADDER> is there..
arun.m.mr
19-Jun-12 1:58am
View
I used that , But its not working...
arun.m.mr
23-May-12 2:18am
View
Deleted
Yes it works . But the out put was
<hedders>
<hedder>
<name>AAAAA
<hedder>
<name>BBBBB
<hedder>
<name>CCCCC
<hedder>
<name>DDDDD
<hedder>
<name>EEEEE
<name>XXXXXX
See the last node.. It comes without <HEADDER></HEADDER>..
arun.m.mr
9-Mar-12 1:02am
View
Thank you aniketyadav7. Thank you so much.
arun.m.mr
9-Mar-12 0:21am
View
Error 2 'object' does not contain a definition for 'Selected' and no extension method 'Selected' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
arun.m.mr
17-Oct-11 3:16am
View
Yes i know what is watermarking. I have my own application for watermarking text on image. It was developed in C#. I would like to de-watermark(remove the watermarked text from the image)the same image. IS it possible by writing c# code. If anyone knows about it. help me please.
arun.m.mr
19-Jan-11 5:39am
View
Hi friend, I need to develop a College time table. A dynamic one for assigning the teachers.
Show More