16,004,653 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 .NET 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 .NET- India (Top 31 by date)
.NET- India
16-Sep-21 9:07am
View
I have also encoded my code on "UTF-8" but still getting same result. So i would have to make some changes at my code to run it on Server because on localhost it's already running no need to encode my code......
Encoding objISO = Encoding.GetEncoding("ISO-8859-1");
Encoding objUTF = Encoding.UTF8;
// Unicode string.
string s_unicode = name;
// Convert to ISO-8859-1 bytes.
byte[] isoBytes = objISO.GetBytes(s_unicode);
// Convert to UTF-8.
byte[] utf8Bytes = Encoding.Convert(objISO, objUTF, isoBytes);
string utf8str = objUTF.GetString(utf8Bytes);
return utf8str;
.NET- India
16-Sep-21 9:04am
View
Deleted
I have also encoded my code on "UTF-8" but still getting same result. So i would have to make some changes at my code to run it on Server because on localhost it's already running no need to encode my code......
.NET- India
16-Sep-21 7:59am
View
I have encoded my body string into "ISO-8859-1", but now string being converted into "question mark(?)" from "black diamond question mark" as given below...
d�avoir = d?avoir
à = ?
procédure = proc?dure
Following given code i'm using for conversion.....
-----------------
public string EncodeISO(string name)
{
Encoding objISO = Encoding.GetEncoding("ISO-8859-1");
string s_unicode = name;
// Convert to ISO-8859-1 bytes.
byte[] isoBytes = objISO.GetBytes(s_unicode);
string str = objISO.GetString(isoBytes);
return str;
}
.NET- India
19-Aug-21 10:29am
View
Yes, same question, but yesterday i was not able to send the mail. But today mail is being sent in alternate way i.e. once mail will be delivered but next time it won't, then it will be and after that it will not be.....
.NET- India
18-Aug-21 5:04am
View
No
.NET- India
18-Aug-21 4:08am
View
No, i have not used any "D:" in my local system.....
.NET- India
18-Aug-21 3:36am
View
While i run this api on "localhost" then gets no error, but run on "Azure server swagger" then get following error......
400 Error: Bad Request
{
"ClassName": "System.Exception",
"Message": "Bad request found",
"Data": null,
"InnerException": {
"ClassName": "System.IO.FileNotFoundException",
"Message": "Could not find file 'D:\\home\\site\\wwwroot\\sample.pdf'.",
.NET- India
24-Aug-20 10:47am
View
Deleted
Thanks, Is it also same of 'Interface' i.e. 'AbsBase' is 'Interface' ?
.NET- India
5-Aug-20 5:06am
View
I have installed,"Microsoft.AspNetCore.Mvc.Newtonsoft.Json package", but which version to be installed, if i'm installing latest version i.e. "3.1.6" then giving error but installing version i.e. "3.0.2" then working fine
.NET- India
4-Aug-20 6:09am
View
Yes
.NET- India
4-Aug-20 6:08am
View
I have not gone through this site, one of our team member has, but still getting stuck
.NET- India
4-Aug-20 5:41am
View
Yes, I have updated my question above, ......"Failed to determine the https port for redirect." is to be added
.NET- India
14-Jul-17 1:56am
View
So what should i do..... Do you have any appropriate solution
.NET- India
27-Jan-17 4:55am
View
If i bring only 10 columns then it's giving result within 30 seconds while pressing F5. So is it any other way so that i can merge my rest 30 or more columns with these 10 columns........
.NET- India
27-Jan-17 4:22am
View
I understand but i am asked to do it.....
.NET- India
12-Jan-17 7:09am
View
Thanks for your ans. but i want it in columns as shown above.
.NET- India
12-Jan-17 1:19am
View
Deleted
Thanks
.NET- India
23-Apr-13 1:45am
View
Thanx Mr. Karthik for great your support..................
But i want to ask one question, have you gone through my code given above??????
.NET- India
23-Apr-13 1:31am
View
Can you give me the example according the code given above, really i'm not getting your point i.e.
just have select your code lines, place the mouse pointer on "Code" tab of your editor,
.NET- India
23-Apr-13 1:02am
View
Mr. Karthik, where is to place
pre
tag. Please explain
.NET- India
22-Apr-13 8:04am
View
I'm not understanding please explain and what should i do
.NET- India
20-Mar-13 9:08am
View
no and also i've provided full permissions
.NET- India
20-Mar-13 8:49am
View
LPT. But also giving error "Access to path C:\Inetpub\wwwroort...."
.NET- India
20-Mar-13 8:38am
View
Matrix printer is attached to my pc and using following code given below
string strFilePath = Server.MapPath("~/TEXTFILE/BatchFile.bat"); //GET BAT FILE NAME
System.Diagnostics.ProcessStartInfo psi = new System.Diagnostics.ProcessStartInfo("cmd.exe");
psi.UseShellExecute = false;
psi.RedirectStandardOutput = true;
psi.RedirectStandardInput = true;
psi.RedirectStandardError = true;
psi.WorkingDirectory = Server.MapPath("~/TEXTFILE");
System.Diagnostics.Process proc = System.Diagnostics.Process.Start(psi);
System.IO.StreamReader strm = System.IO.File.OpenText(strFilePath);
System.IO.StreamReader sOut = proc.StandardOutput;
System.IO.StreamWriter sIn = proc.StandardInput;
while (strm.Peek() != -1)
{
sIn.WriteLine(strm.ReadLine());
}
strm.Close();
string stEchoFmt = "# {0} run successfully. Exiting";
sIn.WriteLine(String.Format(stEchoFmt, strFilePath));
sIn.WriteLine("EXIT");
proc.Close();
string results = sOut.ReadToEnd().Trim();
sIn.Close();
sOut.Close();
string fmtStdOut = "
{0}
";
this.Response.Write(String.Format(fmtStdOut, results.Replace(System.Environment.NewLine, "<br>")));
.NET- India
20-Mar-13 8:28am
View
yes
.NET- India
18-Mar-13 10:13am
View
Same error getting
.NET- India
18-Mar-13 10:11am
View
I'm trying to read that text file. But after publishing in wwwroot it's giving the error given above
.NET- India
15-Mar-13 3:29am
View
first to write and then print. But writing is done but printing is an issue still.....
.NET- India
9-Jul-12 3:19am
View
But my menus are being designed at code-behind from database and inside a Placeholder
.NET- India
20-Jan-12 6:45am
View
still not working....
.NET- India
20-Jan-12 6:17am
View
Here is my code
<asp:HiddenField ID="hidPassword" runat="server" />
<asp:TextBox ID="txtName" runat="server">
<asp:TextBox ID="txtPassword" TextMode="Password" autocompletetype="None" autocomplete="False" runat="server">
<asp:Button ID="btnClick" Text="Click" runat="server" OnClick="btnClick_Click" />
<asp:Button ID="btnRefresh" Text="Refresh" runat="server" OnClick="btnRefresh_Click" />
protected void Page_Load(object sender, EventArgs e)
{
designLinks();
}
public void designLinks()
{
Response.Write(txtName.Text + "," + txtPassword.Text);
}
Show More