|
Hi,
The production IIS 6.0.
We searched a lot.i used the keywords "Charset in connectionstring using asp.net","UTF8 format"
Another important thing "when i execute a query in production database server it stored the records in russian language" But it is not working through the dotnet application
we read the below url:
http://liadprog.blogspot.com/2007/10/aspnet-20-with-mysql-412-unicode.html[^]
Thanks for your reply
|
|
|
|
|
Hi, i am reading data from text file. the data is as follows
sachin ganguly dhoni dravid
means, each word has two spaces.
my code is as follows
StreamReader sr = new StreamReader("C:\\test.txt");
while ((text_line = sr.ReadLine()) != null)
{
text_line = text_line.Replace(' ',',');
sw.WriteLine(text_line);
}
I am getting error at text_line = text_line.Replace(' ',',');
saying that "Too many characters in character literal"
How can i replace double or triple or more spaces between words with comma?
G. Satish
|
|
|
|
|
ok friends, i got the answer.
I modified the code as follows. so its working now..
If any other methods, rather than this, then plz post
string str1 = " ";
string str2 = ","
StreamReader sr = new StreamReader("C:\\test.txt");
while ((text_line = sr.ReadLine()) != null)
{
text_line = text_line.Replace(str1,str2);
sw.WriteLine(text_line);
}
G. Satish
|
|
|
|
|
You need to change to use a different overload of the Replace function - two spaces is two characters whereas the method you're using expects a single character. Change it so that you do a string, rather than a character replace:
<br />
string test = "a b c d e f g";<br />
Console.WriteLine(test.Replace(" ", ";"));<br />
Console.ReadLine();<br />
It definitely isn't definatley
|
|
|
|
|
I just created a sample web application project using .net 2.0
1. Add the following iframe tag in the default.aspx
frameborder="0" scrolling="no">
2. Add one new page WebForm1.aspx
put some content and one hyperlink to navigate to (WebForm2.aspx) other pages.
3. And add one more WebForm2.aspx
put some contents inside this page.
4.Set the statup page as default.aspx,
5.Build this project and open in IE, the WebForm1.aspx content will get displayed in this default.aspx page,
6. Then Click on Hyperlink it will navigate to webform2.aspx.
7. Then click on Add to Favorites, then open a new IE, browse this Favorites page. we are able to get the webform2.aspx as viewed before.
8. The same is not working while clicking bookmarks in firefox.
Please let me know anyidea or technical help regarding this. Any help will be highly apprceiated.
Thanks and regards
D.Selvaraj
D.SELVARAAJ
Banglore, INDIA
|
|
|
|
|
I have label on homepage showing number of hits. I have used Session to keep track of it using database. When new session starts, its increment and on home page its getting reset.
The problem is it works fine when I open site in new window, but when opened in multiple tabs of IE7, it shows same users and not incrementing. Here is the code.
//Assigned 1 from global.asax on starting of each new session.
lock (this)
{
HomeDataInterface oHits = new HomeDataInterface();
if (Session["Hits"].ToString() == "1")
{
oHits.QACoEHits();
Session["Hits"] = "0";
}
lblHits.Text = lblHits.Text + oHits.GetQACoEHits();
}
I added lock(this) but that is also not working.
Can anyone help please?
|
|
|
|
|
|
Hi,
I want to know how to add custom Radio Button/Check Boxes functionality at the time of web setup Deployment
Can any body send the code /link of the projects in c#
|
|
|
|
|
Hello everyone,
I have a deployed ASP.Net application, I have source code and PDB files for all assemblies used in this ASP.Net application. And the ASP.Net application runs on IIS.
My question is, how to debug on IIS? E.g. I send some request and could debug line by line in cs file to see the processing details?
thanks in advance,
George
|
|
|
|
|
Remote Debugging
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
How? Is there a tutorial?
regards,
George
|
|
|
|
|
Google, use the keyword I gave you.
If I have to give you a tutorial on how to use Google, I can only hope that you stop programming, and while your at it, stop using the computer.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi Expert,
All I found is how to debug a remote application (by attaching to its process), but for ASP.Net application, which process should I attach to?
regards,
George
|
|
|
|
|
George_George wrote: which process should I attach to?
aspnet_wp.exe
cheers,
Abhijit
|
|
|
|
|
Cool, thanks Abhijit!
regards,
George
|
|
|
|
|
Tools - > Attach Process.
Open Websites on VS , Attach the Browser Application which is currently runs your application. Then Debug.
cheers,
Abhijit
|
|
|
|
|
Hi Abhijit,
1.
I am confused. "Tools - > Attach Process" do you mean Visual Studio Tools - > Attach Process? If yes, there is no Attach Process entry under Tools menu, only under Debug menu.
2.
"Open Websites on VS , Attach the Browser Application which is currently runs your application. Then Debug." -- I have followed your comments to open web site from Visual Studio, but what do you mean "Attach the Browser Application which is currently runs your application"? Any comments?
regards,
George
|
|
|
|
|
George_George wrote:
I am confused. "Tools - > Attach Process" do you mean Visual Studio Tools - > Attach Process? If yes, there is no Attach Process entry under Tools menu, only under Debug menu.
Yes I am talking About Visual Studio "Tool "
Tool - > Attach To Process
If you are not able to find it , just Press (Ctrl + Alt + P )
George_George wrote: "Open Websites on VS , Attach the Browser Application which is currently runs your application. Then Debug." -- I have followed your comments to open web site from Visual Studio, but what do you mean "Attach the Browser Application which is currently runs your application"? Any comments?
First Run your web application on browser, which is hosted on IIS. check "Proceess From Task Manager" . There would a Browser process running . You need to attached this process with you code.
Then in VS , give break point where you needs, then open Attach process screen as I already suggested in point 1 .
Now debug
Let me know if any issue !!!
cheers,
Abhijit
|
|
|
|
|
Hi Abhijit,
I am confused about your debugging solution. I want to debug server side code, i.e. the ASP.Net code runs on server, not the client side code running on IE. Why should I attach to IE? I think I should attach to IIS or ASP.Net worker process? Any comments?
regards,
George
|
|
|
|
|
George_George wrote: I think I should attach to IIS or ASP.Net worker process? Any comments?
ohh...That was my mistake , you need to also add Worker Process also .
cheers,
Abhijit
|
|
|
|
|
Hi Abhijit,
1.
A debugger could only attach to one process, I want to confirm with you that you mean attaching to ASP Worker Process process? Or something else?
2.
What is the name of ASP.Net worker process?
regards,
George
|
|
|
|
|
|
Good reference, I followed and they works cool. Thanks, Abhijit!
regards,
George
|
|
|
|
|
George_George wrote: My question is, how to debug on IIS? E.g. I send some request and could debug line by line in cs file to see the processing details?
You are trying to step into code from your machine connecting to server right? AFAIK, this is not possible. Easy way is to remote desktop to that server, and debug the code there if you have VS installed there.
|
|
|
|
|