15,886,199 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 s yu (Top 200 by date)
s yu
yesterday
View
Actually, I also tried what you said. But I got another bug https://www.codeproject.com/Questions/5381071/IDE0005-error-using-directive-is-unnecessary?cmt=1126156#cmt1126156
s yu
2 days ago
View
True. When I tried to check on the PresentationFramework.dll, I got error "The project configuration 'DebugAndCPU' was not found in the project manifest. How to resolve it? Thanks.
s yu
2 days ago
View
I do need to call the functions in the NewProj namespace. If it is commented out, all of the function calls are errored.
s yu
11-Sep-23 12:28pm
View
Make sense. Thanks for your provided solution.
s yu
11-Sep-23 10:19am
View
What's your proposed "Simple Way"?
s yu
11-Sep-23 10:13am
View
Please provide additional details. Thanks.
s yu
8-Sep-23 9:23am
View
Referring to https://stackoverflow.com/questions/133883/stop-and-start-a-service-via-batch-or-cmd-file, Just revised the .bat as
net start [your service]
if %errorlevel% == 2 echo Could not start service.
if %errorlevel% == 0 echo Service started successfully.
echo Errorlevel: %errorlevel%
Then it works. Thanks for your review.
s yu
7-Sep-23 13:18pm
View
Wonderful. Re-compiled w/ setting on "All Platforms" & "Any CPU". The bat file can be implemented. Thanks.
s yu
19-May-23 10:35am
View
You are RIGHT! Thanks.
s yu
19-May-23 10:17am
View
Richard: Thanks for your post. The piece of code is
for (int j = 0; j < r.Length - 1; j++) { // the Length=145
ar[k+j, 0] = r[j][0]; // out of bound at j=128
}
Any idea? Thanks again.
s yu
15-May-23 10:51am
View
I re-checked the classes built through VS tool "Paste Special", and found one field in a class is incorrect. After correcting it. The error is gone. Thank Dave's solution also.
s yu
15-May-23 7:57am
View
Dave: Thanks for your response. The piece of code I used is sourced from
https://www.thecodebuzz.com/system-text-json-the-json-value-could-not-be-converted-to-system-int32/
Solution 1, which is a custom conversion.
s yu
12-May-23 15:25pm
View
Richard: Thank you so much. Using VS "paste special" tool, the classes are well generated. But I got another problem in converting Int32. I use such piece of code as:
var serializeOperations = new JsonSerializerOptions();
serializeOperations.Converters.Add(new Int32Converter());
//Error CS1503 Argument 1: cannot convert from 'System.ComponentModel.Int32Converter' to 'System.Text.Json.Serialization.JsonConverter'
Root lrsSeg = JsonSerializer.Deserialize<root>(result, serializeOperations);
I have searched around but have not got the answer yet. What's your advisory? Thanks again.
s yu
12-May-23 10:24am
View
Richard: Thanks for your quick response. I got error on [JsonProperty...] - Not an attribute class.
I use VS2022, net6. Could you tell how to fix this error?
s yu
23-Sep-21 11:13am
View
I have got the solution. Thanks for your viewing the thread.
s yu
23-Sep-21 8:39am
View
Thanks for your response. I viewed them but none of them can well fit my needs.
s yu
18-Jun-21 9:29am
View
If JSON.stringfy() is removed, still get the same error. The errorThrown = ''.
s yu
7-Jun-21 10:34am
View
Thanks a lot.
s yu
2-Jun-21 7:34am
View
PERFECT answer! Thanks a lot.
s yu
24-Mar-21 12:53pm
View
True.
s yu
16-Mar-21 14:13pm
View
This is a vertical one. But it does not display on the right of the container.
s yu
16-Feb-21 11:30am
View
It debugged the code. The error message shows that "Unhandled Exception at Line 11, Column 379 in https://js.arcgis.com/4.14 It means the jQuery library I used is not compatible with ESRI's 4.x version library.
s yu
2-Jun-20 7:50am
View
Actually, I try to save the file into C:\Temp\ (it exists) rather than into a Server folder.
s yu
20-Dec-19 10:41am
View
Refer to https://stackoverflow.com/questions/1056487/httpcontext-current-user-identity-name-is-always-string-empty
Use
string s = System.Web.HttpContext.Current.Request.LogonUserIdentity.Name;
Then the problem is gone. Thanks for your review.
s yu
20-Dec-19 10:41am
View
Deleted
Refer to https://stackoverflow.com/questions/1056487/httpcontext-current-user-identity-name-is-always-string-empty
Use
string s = System.Web.HttpContext.Current.Request.LogonUserIdentity.Name;
Then the problem is gone. Thanks for your review.
s yu
24-Oct-19 12:40pm
View
Re-tested, the pages do display well on IE11 & Edge, but still not on Chrome
s yu
6-Aug-19 12:48pm
View
The message in the Event View is "Service started successfully." Nothing else.
s yu
6-Aug-19 11:14am
View
The Error 1053 was gone. Thanks.
s yu
24-May-19 10:01am
View
You are right. But added '\"' after \"2017-04-27T12:37 as \"2017-04-27T12:37\"
Still got the error: Strings should be wrapped in double quotes.
s yu
30-Apr-19 7:50am
View
The real URL is our company's address, not good to put here. Actually, I want to find a good sample I can refer to.
The error is:
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.
It appears to be the access-related, nothing wrong in the code. Thanks.
s yu
19-Apr-19 13:18pm
View
You are right. I revised the code like you pointed out and then the problem was gone. Thanks.
s yu
19-Apr-19 10:35am
View
Did project cleaning & re-build. The problem was then gone. Thanks.
s yu
19-Apr-19 9:03am
View
Deleted
Changed and removed the class='' and style=''
but still got v2 = null
s yu
2-Apr-19 11:06am
View
Now it is fast. Probably it is slow in the 1st time as Dave said. Thanks.
s yu
2-Apr-19 10:48am
View
Thanks for your response.
I used the sample in https://www.c-sharpcorner.com/UploadFile/8a67c0/getting-started-with-web-api-step-by-step-with-sample-applic/.
The webapi contains a simple controller + a simple model .cs file (containing some methods for the data w/ get and set only).
I run debugging. Every time it takes several minutes to get result returned.
s yu
27-Feb-19 10:06am
View
I have reduced the query string length below 2048 (by removing white space and use '=' to substitute 'like'. Then it works fine. Thanks.
s yu
7-Feb-19 11:18am
View
Thanks for your response. Per your answer, I did the following
SaveImageFile(image, "Temp");
System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(image);
RectangleF rect = new RectangleF(0,25,100,100);
g.DrawImage(image, 25F, 25F, rect, GraphicsUnit.Point);
g.DrawImage(image, rect);
Bitmap bmp = new Bitmap(100, 100, g);
SaveImageFile(bmp, "Temp_");
I saved both images. The 1st one is fine, but the 2nd one is nothing but displays a black box. What wrong in code? Thanks if you can help.
s yu
24-Jan-19 11:40am
View
The key how to convert the downloaded byte[] into an image, which always fails. Will test more. Thanks.
s yu
23-Jan-19 13:12pm
View
Whatever tried , always failed. The byte[] object is downloaded from a google map. I would guess there is some format issue. Thanks.
s yu
23-Jan-19 11:57am
View
The data downloaded likes that below
byte[] data = client.DownloadData(s1);
I am not sure its format is Base64. Could you provide your advisory on that issue? Thanks.
s yu
2-Nov-18 15:31pm
View
Selecting a folder is for exporting files into that folder.
s yu
30-Aug-18 8:02am
View
Actually, I did not use ActiveXObject. What I want to do is to use AJAX to check if the webpage for an image file (http://..../theImage.jpg) exists. If I use IE, I can check the xhr.status (e.g. 200 or 400). But for Chrome, I got error: "because its MIME type ('image/png') is not executable." Any idea how to handle it? Thanks.
s yu
6-Dec-17 10:29am
View
Revised the code and the problem was gone. Thanks.
s yu
13-Oct-17 15:00pm
View
It is System.Windows.Forms Application in FW 4.0. Thanks.
s yu
29-Sep-17 14:59pm
View
You are right. Using
this.tabControlMain.Controls.Add(this.tpViewData);
and / or
this.tabControlMain.Controls.Remove(this.tpViewData);
Thanks.
s yu
29-Sep-17 14:54pm
View
Solved by
listViewID.View = System.Windows.Forms.View.SmallIcon;
Thanks for your review.
s yu
29-Sep-17 13:54pm
View
Griff: Thanks for your response. Using your code, the tab.Enable does show false in debugging. However, if I click the tab, the tab's container still displays. Is it possible to avoid this event happen (namely not display the tab is disabled)?
Then, I tried to do this:
if (tpViewData.Enable == false)
tpMain.Focus();
But it still displays tpViewData rather than the tpMain. Do you have any idea how to solve this problem? Thanks.
s yu
26-Sep-17 11:02am
View
Solved per your solution. Thanks.
s yu
22-Sep-17 8:18am
View
Though searching around, finally from http://go.microsoft.com/fwlink/?LinkID=229324 to install the SL 5 for Developers Runtime. Installation Successful! Then, the project is loaded. Thanks for your review.
s yu
21-Sep-17 14:27pm
View
Thanks for your response. I updated and added the code.
s yu
10-Aug-17 7:06am
View
You are right. Actually, there are multiple schemes in the DB. Thanks.
s yu
26-May-17 14:20pm
View
Solved using the code below:
for (int j = 0; j < row.Cells.Count; j++) {
if (j < 2 || !IsEditableField(row.Cells[0].Value.ToString())) {
row.Cells[j].ReadOnly = true;
row.Cells[j].ToolTipText = "Not Editable";
} else
row.Cells[j].ReadOnly = false;
}
Thanks for your feedback.
s yu
24-May-17 14:09pm
View
Thanks.
s yu
24-May-17 12:54pm
View
Thanks for your answer. My problem is actually the previously opened and then hidden (by Hide()) main form can't be open again. In the 2nd form: frmViewData, I typed the main form's name: uxMain. But I could not find any related method to do so. To re-open it in which the previous settings are still there, I have to click the tool icon.
s yu
9-May-17 7:20am
View
Thank. But need to do like that one below:
SET CREATED_DATE='8-MAY-2017 9:17:07 AM'
s yu
9-May-17 7:00am
View
Deleted
Got ORA-01843: not a valid month. Any new hint? Thanks.
s yu
9-May-17 7:00am
View
Deleted
Got ORA-01843: not a valid month. Any new hint? Thanks.
s yu
9-Dec-16 10:55am
View
Thanks for your response. It works well. Thanks.
s yu
30-Nov-16 7:09am
View
GREAT! Thanks.
s yu
17-Nov-16 13:30pm
View
Richard: Thanks for your response. I could not get the result as you posted, which could be related something I don't know. However, I do believe you code works well in general. I have adopted another approach by-pass the problem. Thanks again.
s yu
16-Nov-16 15:37pm
View
I tested
Response.Redirect("index.html?val1=123456");
in the index.html JS, the location value = "http://.../index.html?val1="
Did you see the loss of the value? I understand that it has nothing to do w/ the code. But I don't know how to set IIS properties and not to filter out the value. Do you have any idea on it? Thanks.
s yu
11-Oct-16 13:04pm
View
No effect if change async: false from true.
s yu
11-Oct-16 11:34am
View
Yes for 'Without'. Sorry for my miss-typing. Thanks
s yu
3-Oct-16 13:24pm
View
I have decided to adopt another approach to process the data. Thanks.
s yu
30-Sep-16 6:54am
View
David: Thank you VERY much for your response, esp. the source in 2). I tried the json2sharp for the json string (see below), which is generagted from
string json = JsonConvert.SerializeObject(stream, Formatting.Indented);
But I got the message below:
"Parsing your JSON didn't work. Please make sure it's valid. Already did that? Please let me know so I can fix it."
I should explain something additional here. In my JavaScript code, I create an Array, and then push 4 arrays (different structure) into this one. Then the composited array is POSTed through AJAX. In my .ashx, I got the json string.
In my case, I need to further deserialize an object, which contains 4 objects, into sub-objects if the sub-object is {object[]} rather than {object:string}. Do you hav any idea how to deal w/ this case? Thanks again.
// json string
"[[\"C04R032\",\"OB-C-3J\",\"C04\",\"TRACKWAY\",\"PRIVATE\",\"BRASS DISK\",38.900749999999995,-77.05172999999999],[\"75+82.00\",\"OUTBOUND\",\"\",\"\",\"SCS\"],[[\"6512\",\"IN INVERT\"],[\"15977\",\"null\"]],[[\"\",\"\",\"METRO\",\"5/28/1905\",\"SET\",\"388713.741\",\"785235.645\",\"\",\"\",\"\"],[\"\",\"ADJUSTED\",\"NAD27MD\",\"5/28/1905\",\"SET\",\"388691.5843\",\"785190.8866\",\"\",\"\",\"\"],[\"\",\"PGIS\",\"NAD83MD1991\",\"\",\"RECNORECORD\",\"449439.865\",\"1297611.009\",\"\",\"\",\"\"],[\"\",\"PGIS\",\"LDPNSRS2007\",\"\",\"RECNORECORD\",\"174553.7598\",\"194763.7164\",\"\",\"\",\"\"]]]"
s yu
29-Sep-16 11:00am
View
Great! Thanks.
s yu
29-Sep-16 11:00am
View
Great! Thanks.
s yu
29-Sep-16 10:19am
View
I did successfully for 2-level ( Level 1: object{object[]}, Level 2: object{string} object array from string (variable name: stream, see above). Now I need to do it on 3-level one. I need to deseriliaze the Level 1: object{object[]} into Level 2: object{object[]}. Then I should be able to further deseriliaze Level 2: object{object[]} to Level 3 object{string}. I got stuck on deseriliazing object{object[]} into another Level object{object[]}. Thanks for your review.
s yu
28-Sep-16 14:15pm
View
Wonderful! The runtime error was gone w/ your code. Thanks again.
s yu
17-Aug-16 12:23pm
View
Wonderful! Works perfectly. Thanks.
s yu
12-Aug-16 12:34pm
View
Excellent!!! I tested your code and merged into my application. It works well. Thanks SO MUCH!!!
s yu
11-Aug-16 10:00am
View
Mr. Garth: Your code works find for creating hyperlinks. However, I got another problem: all of the contents in the the source PDF are gone.
My purpose it to write something on an existing PDF template. Below is part of my code:
PdfReader reader1 = new PdfReader(startFile);
using (FileStream fs = new FileStream(markedFile, FileMode.Create, FileAccess.Write, FileShare.None)) {
using (PdfStamper stamper = new PdfStamper(reader1, fs)) {
...
PdfContentByte cb = stamper.GetUnderContent(i);
...
}
}
Whilst in yours:
PdfContentByte cb = writer.DirectContent;
Could you provide your advisory how to stemp the hyperlink on an existing PDF? Thanks.
s yu
11-Aug-16 9:10am
View
WONDERFUL!!! Thank you so much!
s yu
10-Aug-16 15:50pm
View
Garth: Thank so much for your code. I tried both of the options, but the generated target PDF can't be opened. The Adobe Reader's error message is: 'There was an error opening this document. This file is damaged and could not be repaired.' Could you provide additional advisory? Thanks.
s yu
9-Aug-16 13:41pm
View
Deleted
Garth: Thank so much for your code. I tried both of the options, but the generated target PDF can't be opened. The Adobe Reader's error message is: 'There was an error opening this document. This file is damaged and could not be repaired.' Could you provide additional advisory? Thanks.
s yu
8-Aug-16 13:42pm
View
Garth: Thanks for your comment. I updated my Q w/ 2nd part which contains a new piece of code. Could you review it and see if you can provide your advisory? Thanks.
s yu
4-Aug-16 12:39pm
View
Tried but got compiling error at
table.AddCell(annotation);
where annotaion is an PdfAnnotation. Any new hint? Thanks.
s yu
25-Jul-16 7:46am
View
My problem got solved. In my original code, there is a line of code:
stamper.Close();
After I commented it out. The System.NullReferenceException error was gone. Thanks for your reviewing.
s yu
19-Jul-16 6:47am
View
Prob. solved by adding
ActiveSheet.ScrollArea = "A1:H19"
into the VBA. Thanks a lot.
s yu
18-Jul-16 15:53pm
View
Thanks for your response. Following yours, I clicked Ctr+End, it points to Cell (30, J). Then I deleted all after (19, H), which is my active used range, the Ctr+End still points (30 ,J). Any additional hint? Thanks.
s yu
18-Jul-16 8:06am
View
Solved by
void setHTMLControlStyle (System.Web.UI.HtmlControls.HtmlTableRow control, string sStyle) {
control.Attributes.Add("style", sStyle);
}
Thanks for your review and response.
s yu
15-Jul-16 11:14am
View
The runat="server" does exist in the html. I have no problem to access to the HTML controls in code-behind. What I need is to have a general method to re-set the style of the HTML controls, in which it is needed to have general type for the HTML controls. Thanks anyway.
s yu
15-Jul-16 10:05am
View
In Code-Behind, the HtmlButton type is not recognized. Thanks.
s yu
15-Jul-16 8:37am
View
KB: Thanks for your response. My code for the HTML controls is similar to yours. For asp:Button, I can access to the button like void setButtonStyle(Button btn). But for HTML button, what is the type for the HTML button?
s yu
13-Jul-16 15:33pm
View
Tried but still got the same error.
s yu
13-Jul-16 14:11pm
View
Sorry, your works. The problem is that in my original, the s is TOO long. In my original the s is the result of the browser info, too long. I guess the alert has a limit on the message.
s yu
13-Jul-16 14:08pm
View
string s = "xxxxxx";
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('" + s + "');", true);
s yu
13-Jul-16 14:03pm
View
Actually I also tried to have a single quote for the string like yours. But it does not work.
s yu
13-Jul-16 13:59pm
View
Yours works fine. However, how can a variable is included? I tried:
string s = "xxxxxxxxxxxx");
ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alert", "alert(" + s + ");", true);
then it does not work.
s yu
13-Jul-16 13:53pm
View
TS: Thanks for your response. I revised my Q, and added 3nd one. Could you provide your hint for it? My 2nd one is essentially the same as yours and it works fine. Thanks.
s yu
6-Jul-16 11:16am
View
Tried 2 ways:
1) <div id='tbl_RecList' class='styleTable3' >
2) function preventDraggable(e) {
var v = document.getElementById('creatPDF_div');
v.draggable = false;
}
But when I click the scrollbar, the whole div is still draggable with my mouse move. Could you provide additional advisory? Thanks.
s yu
6-Jul-16 11:13am
View
AAZ: Thanks for your advisory. Your code works partially. In this table, the header row contains 3 cells. I revised your code a little bit,
row.style.position = "absolute";
Then, it works. Thanks again.
s yu
1-Jul-16 9:55am
View
In my project,
1) Click btn_Query to call a client javascript first.
2) In the javascript, it calls the code-behind event
document.getElementById('<%=btnQuery.ClientID%>').click();
3) In the code-behind: btnQuery_Click(object sender, EventArgs e), there is the code: Page.ClientScript.RegisterStartupScript()
I guess that it may not allow me to run javascript again.
s yu
1-Jul-16 9:33am
View
Tested w/ and w/ javascript: before myFunction. The error message is identical.
s yu
1-Jul-16 9:28am
View
Here xxx = myFunction
s yu
20-Jun-16 13:44pm
View
Using an alternative approach, now I can pass the session value to another page. The description is below:
1) In 1st aspx, create a hidden variable.
2) In the 1st aspx, set a session variable's value;
3) In a button click event (in JavaScript), Set the hidden variable = session variable's value.
4) After 3), fire document.getElementById('<%=Button2.ClientID%>').click();
5) In the code-behind: Button2_Click(object sender, EventArgs e) {
Session["monument"] = HiddenField.Value;
Response.Redirect("2.aspx");
}
6) When 2.aspx is open, the Session["monument"]'s value can then be retrieved.
Thanks for your review and response.
s yu
20-Jun-16 12:30pm
View
Before I click the HTML button to re-direct to the aspx, I retrieve the value by Session.get("monument") in the Immediate Window. It does display exactly the array values. Then, the Page_Load() of the aspx, Session["monument"] is null. Any additional advisory to figure out the reason? Thanks.
s yu
17-Jun-16 15:05pm
View
I have found an alternative way to generate PDF to avoid the error occurred. Thanks for your review.
s yu
17-Jun-16 10:20am
View
Since the file can't be opened, how can its values be obtained?
s yu
17-Jun-16 6:55am
View
Ryan: The error message shows the file not found. The file is a downloaded Federal Form W-9 from IRS, a sample PDF. Thanks.
s yu
16-Jun-16 11:33am
View
Thanks. If the Virtual Directory is not on my local IIS, how to do it?
s yu
16-Jun-16 10:28am
View
You are right. I believe that the namespace I imported is the problem. The namespace for this source code is pointed to itextsharp V4.1.6. I have sent a message to the author and hopefully I can get a response from him. Thanks a lot.
s yu
16-Jun-16 9:23am
View
Yes for the squiggley red lines. Through Object Browser, can't find the missing components.
s yu
16-Jun-16 9:05am
View
I loaded the code from the original (including: using iTextSharp.text.pdf; on the top). Could you provide additional advisory if you can? Thanks.
s yu
16-Jun-16 7:27am
View
Dave: I followed the procedure step by step. I did load the itextsharp.dll as one of the reference. The iTextSharp version from the source code is 4.1.6. I checked itextsharp on Object Browser, but could not find the 3 members (PDFCheckBoxFieldType, PDFFieldType.GetPDFFieldType, PDFHelper.GetExportValue) in the program.
s yu
25-May-16 8:45am
View
I have revised my code and the problem was gone. Thanks for your review.
s yu
29-Apr-16 14:14pm
View
You are right. I added sourceDoc1.Visible = true; then the problem is solved. Thanks.
s yu
29-Apr-16 13:39pm
View
RD: Thanks for your response. I tried but the results are the same. I also tried
sourceDoc1.Attributes.CssStyle.Value = "display:block";
and
sourceDoc1.Attributes.CssStyle.Value = "display:block; visibility:visible";
the results are the same even though its value is correct though the debugging.
Don't know why. Thanks anyway.
s yu
29-Apr-16 10:43am
View
SA: Thanks for your solution. I did work per your advisory - published the files in the shared folder in a website. Its url looks like 'http://xxxxx/fileName.png' and the image displays well if it is put on the browser directly. As stated in my post, I got network error (XMLHttpRequest: Network Error 0x80070005, Access is denied) on the line: http.send(); and the http.status is always 0. I will check my server. Thanks again.
s yu
26-Apr-16 14:07pm
View
Thanks. I guess I should publish the files in the shared folder as a service.
s yu
26-Apr-16 13:41pm
View
SA: Thanks for your response. For the 4 '/', I did refer to somewhere. After I changed to 'file://...', I got Access is denied error. The folder is a shared folder. I don't know how to 'use relative path' in this case. Any additional advisory? Thanks again.
s yu
24-Mar-16 15:43pm
View
After changing the HTML controls to asp:controls + revising the code somehow, the problem reported was gone. Thanks for your reviewing.
s yu
24-Mar-16 11:40am
View
Too many lines of code and also related to multiple server connection issues. Therefore, it is hard to post the code here. I want to get some general idea how to fix it. Thanks if you can provide some hints.
s yu
24-Mar-16 7:19am
View
Thanks for your advisory. You are right. The problem was due to the bugs in my JavaScript.
s yu
24-Mar-16 7:19am
View
Thanks for your advisory. You are right. The problem was due to the bugs in my JavaScript.
s yu
24-Mar-16 7:18am
View
Thanks for your advisory that is very helpful.
s yu
4-Mar-16 15:04pm
View
Thanks for you to detect my low-lever and stupid mistake.
s yu
4-Mar-16 14:31pm
View
See the discussion below - the app is for an outlook email. Thanks.
s yu
4-Mar-16 14:30pm
View
Ryan: Thanks for your explanation. Since the email body in my project will be small, I will use 1 single line.
s yu
4-Mar-16 13:29pm
View
Tested w/ <br/> like that: var s = '1st line <br/> 2nd line'. When loaded into Outlook, it shows 1st line <br/> 2nd line.
Mt email body is pure text format. Thanks.
s yu
4-Mar-16 12:10pm
View
Ryan: Thanks for your response. Actually, it is for an email's body rather than a web page. In .Net I can use System.Environment.NewLine. But I don't know how in JS. Any additional hint? Thanks.
s yu
4-Mar-16 11:42am
View
Please re-post your answer since a part of it looks to be filtered out. Thanks.
s yu
4-Mar-16 10:47am
View
Also used .innerHTML but the document.getElementById('<%=myLabelID.ClientID%>') is null (also as you pointed out). In the .aspx.cs, the myLabel.Text does have a return value. Don't know why this control is null in JS. Thanks.
s yu
2-Mar-16 14:18pm
View
MK: Thanks for your response. I revised my code (see my updated one in my post) per your advisory. It does trigger the event.
In this code, if I click the link directly, Outlook pops out. However, I could not get my expected result after I click the button that will trigger the jQuery function. Do you know what's wrong in my code? Thanks again.
s yu
1-Mar-16 14:05pm
View
DK: Thanks for your advisory. Then, I did the following:
1) Got the sample code from http://www.codeproject.com/Articles/38750/A-Simple-But-Effective-Way-to-Send-an-Email-using.
2) Configged IIS7.5's SMTP email by referring to the procedure in https://technet.microsoft.com/en-us/library/cc772058(v=ws.10).aspx. In the configuration, I did: a) entered my email as the E-mail Address, b)entered localhost as the SMTP Server, c) checked on Use localhost, and d) Used Not required for Authentication Settings.
However, when I debugged the code, I got
System.Net.Mail.SmtpException: {"Failure sending mail."}
InnerException: {"Unable to connect to the remote server"}
Could you provide your additional advisory? Thanks again.
s yu
5-Feb-16 14:49pm
View
Thanks for all of you who responded my thread. I have 2 versions (distinguished here in A & B) of the project with identical codes, but they are built differently somehow. In Version A, the files in the \bin\ contain only about 1 dozen of dlls; whilst in Version B, the \bin\ folder contains significantly more files, including project.dll, project.pdb, etc. which are not in Version A. I did such a test: copy Version B's files in the \bin\ into Version A's \bin\. Then Version A works well. The oracle-related problem is gone. Actually, Verion A project was copied from Version B. T compared both project's properties and they are identical also. I could not figure out why Version A compiled differently from B's.
s yu
28-Jan-16 15:00pm
View
Problem solved by using the code from http://www.aspdotnet-suresh.com/2015/02/jquery-upload-images-files-without-page-refresh-postaback-in-aspnet.html. Thanks.
s yu
13-Jan-16 6:46am
View
JK and Ryan: Thanks to both of you for your responses. In my project, I need to upload some files into a shared folder in server using FileLoad in an aspx file. This is my JS version to check if the file exists. Since it is security-sensitive, I might to consider something alternative. Thanks again.
s yu
12-Jan-16 11:25am
View
F-ES: Thanks for your response. Could you explain more since I could not follow well. What is wrong in my app? In my 2nd page (a html file), why I could not retrieve the session variable created in the .aspx.cs? In the Html page, if I click on a button, how can this page be refreshed? Thanks.
s yu
12-Jan-16 10:55am
View
I guess the problem is caused by the page itself. This page exists some crashing issues. I work on another age, and there is no such a problem. This thread can be closed. Thanks.
s yu
12-Jan-16 10:47am
View
Used an aspx.cs file. Added explicitly, System.Web.SessionState.IRequiresSessionState , but not working. Something stranger.
s yu
12-Jan-16 10:35am
View
Commented out the httpModules but the error still exists.
s yu
12-Jan-16 10:34am
View
Asp.net.
s yu
12-Jan-16 10:31am
View
No @Page Directive is defined. In my other projects, in which Session variables work fine, there are also no @Page Directive.
s yu
12-Jan-16 9:38am
View
You are right. Thanks.
s yu
8-Jan-16 13:02pm
View
SA: Thanks. Please help to delete the ones you consider as duplicates if you can. So far, I have not got the answer yet.
s yu
8-Jan-16 12:52pm
View
In another posted thread, the Q is somehow different. Welcome your comment. You might put it as a Comment rather than as the Answer. Thanks.
s yu
8-Jan-16 10:23am
View
Through IIS Manager, I r-clicked the phpinfo.php > Browser, got 'No input file specified'. In Fiddler2, the result is 404.
s yu
8-Jan-16 10:20am
View
Checked over and tried again. Still got 404 through Fiddle2. Any advisory? Thanks.
s yu
8-Jan-16 8:09am
View
AAZ: Thanks for your advisory.
1) Could you detail how to Remove the PHP components? Do you mean remove them from my IIS?
2) After I revised the permission w/ 'Write', I got system error: "The program can't start because the fbclient.dll is missing from your computer. Try reinstalling the program to fix this problem" When I used command prompt C:\php>php -info . Then I - Download fbclient.dll from http://sourceforge.net/projects/firebird/files/firebird-win64/
Firebird-2.5.5.26952_0_x64.exe (my OS is 64-bit OS) and run the setup. The problem still exists.
Any additional advisory? Thanks.
s yu
7-Jan-16 15:39pm
View
AAZ: Thanks. Added Write permission. Some info returns. But also got a System Error: The program can't start because the fbclient.dll is missing from your computer. Try reinstalling the program to fix this problem.
s yu
7-Jan-16 11:58am
View
SA: Thanks for your response. Let me try to explain the scenario again and see you you can help.
I created a text document, and save it as c:\inetpub\wwwroot\phpinfo.php. Its content is
?php phpinfo(); ?
w/ enclosed by '< >'
Then I typed http://localhost/phpinfo.php on my browser, but got No input file specified, or (HTTP/1.0 404).
I also tried through my IIS Manager. In my IIS Default Web Site's Content View, I can see phpinfo.php there. Then I right-click the file > Browse. I got the message: "No input file specified."
s yu
7-Jan-16 10:10am
View
I did the following to
1) Open Control Panels
2) Click Programs and Features to open the Wizard.
3) Click the button on the left panel to open the Windows Features wizard.
4) Expand IIS > WWW Services > Application Development Features.
5) Check on CGI.
6) Click OK to dismiss the Wizard.
Then in my IIS Manage, the FastCgiModule item is in the Module Menu of the Add Module Mapping Wizard.
Problem solved. Thanks for your review and response.
s yu
7-Jan-16 6:39am
View
You are right. I did follow the procedure before I posted the thread. But in my Server Manager, there is no Roles > Add Role Services. I have to check w/ our admin to enable this function. Thanks.
s yu
15-Dec-15 15:07pm
View
Ranger: Thanks for your response. See my update content w/ related codes.
s yu
15-Dec-15 9:53am
View
Can't add an image in the thread since it does not provide the capability.
s yu
15-Dec-15 8:37am
View
Ranger: Thanks for your response. I should present my problem in another way and see if you can help.
Below is the code for the headbar on my page. When I reduce the page width through mouse, the images in the <div class="headImgButtons"> will be on the top of <div class="headerTitle">. What I want to do is to make the headbar (or the page) with a min. width to avoid the overlaying problem. Please have your advisory how to do it if you can. Thanks.
<div class="appHeader">
<div class="headerLogo">
<img alt="logo" src="images/wmata.png" height="50" />
</div>
<div class="headerTitle">
<span id="headerTitleSpan">
Washington Metro Monument Map Viewer
</span>
<div id="subHeaderTitleSpan" class="subHeaderTitle">
by WMATA GIS
</div>
</div>
<div class="headImgButtons">
...
</div>
</div>
s yu
14-Dec-15 14:27pm
View
Problem solved by referring to https://msdn.microsoft.com/en-us/library/bb552364%28v=vs.110%29.aspx. The procedure is below:
1) In WCF Test Client, from Tools->Options->Client Configuration tab, check-offAlways Regenerate Config When Launching Services option.
2) Edit the configuration through the WCF test Client.
3) Save it.
Thanks for your review.
s yu
14-Dec-15 14:27pm
View
Problem solved by referring to https://msdn.microsoft.com/en-us/library/bb552364%28v=vs.110%29.aspx. The procedure is below:
1) In WCF Test Client, from Tools->Options->Client Configuration tab, check-offAlways Regenerate Config When Launching Services option.
2) Edit the configuration through the WCF test Client.
3) Save it.
Thanks for your review.
s yu
14-Dec-15 11:41am
View
RD: The posted config could not display well. But its content is in my ori. post. I did set the max. message size to a very high value. However, when I re-run the WCF Test Client, it turn back to the default low size values. Any new hint? Thanks.
s yu
14-Dec-15 11:38am
View
My web.config likes that. But in WCF Test Client, it still display the default size values.
<system.servicemodel>
<bindings>
<basichttpbinding>
<binding name="BasicHttpBinding_ITransInfo" maxbufferpoolsize="2147483647"
="" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647">
<binding name="BasicHttpBinding_ITransInfoJson" maxbufferpoolsize="2147483647"
="" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647">
<client>
<endpoint address="http://gispro.wmata.com/WSMonument/TransInfo.svc.svc" binding="basicHttpBinding"
="" bindingconfiguration="BasicHttpBinding_ITransInfo" contract="ITransInfo" name="BasicHttpBinding_ITransInfo">
<endpoint address="http://gispro.wmata.com/WSMonument/TransInfo.svc.svc" binding="basicHttpBinding"
="" bindingconfiguration="BasicHttpBinding_ITransInfoJson" contract="ITransInfoJson" name="BasicHttpBinding_ITransInfoJson">
<!-- Copied from WCF Client Test Editor -->
<behaviors>
<servicebehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<servicemetadata httpgetenabled="true">
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<servicedebug includeexceptiondetailinfaults="false">
<servicehostingenvironment multiplesitebindingsenabled="true">
s yu
14-Dec-15 11:36am
View
RD; Still can't understand how. Could you provide a step-by-step procedure?
By the way, I did update my web.config (only the system.serviceModel block like that below, but it does not work (see my post).
RD; Still can't understand how. Could you provide a step-by-step procedure? Thanks.
s yu
14-Dec-15 11:35am
View
Deleted
By the way, I did update my web.config (only the system.serviceModel block like that below, but it does not work.
<system.servicemodel>
<!-- 12/14/2015 Copied from WCF Client Test Editor -->
<bindings>
<basichttpbinding>
<binding name="BasicHttpBinding_ITransInfo" maxbufferpoolsize="2147483647"
="" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647">
<binding name="BasicHttpBinding_ITransInfoJson" maxbufferpoolsize="2147483647"
="" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647">
<client>
<endpoint address="http://gispro.wmata.com/WSMonument/TransInfo.svc.svc" binding="basicHttpBinding"
="" bindingconfiguration="BasicHttpBinding_ITransInfo" contract="ITransInfo" name="BasicHttpBinding_ITransInfo">
<endpoint address="http://gispro.wmata.com/WSMonument/TransInfo.svc.svc" binding="basicHttpBinding"
="" bindingconfiguration="BasicHttpBinding_ITransInfoJson" contract="ITransInfoJson" name="BasicHttpBinding_ITransInfoJson">
<!-- Copied from WCF Client Test Editor -->
<behaviors>
<servicebehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<servicemetadata httpgetenabled="true">
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<servicedebug includeexceptiondetailinfaults="false">
<servicehostingenvironment multiplesitebindingsenabled="true">
s yu
14-Dec-15 11:33am
View
Deleted
RD; Still can't understand how. Could you provide a step-by-step procedure? Thanks.
s yu
14-Dec-15 11:22am
View
RD: Thanks for your response. In my WCF project, there is no app.config, but there is only the web.config. in my project \bin\, there is no config file. Any new hint? Thank again.
s yu
14-Dec-15 9:07am
View
No. how to do it? Please provide your advisory. Thanks.
s yu
14-Dec-15 8:19am
View
Deleted
Problem solved, by also setting
<binding name="BasicHttpBinding_ITransInfoJson" maxbufferpoolsize="2147483647"
="" maxbuffersize="2147483647" maxreceivedmessagesize="2147483647">
Thanks for your review.
s yu
9-Dec-15 10:34am
View
I reloaded my backup and then changed the path. It works now. I would guess that the project got crashed. Actually, nothing was wrong in the path issue. This report can be closed. Thanks.
s yu
8-Dec-15 8:37am
View
SH: Thanks for your response. I downloaded the source code and tried. It works well in general. However, I am still not clear how it can be used in my app. I got the several problems as listed below. Hopefully, you can provide me additional hints/advisories:
1) The file is saved into my C:\users\...\downloads. How to revise the path to the desired destination folder? I reviewed the FileSave.js, but could not figure out where the path can be defined.
2) This tool runs well on FireFox and Chrome but not on IE9. When I run it on IE9, I received 'IE restricted this website from running scripts on ActiveX controls.' After I clicked 'Allow blocked content', and then clicked the save button, the file could not found in the c:\users\...\Downloads\ folder.
3) The file I am going to save is 'pdf' format. I guess the 'pdf' files should also be able to saved, right?
Thanks again.
s yu
4-Dec-15 10:34am
View
SH: Thanks for your response, which is identical in content as the README of https://github.com/eligrey/FileSaver.js[^]. However, no matter how I did, I can only save the shortcut rather than the file (in pdf). Could you provide your solution more clearly? Thanks again.
s yu
30-Nov-15 12:29pm
View
Thanks for the solution you and RayanDev provided.
s yu
30-Nov-15 11:33am
View
Deleted
Thanks for your advisory. Actually, I did not change anything on browser behavior. In my code, pressing a 'TAB' or 'RETURN' on textbox is to fire an event to validate the value in the textbox. I am not clear how the e.preventDefault() is used in my application. Appreciate if you can provide your additional advisory.
s yu
20-Nov-15 13:50pm
View
Got answeer from http://stackoverflow.com/questions/19589053/how-to-open-specific-tab-of-bootstrap-nav-tabs-on-click-of-a-particuler-link-usi. Thanks for your review. The related code is shown below:
function btn1_Click() {
debugger;
$(document).ready(function () {
activaTab('orange');
});
function activaTab(tab) {
$('.nav-tabs a[href="#' + tab + '"]').tab('show');
};
s yu
10-Nov-15 13:08pm
View
Prob. solved already. However, I will credit your response as 'Accept Solution'. Thanks.
s yu
5-Nov-15 15:32pm
View
Eventually, I found the problem. It was due to the .js I downloaded from website. In general, I could not revise it at all. Based on my observations, I added an extra but empty 'div' block as the last 'div' block, the problem to set a control's property in the last but one 'div' block' was gone. Thanks for the 2 solution posts. I could only credit one of them. Since SA responded first, I would make the credit to him. Thanks again.
s yu
4-Nov-15 9:09am
View
SA: Your response is greatly appreciated. The code I posted is somehow for testing. I know some of them are not needed at all - they are just for testing. My problem is that the control's property does not change even though the debugging code shows it is changed. Another example is below:
A label's initial value is 'VVV'. After a click event, its value becomes 'AAAA' though debugging retrieving. However, on the page, the label still shows 'VVV', no change at all. If clicking the button to retrieve the label, its value is 'AAAA', which is different from the page displayed. I tried different browsers but got the same result. Do you observe this problem before? Thanks again.
s yu
3-Nov-15 13:27pm
View
My mistake on pasting. Should be v.disabled. I updated my original post. The problem still exists. I cleaned up the cache, but still unsolved.
s yu
3-Nov-15 10:37am
View
The solution is correct. Sorry for my careless.
s yu
15-Oct-15 15:06pm
View
Detected the error was actually caused by mistaken entered character in the .js. Thanks.
s yu
8-Oct-15 9:04am
View
JS code , not ASP.Net code-behind.
s yu
7-Oct-15 13:36pm
View
Sorry for my mistake in posting, actually, there is the id (see updated code above). By the way, using a 'stupid' way, I can avoid this problem. The approach is described below:
1) Define the .css
.app1 {
/* background: url("../images/linen.jpg") repeat-x scroll left top transparent; */
height: 1000px;
width: 600px;
margin-left: 500px;
z-index: 999999 !important;
visibility: visible;
padding:50px; /* will leave the inner space*/
position: fixed; /*fixed irrespective of scroll bars*/
top: 100px; /* will display the 100px far from the top*/
left: 100%; /* will display 40% far from the left side */
}
where the left is 100%.
2) In the JS:
var v = document.getElementById('test_div');
v.style.left = '10%';
which bring the <block> to the desired place.
Thanks.
s yu
7-Oct-15 10:32am
View
Yes. It works. Thanks a lot.
s yu
7-Oct-15 10:30am
View
Deleted
Tried but not working. Same observation as before but the position of the block (initially) changes somehow. Any other hint? Thanks.
s yu
17-Sep-15 12:01pm
View
Wonderful! Thanks.
s yu
26-Aug-15 15:25pm
View
Wonderful. Please re-post yours into Solution, then I can credit your answer. Thanks.
s yu
26-Aug-15 14:17pm
View
SA: I have no problem to retrieve DataTable using ADO.Net. For a specific application, which blends both ASP.Net and JavaScript/HTML, an object w/ different attribute values is obtained from a JS function. Based on the values obtained, I need to retrieve the related values from some DataTables, and then post the results on a popup window. Now, I am considering creating session/hidden variable to hold the values from JS function. Then, create an event to retrieve the DataTables based on session variable. Thanks anyway.
s yu
17-Aug-15 12:16pm
View
Thanks for your response. However, I am not clear your meaning. E.g. how to read page source on client side? For #1, it moves to another control rather than still focus on the current control; for #2, it pops up error. Could you hint me how to 'Read page source on client side'? Thanks again.
s yu
17-Aug-15 9:47am
View
Now, I tried different browsers. If using IE and doing setup as the reference
http://www.codeproject.com/Articles/18921/Using-Visual-Studio-to-Debug-JavaScript-in-IE, debugging works. However, the debugging does not work if using Chrome or Firefox.
s yu
14-Aug-15 14:11pm
View
Tried but the function is still not called. I checked other ASP.Net projects, which used to work well in JS Debugging. But now none of them is working on JS debugging. Then, I restarted my CMU, and got a warning message: the api-ms-win-crt-runtime-l1-1-0.dll is missing. Is that caused the problem? I am not sure yet. I need to repair my CPU, and then see what happens. Thanks for your response.
s yu
13-Aug-15 15:20pm
View
If on debugging, the time is somehow longer, there is no problem. Thanks.
s yu
13-Aug-15 15:19pm
View
Got it. Will use JS. Thanks.
s yu
13-Aug-15 11:50am
View
Thanks. Will do the search.
s yu
12-Aug-15 14:51pm
View
I used Tortoise before and it worked fine. Now, I want to use it again but did not see the tool icon on VS2010.
s yu
7-Aug-15 16:58pm
View
The web.config is under the project, the top level file in the project.
In the IIS, the tree structure is Sites\Default Web Sites\My Proj Folder\My Proj. In the \Inetpub\wwwroot\My Proj Folder\My Proj\, the web.config is there. Thanks for your help.
s yu
7-Aug-15 13:43pm
View
Already tried w/ the same result. Stranger, your answer should be right.
s yu
7-Aug-15 13:26pm
View
I run the query in Oracle SQL developer. No union at all.
s yu
7-Aug-15 13:15pm
View
Got error using your query string: SQL Error: ORA-00933: SQL command not properly ended. I through yours should be right.
s yu
7-Aug-15 12:59pm
View
Deleted
Thanks a lot.
s yu
7-Aug-15 12:40pm
View
Ryan: Your comment makes sense. I changed back to ~/Site2.Master. The paths of both local debugging (good) and IIS deployed are below:
http://localhost:58765/ASPX/Editing/AddRecord.aspx - local debugging
http://localhost/JS_CMV/JS_Monument/ASPX/Editing/EditRecord.aspx - IIS deployed
Could you advise me how to config the path in IIS Manager? Or where is the literature I can refer to? Thanks.
s yu
7-Aug-15 11:53am
View
I changed to
MasterPageFile="../../Site2.Master"
which also works in my local debugging. However, once it is published, gets:
Parser Error Message: Could not load type 'JS_Monument.Site2'.
Wish you can provide additional advisory. Thanks.
s yu
7-Aug-15 11:25am
View
I did build the project and then copied to the folder. I tried again and still got error. It appears to be that the path (the '~' is filtered out) for the .Master page has the problem when the project is in IIS. Any idea? Thanks.
Parser Error Message: The file '/Site2.Master' does not exist.
Source Error:
Line 1: <%@ Page Language="C#" MasterPageFile="~/Site2.Master" AutoEventWireup="true" CodeBehind="AddRecord.aspx.cs" Inherits="JS_Monument.ASPX.Editing.AddRecord" %>
s yu
31-Jul-15 15:35pm
View
Dear Afzaal: Your reference is helpful. I have tried different scenarios. However, I could not figure out how. The problem still exists. Wish you can help more. Thanks.
s yu
31-Jul-15 15:07pm
View
Re-tested. Trouble on all of the 3 browsers.
s yu
31-Jul-15 15:02pm
View
.background_tlbr {
top:0;
background-repeat:no-repeat; overflow:hidden;
background-image:url(../Images_menu/mv_toolbar_admin.png);
}
s yu
31-Jul-15 15:00pm
View
Deleted
Just opposite - OK for IE and trouble for Chrome + Firefox.
s yu
8-Jul-15 9:50am
View
Added the line either before or after <html> tag, but the error still exists. I have another aspx file, which contains the same code and works well w/o adding the 'Import' line. The problem reported here is in a .html file. Then, I created a new .aspx file w/ the code in the previous .html file, the problem was gone. Thanks.
s yu
1-Jul-15 12:40pm
View
I tested the procedure below. It works now:
1) In VS 2010, set IE as Default browser.
2) In VS 2010, Ctrl-Alt + P to ope Attach to Process Wizard.
3) Highlight on iexplore.exe, and in Attach: select Script.
4) Start debugging.
s yu
27-May-15 13:45pm
View
Thru. research around and multiple tries, the prob. got solved. The solution is below:
spNewItem.Children.Add(BuildImageButton("/projectName;component/Images/myImage.png", h, w));
s yu
21-May-15 7:06am
View
That was why I commented rather than used it as a solution - see my explanation above.
s yu
20-May-15 15:34pm
View
Continue - See the output obtained:
"Jurisdiction Name": "Prince Georgeʹs County, MD"
Show More