15,887,350 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 DrgIonuţ (Top 56 by date)
DrgIonuţ
27-Jan-23 7:15am
View
The strange thing is that before adding the InfluxDB libraries, I had no problem. That's why I think those are causing the error. Thank you for the information you provided!
DrgIonuţ
27-Jan-23 6:26am
View
I have uselessly cleaned and rebuild the solution thousand times. It's insane to check each reference I have. What means the "StackTrace" from my error with all those "at"?
DrgIonuţ
27-Jan-23 5:00am
View
My guess is that the one or all references added to connect to InfluxDB (InfluxDB.Client; InfluxDB.Client.Api.Domain; InfluxDB.Client.Api.Service; InfluxDB.Client.Core;) might be related to .NET Standard 2.1. The problem is that if I remove one of the references, I won't be able to connect to database and have no idea what could it be replaced with. So what could I do?
DrgIonuţ
27-Jan-23 4:40am
View
Is there a list of references that depend on .NET Standard 2.1? I have many references added on my project, so it's like a lottery to guess which one(s) depends of .NET Standard 2.1.
DrgIonuţ
27-Jan-23 4:23am
View
I am using .NET Framework 4.6.1. If I delete the netstandard.dll, I get the same error after publishing my app. The code is build without any error.
DrgIonuţ
27-Jan-23 3:58am
View
Thanks for replying! According to the table from the link you provided, .NET Framework doesn't support .NET Standard 2.1. In this case what should I do to solve the error? If I remove the netstandar.dll from References, I get errors in my function. What should be this dll replaced with?
DrgIonuţ
27-Jan-23 3:55am
View
Thanks for replying! If I remove the netstandar.dll from References, I get errors in my function. What should be this dll replaced with?
DrgIonuţ
26-Jan-23 9:52am
View
I managed to solve it by repairing the *&$^*&$^&* Microsoft Edge. Thank you very much for your time and effort.
DrgIonuţ
26-Jan-23 9:21am
View
My app was running well before updating VS2019. I didn't understand what you meant by "update controls from another thread".
DrgIonuţ
26-Jan-23 8:16am
View
I have installed VS2022 17.4.4 but I have the same problem.
I deleted OBJ, BIN, and .VS folders, restarted VS and tried to run the app. But it doesn't start. I created a new project in VS 2019, 16.11.23 version, and I couldn't run it. It's happening the same thing.
DrgIonuţ
12-Oct-22 4:57am
View
Could you please offer me an answer regarding my question? I'm not interested at the moment about security. I want to be able to insert those data in DB when the button is clicked. Do you have any ideas about this issue?
DrgIonuţ
24-May-22 7:35am
View
Sorry for being so late with a reply! I don't want to convert XML to JSON. I want to generate the XML when the Save button is clicked. So far I managed to generate the XML file but its content is not correct. How could I generate the XML with a proper content?
DrgIonuţ
20-May-22 3:14am
View
It's a pity that codeproject doesn't let me to post a photo with the website's properties. But you can view it if access this link: https://ibb.co/mXDMxSr
DrgIonuţ
19-May-22 8:53am
View
Thanks! Now I get:
Available sites: 1
Available sites: 1
DrgIonuţ
19-May-22 8:41am
View
This line:
System.Diagnostics.Debug.WriteLine("Available sites: {0}", string.Join(", ", serverManager.Sites.Select(s => s.Id)));
is returning:
1: Available sites: {0}
1: Available sites: {0}
What should I understand from it?
DrgIonuţ
19-May-22 8:12am
View
The question is which site is available? DefaultSite or my site?
DrgIonuţ
19-May-22 7:43am
View
Running your code, I get: 1: Available sites: {0}
This means that I get only the DefaultSite which in my case has the ID = 1?
DrgIonuţ
19-May-22 3:13am
View
Thanks for replying, Richard! I have checked and the id of my website is 2. What else could I do?
DrgIonuţ
6-Feb-20 4:52am
View
I have put in SP: SET @Col = N'SELECT Tag1 FROM [TRTF_TagLogging].[dbo].[tbl_TagLogging]', but I get the error: "Must declare the scalar variable "@Col"."
If I declare it, it would be a conflict whit my parameter.
DrgIonuţ
6-Feb-20 4:39am
View
Thanks for your suggestion, OriginalGriff! I have to see how to use DataReader or DataAdapter. The user cannot type what he likes in @Col. I want just to display those values on my WinForm.
DrgIonuţ
19-Dec-19 9:30am
View
I have used exactly the code you provided above. When I press the button, no error message is displayed in console.
DrgIonuţ
19-Dec-19 9:21am
View
No error is displayed in my console.
DrgIonuţ
19-Dec-19 8:38am
View
With this code, the color doesn't change at all when button is clicked.
DrgIonuţ
21-Nov-19 4:16am
View
"Value" property doesn't exist. Thanks! :)
DrgIonuţ
21-Nov-19 3:02am
View
Thank you for your reply, CHill60!
My AddNewRow function now looks like:
private void AddNewRow(string strg, string strg1)
{
DataTable dtCurrentTable = (DataTable)ViewState["CurrentTable"];
DataRow drCurrentRow = null;
drCurrentRow = dtCurrentTable.NewRow();
drCurrentRow["Col1"] = strg;
drCurrentRow["Col2"] = strg1;
dtCurrentTable.Rows.Add(drCurrentRow);
ViewState["CurrentTable"] = dtCurrentTable;
GridView1.DataSource = dtCurrentTable;
GridView1.DataBind();
}
A new row is added, but the text doesn't appear. I also have tried to replace "strg" and "strg1" with "ab" and "cd", but the result is the same.
DrgIonuţ
20-Nov-19 9:01am
View
I did, but I was hopping to be something simple to change in my code.
DrgIonuţ
20-Nov-19 8:27am
View
To see what? Nothing seems to be wrong.
DrgIonuţ
20-Nov-19 8:16am
View
I don't want to overwrite the previous row. This is why I put the question. Something has to be changed in my code in order to don't overwrite, but I don't know what...
DrgIonuţ
20-Nov-19 8:06am
View
Ok. But a new row is added with the text from button 2. The problem is that row 1 is updated with the message from row 2.
DrgIonuţ
20-Nov-19 8:03am
View
If I comment "dtCurrentTable.Rows[i - 1]["Col1"] = TextBoxName.Text;
dtCurrentTable.Rows[i -1]["Col2"] = TextBoxAge.Text;", no text is displayed. What should I do?
DrgIonuţ
11-Jan-19 3:06am
View
Thank you for your response, but my problem is that I don't understand why I can't see the result of stored procedure in C#. If I use a normal select query, I can see the table's columns in DataSet. But when I use select in the @sql string and execute it with "EXEC sp_executesql @sql", I don't get any column in DataSet.
DrgIonuţ
11-Jan-19 3:06am
View
Thank you for your response, but my problem is that I don't understand why I can't see the result of stored procedure in C#. If I use a normal select query, I can see the table's columns in DataSet. But when I use select in the @sql string and execute it with "EXEC sp_executesql @sql", I don't get any column in DataSet.
DrgIonuţ
10-Jan-19 8:18am
View
What do you mean by "set the columns up manually"?
DrgIonuţ
21-Dec-18 4:49am
View
I solved it. It works fine now. Thanks again for you time and effort! Have a nice day! :)
DrgIonuţ
21-Dec-18 2:39am
View
I execute it like this:
execute [PS_SpauOPompa] '2018-12-12 10:10:10.997', '2018-12-14 14:50:20.680', 4
If execute like this, I get this error: "Maximum stored procedure, function, trigger, or view nesting level exceeded (limit 32)." Many thanks for your efforts! :)
DrgIonuţ
20-Dec-18 12:20pm
View
Thank you for your reply! Using one table instead of 40 is not a solution for my application. I have changed the @sql string as you mentioned. Also, I have replaced the sp_sqlexec with sp_executesql , but the error still occurs. Did I declare the @sql string at the right position? Or it's a problem with the way I execute the procedure/@sql?
DrgIonuţ
20-Dec-18 7:16am
View
I moved the END after the EXEC, but nothing changed. As I mentioned, I have 40 tables (TblSPAU1...TblSPAU40) which contains the columns mentioned above. DateTime is declared in DB as datetime. And who's SPAU_TYPE in your above code? Thanks for your reply!
DrgIonuţ
23-May-16 4:43am
View
So I set on the div:
<div id="myDiv" style="width:100%; background-color:red" runat="server">
And on server side how could I get the value of div's width?
DrgIonuţ
23-May-16 4:37am
View
Yes. I want to pass the value of dv without pressing the button.
DrgIonuţ
23-May-16 4:35am
View
Deleted
Yes. I want to pass the value of dv without pressing the button.
DrgIonuţ
23-May-16 4:31am
View
So. I have this:
var dv = document.getElementById('myDiv').style.width;
document.getElementById('<%= HiddenField1.ClientID %>').value = dv;
<asp:HiddenField ID="HiddenField1" runat="server" Value="???"/>
On ther server side I have:
string myHiddenValue1 = this.HiddenField1.Value;
Response.Write(myHiddenValue1);
What I'm doing wrong here?
DrgIonuţ
23-May-16 4:19am
View
What I tried is:
var dv= document.getElementById('<%= HiddenField1.ClientID %>');
and div is:
<div id="myDiv" style="width:100%; background-color:red">
For the second option is no longer needed HiddenField?
DrgIonuţ
23-May-16 4:11am
View
It works! My question is next: is there any way to place instead of Value="some stuff" let's say for example the width of a div? I store the div's width in a var called dv. How could I pass the dv's value? I tried Value= dv, but what I get is "dv", not the actual value of dv. Thanks in advance!
DrgIonuţ
7-Apr-16 6:44am
View
I added another label to see if it's visible in Root.master.cs. No success. But if have an aspx page, on aspx.cs I can see what's on the aspx page.
DrgIonuţ
7-Apr-16 6:27am
View
Curious thing is that Label8 it's not recognized on Root.master.cs. Any thoughts why this happens?
DrgIonuţ
7-Apr-16 6:09am
View
Actually it is shown on the page. I click on it and I'm redirected on the login page and from there to Default.aspx. When Default.aspx open I don't want the label's text to be "Log in", but the username.
DrgIonuţ
7-Apr-16 5:51am
View
Isn't there any way to add a sort of reference so I have access to that label?
DrgIonuţ
7-Apr-16 5:42am
View
This is what I wanna find out. As I see the structure of the project, it seems like is no relation. I want to change the label's text which is Root.master. But the page (Default.aspx) is in Content -> MainContent which is part of Main.master. I hope I'm not mistaken. I'm sorry but I just started to work with master pages so that's why I'm confused and don't know how to do it. Thanks for your patience!
DrgIonuţ
8-Jun-15 10:59am
View
Many thanks for this example. I will try as soon as possible it to see if instead of buttons I could use a rectangle. If any problem occurs I'll let you know. Hope to don't bother you. Regards, Ionut!
DrgIonuţ
7-Jun-15 17:48pm
View
Thanks for your reply, Ralf. Well I tried to understand what you said, but I'm new in C# and I don't know how to exactly do this. Do you have an example of what you explained to me? Many thanks in advance! Regards, Ionut!
DrgIonuţ
7-Jun-15 3:06am
View
Now you can see how it looks like (see above the link). Many thanks and sorry for any inconvenience!
DrgIonuţ
6-Jun-15 9:12am
View
Deleted
Ok. I'll take some print screens, so you will can see what I'm talking about. Is that ok for you?
DrgIonuţ
6-Jun-15 8:29am
View
Sorry. I don't get your point.
DrgIonuţ
6-Jun-15 6:05am
View
I think if you want to test it, you need and the server's code, because without it you can't test anything. So, should I give it to you?
DrgIonuţ
6-Jun-15 3:01am
View
Thanks for advice. I know that I implemented the FillRectangle method, but it has the effect on the form when I press the btnDraw. What I want to do is that when I click on one square of the rectangle which is on the panel the square to be colored. I hope you understood me. Regards, Ionut!
DrgIonuţ
6-Jun-15 2:52am
View
Ok. On a panel I drawn rectangle with 10 line and 10 columns. When I click on one square of it I want that the square to be colored.
Show More