15,888,968 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 matmape (Top 27 by date)
matmape
26-Jul-15 8:30am
View
//<system.web>
// <webservices>
// <protocols>
// <add name="HttpGet">
// <add name="HttpPost">
//</protocols>
//
//
matmape
26-Jul-15 8:30am
View
Hmmm. After staying on this question for 2-3 days now, no answer was given. I found the answer to the question somewhere. I only needed to add this to my web.config file
<system.web>
<webservices>
<protocols>
<add name="HttpGet">
<add name="HttpPost">
</protocols>
matmape
23-Jul-15 9:03am
View
$(document).ready(function () {
var messageLabel = $('#lblResult');
// messageLabel.hide();
$('#btnSaveQuestionNoSetting').click(function () {
//var tlength = $("input:text").length;
var subjIds = new Array();
var qNums = new Array();
var i = 0;
$(".inline :input").each(function () {
var count = $(this).attr('name');
subjIds[i] = count;
qNums[i] = $(this).val();
i++;
});
$.ajax({
url: "../SettingService.asmx/SaveQuestionSetting",
method: 'POST',
data: { subjectIds: JSON.stringify(subjIds), qCount: JSON.stringify(qNums) },
//async: true,
contentType:"application/x-www-form-urlencoded;charset=UTF-8",
success: function (response) {
console.log(response.d);
messageLabel.text("Saved successfully");
var btn = $('#btnSaveQuestionNoSetting');
btn.removeClass("btn-blue");
btn.addClass("btn-success");
btn.val("Saved");
messageLabel.fadeOut(5000);
btn.removeClass("btn-success");
btn.addClass("btn-blue");
},
error: function (errMsg) {
console.log("An error has occured");
console.log(errMsg);
}
});
});
});
matmape
22-Jul-15 9:47am
View
Please, when I added the static keyword to it, it gave me the following error message.
System.InvalidOperationException: SaveQuestionSetting Web Service method name is not valid.
↵ at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
↵ at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
↵
matmape
7-Jul-15 14:33pm
View
Thanks @virusstorm, I really appreciate it. It worked as expected
matmape
7-Jul-15 13:56pm
View
at var element = context.QuestionTables.ElementAt(index);
matmape
15-Oct-14 13:02pm
View
my config file
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configsections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<connectionstrings>
<add name="DefaultConnection" providername="System.Data.SqlClient" connectionstring="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-CBTDLCF-20140930120545;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-CBTDLCF-20140930120545.mdf">
<add name="CBTDLCFDBEntities" connectionstring="metadata=res://*/CBTDLCFDBModel.csdl|res://*/CBTDLCFDBModel.ssdl|res://*/CBTDLCFDBModel.msl;provider=System.Data.SqlClient;provider connection string="data source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\CBTDLCFDB.mdf;integrated security=True;connect timeout=30;MultipleActiveResultSets=True;App=EntityFramework"" providername="System.Data.EntityClient">
<system.web>
<compilation targetframework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="2880" defaultUrl="~/" />
<profile defaultProvider="DefaultProfileProvider">
<providers>
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionstringname="DefaultConnection" applicationname="/">
</providers>
</profile>
<membership defaultprovider="DefaultMembershipProvider">
<providers>
<add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionstringname="DefaultConnection" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="false" requiresuniqueemail="false" maxinvalidpasswordattempts="5" minrequiredpasswordlength="6" minrequirednonalphanumericcharacters="0" passwordattemptwindow="10" applicationname="/">
</providers>
<rolemanager defaultprovider="DefaultRoleProvider">
<providers>
<add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionstringname="DefaultConnection" applicationname="/">
</providers>
<!--
If you are deploying to a cloud environment that has multiple web server instances,
you should change session state mode from "InProc" to "Custom". In addition,
change the connection string named "DefaultConnection" to connect to an instance
of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express.
-->
<sessionstate mode="InProc" customprovider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionstringname="DefaultConnection">
</providers>
<system.webserver>
<modules runallmanagedmodulesforallrequests="true">
<runtime>
<assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">
matmape
15-Oct-14 13:01pm
View
Deleted
my web.config file
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configsections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<connectionstrings>
<add name="DefaultConnection" providername="System.Data.SqlClient" connectionstring="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-CBTDLCF-20140930120545;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-CBTDLCF-20140930120545.mdf">
<add name="CBTDLCFDBEntities" connectionstring="metadata=res://*/CBTDLCFDBModel.csdl|res://*/CBTDLCFDBModel.ssdl|res://*/CBTDLCFDBModel.msl;provider=System.Data.SqlClient;provider connection string="data source=(LocalDB)\v11.0;attachdbfilename=|DataDirectory|\CBTDLCFDB.mdf;integrated security=True;connect timeout=30;MultipleActiveResultSets=True;App=EntityFramework"" providername="System.Data.EntityClient">
<system.web>
<compilation targetframework="4.0">
<assemblies>
<add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" timeout="2880" defaultUrl="~/" />
<profile defaultProvider="DefaultProfileProvider">
<providers>
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionstringname="DefaultConnection" applicationname="/">
</providers>
</profile>
<membership defaultprovider="DefaultMembershipProvider">
<providers>
<add name="DefaultMembershipProvider" type="System.Web.Providers.DefaultMembershipProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionstringname="DefaultConnection" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="false" requiresuniqueemail="false" maxinvalidpasswordattempts="5" minrequiredpasswordlength="6" minrequirednonalphanumericcharacters="0" passwordattemptwindow="10" applicationname="/">
</providers>
<rolemanager defaultprovider="DefaultRoleProvider">
<providers>
<add name="DefaultRoleProvider" type="System.Web.Providers.DefaultRoleProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionstringname="DefaultConnection" applicationname="/">
</providers>
<!--
If you are deploying to a cloud environment that has multiple web server instances,
you should change session state mode from "InProc" to "Custom". In addition,
change the connection string named "DefaultConnection" to connect to an instance
of SQL Server (including SQL Azure and SQL Compact) instead of to SQL Server Express.
-->
<sessionstate mode="InProc" customprovider="DefaultSessionProvider">
<providers>
<add name="DefaultSessionProvider" type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionstringname="DefaultConnection">
</providers>
<system.webserver>
<modules runallmanagedmodulesforallrequests="true">
<runtime>
<assemblybinding xmlns="urn:schemas-microsoft-com:asm.v1">
matmape
15-Oct-14 10:15am
View
no, i wish i can just copy the folder to another system like we do in wamp server, but i found out that to view aspx files, the system must have an iis serer running on it
matmape
15-Oct-14 9:07am
View
That means, the computer serving as the host must create a network connection for others to connect to?
matmape
15-Sep-14 12:05pm
View
sorry for the late reply
was thinking the page reloads by itself
matmape
15-Sep-14 12:04pm
View
a html content
the uri contained the specified resource name in my case "inequalities.htm"
matmape
15-Sep-14 10:48am
View
Its on the line
Stream source = System.Windows.Application.GetResourceStream(uri).Stream;
matmape
15-Sep-14 10:45am
View
Its on the line
Stream source = System.Windows.Application.GetResourceStream(uri).Stream;
matmape
1-Sep-14 9:58am
View
BackGroundWorker is not available in WPF toolbox
matmape
28-Aug-14 8:55am
View
ok, if you can push me forward a little on how to plot a linear equation graph, I will appreciate it. Thanks
matmape
28-Aug-14 8:42am
View
Where do u suggest i draw it onto
matmape
28-Aug-14 8:36am
View
how to plot a linear equation on the graph
matmape
28-Aug-14 8:35am
View
I've done that(drew it on a picture box). The main work is how to now plot a linear equation on the drawn graph
matmape
27-Aug-14 12:15pm
View
okay thanks SA, I will check those links
matmape
27-Aug-14 11:58am
View
I didnt mean chart, what I want to use it for is to create textbox to enter the inequality equation and then generate a graph representing the solved inequality. Ive learnt how to draw line but, the logic behind solving the problem is somehow difficult for me
matmape
27-Aug-14 11:57am
View
but, I think i can fire it up using a button and not necessarily the Form's paint handler
matmape
27-Aug-14 8:53am
View
Thanks for that, would implement this too
matmape
27-Aug-14 8:42am
View
okay, can I use it to draw lines?
Maybe I should read more on the Graphics Class with the DrawLines() method
matmape
25-Aug-14 6:41am
View
What kind of resource link did u post?
matmape
25-Aug-14 6:40am
View
like a math learning tool
matmape
25-Aug-14 5:34am
View
Thanks, not any theory, some design concept please
Show More