15,917,454 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 Ganeshh2 (Top 34 by date)
Ganeshh2
6-Jun-14 2:31am
View
Thank u j snooze fro ur response,
i am using http only. How can i implement that Validate method. please post any sample code pls.
Ganeshh2
11-Nov-13 0:55am
View
Is is also not working in other browsers also..
Ganeshh2
8-Nov-13 23:18pm
View
Hi RyanDev,
Actually in my asp.net website i used the following script tag for 'prettyprint' css style
<script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js?lang=c" ></script>
But my problem is whenever i refresh my page at that time it is working fine but if iam not refresh the page it is not working properly.. please tell me the solution..
Thank u...
Ganeshh2
8-Nov-13 0:10am
View
what is the url we need to add into script tag's src element?
Ganeshh2
31-Aug-13 6:58am
View
Hi PhantomUpvoter,
Thank u for your reply, I didn't write any code for redirecting to error page. The pop-up which is asking username and password also not related to my web site because when i entered my login details again it shows that pop-up.
Ganeshh2
2-Jul-13 3:39am
View
Hi abhinavpratap,
Thanks for your solution.
Ganeshh2
2-Jul-13 1:01am
View
ok.
Ganeshh2
1-Jul-13 7:59am
View
Hi abhinavpratap,
Thank you for your valuable reply. In normal Asp.net Textbox it is working fine as you said. But I am using Ajax Html editor extender with Asp.net Textbox. In that it is making div tags.
Ganeshh2
1-Jul-13 5:33am
View
Thank you Amit,
I will check your links and try.
Ganeshh2
1-Jul-13 5:13am
View
cmd.Parameters.Add(new SqlParameter("@q_desc", SqlDbType.VarChar, 8000)).Value = ques;
where "ques" is the string which is entered into my Multi line text box. but when iam clicking enter button from my keyboard it is going to the next div in textbox.
Ganeshh2
28-Jun-13 1:10am
View
i think it is not imported the data which is having large size i.e greater than 255 characters. Please let me know the solution for importing the large size cell data.
Ganeshh2
28-Jun-13 0:32am
View
{string excelConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + filename + ";Extended Properties=Excel 12.0";
using (OleDbConnection connection = new OleDbConnection(excelConnectionString))
{
connection.Open();
DataTable dtSheetName = connection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
List<string> SubChapters = new List<string>();
SubChapters.Add("--Select--");
int count = 0;
for (int nSheetcount = 0; nSheetcount < dtSheetName.Rows.Count; nSheetcount++)
{
count++;
StringBuilder sSheetNAme = new StringBuilder();
sSheetNAme.Append(dtSheetName.Rows[nSheetcount]["TABLE_NAME"].ToString());
tablename = sSheetNAme.ToString();
string sQuery = "Select * from [" + tablename + "]";
OleDbCommand command = new OleDbCommand(sQuery, connection);
OleDbDataAdapter adapter = new OleDbDataAdapter(command);
if (sSheetNAme.ToString().LastIndexOf("'") == sSheetNAme.ToString().Length - 1)
{
sSheetNAme.Remove(sSheetNAme.Length - 2, 2);
sSheetNAme.Replace('#', '.');
}
else
{
sSheetNAme.Remove(sSheetNAme.Length - 1, 1);
sSheetNAme.Replace('#', '.');
}
if (sSheetNAme.ToString().IndexOf("'") == 0)
{
sSheetNAme.Remove(0, 1);
}
SubChapters.Add(sSheetNAme.ToString());
DataTable Dsheet = new DataTable();
adapter.Fill(Dsheet);
dataset.Tables.Add(Dsheet);
}
cmdSubChapters.DataSource = SubChapters;
}
Ganeshh2
27-Jun-13 8:01am
View
Deleted
Anybody please let me know the solution...
Ganeshh2
27-Jun-13 7:47am
View
Hi ArunRajendra,
data lost randomly. some cells data is perfectly imported but some are not imported perfectly..
Ganeshh2
3-Jun-13 9:35am
View
If i am not creating a new page it is difficult to create a page with the question as the title of the page and it is difficult to create meta tags since my pages should be seo friendly and it should be crawalable by the google robot. when user searches in the google , it should display my page. Is it possible to do all these things by loading content dynamically.
help is greately appreciated,
regards
Giri
Ganeshh2
30-May-13 8:52am
View
Ok, thank you ryan..
Ganeshh2
30-May-13 8:50am
View
could you please give me sample code...
Ganeshh2
11-May-13 5:53am
View
Hi Vijay,
Thank u very much..
u r posted exact solution to my issue. my problem was solved with ur solution.
Ganeshh2
10-May-13 7:59am
View
Thank you very much mohammed i will go through that link.
Ganeshh2
10-May-13 7:47am
View
good mohammed, but by using basicHttpBinding i got the out put but we didnot get "Json" format data right. for Json data "webHttpbinding" must be use right. for webHttpBinding" i got that exception. please give explanation.
Ganeshh2
10-May-13 7:40am
View
Everything of my code is correct but i think ndue to network problem only i got that exception, but u gave good explanation for network problem. but my issue is didnt resolved yet thats y iam asking web.config files code.
Ganeshh2
10-May-13 7:33am
View
Please send me "web.config" files codes.
Ganeshh2
10-May-13 7:25am
View
Thank u very much Mohammed for showing interest to solve my issue...
can you send me "web.config" files code of both WCF service and web applications.
Ganeshh2
10-May-13 7:14am
View
how can we know whether the port number is allowed by firewall or not?
Ganeshh2
10-May-13 7:01am
View
can u suggest any port no n one more thing in my system IIS is not installed
Ganeshh2
10-May-13 6:49am
View
Mohammed, if you find any solution? please let me know.... !
Ganeshh2
10-May-13 6:04am
View
My service is running through visualstudio..
Ganeshh2
10-May-13 6:01am
View
Exception message:ProtocolException was unhandled by user code
The remote server returned an unexpected response: (405) Method Not Allowed.
--------------------------------------------------
my code is :
Interface in WCF service is :
public interface IGetDataService
{
[OperationContract]
[WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Xml, BodyStyle = WebMessageBodyStyle.Wrapped)]
string XMLData(string id);
[OperationContract]
[WebInvoke(Method = "GET", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)]
string JSONData();
[OperationContract]
[WebGet(ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "json/xml")]
List<topicsnames> GetTopicsNames();
}
[DataContract]
public class TopicsNames
{
string qbmaintopics = string.Empty;
[DataMember]
public string QBMaintopics
{
get { return qbmaintopics; }
set { qbmaintopics = value; }
}
}
------------------------------------------------------
web application code in which i consume WCF service is :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ExampleService;
using System.Net;
using System.IO;
using System.Runtime.Serialization.Json;
public partial class _Default : System.Web.UI.Page
{
GetDataServiceClient objService = null;
protected void Page_Load(object sender, EventArgs e)
{
objService = new GetDataServiceClient();
}
protected void btnGetMaintopics_Click(object sender, EventArgs e)
{
string str = objService.JSONData();
lbldata.Text = str;
}
}
Ganeshh2
10-May-13 5:49am
View
no that is not missing. i also used webinvoke attribute for json response.
Ganeshh2
10-May-13 5:40am
View
yes, for other service methods also it shows same exception.
Ganeshh2
10-May-13 5:14am
View
I have done as said by you but the problem didn't solved.. again it shows above exception.
Ganeshh2
10-May-13 4:02am
View
JSONDATA() method is running perfectly in WCFTestClient.exe tool, but my problem is when that method is calling from my web application it gives this exceptiom "The remote server returned an unexpected response: (405) Method Not Allowed." in my web application".
Ganeshh2
10-May-13 2:02am
View
Yes, its running in WCFTestClient.exe. now it's showing exception like this "The remote server returned an unexpected response: (405) Method Not Allowed." in my web application.
Ganeshh2
10-May-13 1:21am
View
Hi Mohammed,
my WCF service address is "http://localhost:7783/GetDataService.svc" it is working. But when iam trying to call the service method "JSONData()" from my web application it gives the above exception "http://localhost:7783/GetDataService.svc/JSONData". what i need to do?
Show More