Click here to Skip to main content
15,390,952 members

Comments by Afzaal Ahmad Zeeshan (Top 200 by date)

The simplest way would be to use the Navigator to pass the values. But if not that, then I would recommend using a State manager to pass the state around among different UIs and pages.

Why do you think it is not working, what's the behavior?
Fair enough. :)
That means you are not putting a return statement in one of the branches in the code. Since you have not shared the entire code, we don't know where the problem is.
And what exactly is not letting you do that?
It would be one heck of a reason to use Borland C++ 5.5. :-)

If you are building a new application, maybe better to use a different framework that's more Windows?
Afzaal Ahmad Zeeshan 3-Aug-22 19:18pm View
If this is a class assignment, and you do not know how to resolve this, the best bet is to discuss this with your teacher.

We can provide the answer, but that would not help you understand what's happening with the database connection, etc.
Afzaal Ahmad Zeeshan 3-Aug-22 19:16pm View
What the result is, and what you expected?
Afzaal Ahmad Zeeshan 3-Aug-22 19:15pm View
Best case is to debug the application and check what values do these parameters have. I am guessing they are either null, or they do not contain a valid URI (thus, the error).
Afzaal Ahmad Zeeshan 2-Aug-22 8:48am View
The best you can do is debug, and see if the call is being made. The SDK can help you with more, like if there are any networking issues, or the API key is not working.
Afzaal Ahmad Zeeshan 2-Aug-22 8:47am View
You need to write some Maths to calculate when "two lines could intersect" and then draw a circle with a small at that point to highlight the cross-cutting.

Without code, there is hardly anything we can do.
Afzaal Ahmad Zeeshan 1-Aug-22 22:07pm View
I assume that you want to read this in the UI element where you want to render this.

One way to do this could be to just override the ToString method and return the lastname there. Otherwise, you can also tell the data binding framework to render the lastname in the element.

(I assume this is Xamarin? If so, check the data binding documentation for Xamarin on how you would need to do that for the control that you are using.)
Afzaal Ahmad Zeeshan 31-Jul-22 18:42pm View
You can just use this "3" in a for loop to iterate over this value. But the code that you are showing is doing something else. It is "starting" from "3", not "ending" on it.
Afzaal Ahmad Zeeshan 31-Jul-22 18:31pm View
And the problem is?
Afzaal Ahmad Zeeshan 29-Jul-22 19:17pm View
You need to add the reference to your project. Depending on your .NET version and the availability of the package, you might have to do that either via UI or via the CLI.
Afzaal Ahmad Zeeshan 29-Jul-22 18:58pm View
There is a reason why this is challenging; you need to think about it. We can solve this, but that would not benefit you.

I recommend reading the Data Structures and Algorithms book to find out how to optimize the algorithms.

Tip: consider using a sliding window.
Afzaal Ahmad Zeeshan 28-Jul-22 18:48pm View
And the problem is?
Afzaal Ahmad Zeeshan 25-Jul-22 20:42pm View
Not a direct answer: but be aware that your code is prone to SQL Injection. For offline and client-only database, it is not very sensitive, but still does not provide a good experience to the users if their apps stop working (just because someone messed with the database schema).
Afzaal Ahmad Zeeshan 16-Jul-22 17:01pm View
Why are you trying this to an integer? You know that "A" is not a number. If the data type of the column is an integer, perhaps, try saving a numeric value.

Otherwise, I would recommend using another column to indicate something. Even better is to just return a different value for a null column.

If you are showing the text on the UI, maybe just check for the null value and print the text...
Afzaal Ahmad Zeeshan 14-Jul-22 5:52am View
If you are just getting started, I encourage you to explore the new Entity Framework Core instead of older Entity Framework 6.

However, you can look into the Always Encrypt option and see how much that helps you.

The encryption at rest is not something that Entity Framework will explore, rather your database service provider; where you are deploying it. For the data transactions, you can use this connection string part and see how that works. I have not used this myself.
Afzaal Ahmad Zeeshan 27-Jun-22 7:26am View
What is the error? This is a connection string.

The possible error would be that either the key is not picked up in the application, or the engine is not installed.
Afzaal Ahmad Zeeshan 6-Jun-22 10:43am View
DevExpress has a good amount of documentation of their services, and they are a paid product so it is best to approach their support.
Afzaal Ahmad Zeeshan 28-May-22 17:45pm View
There is an error, it says that the function that you are calling is undefined (not found). Check if you have deployed the entire application or just a single file.
Afzaal Ahmad Zeeshan 27-May-22 9:50am View
I encourage you to speak with your teacher or supervisor if you do not know what to do next.
Afzaal Ahmad Zeeshan 26-May-22 18:23pm View
Based on your experience, and the complexity of this question I would rather suggest instead of coding it out, using software that's already built for this... No?
Afzaal Ahmad Zeeshan 26-May-22 18:23pm View
What does the official documentation say? Can't you download this from there?
Afzaal Ahmad Zeeshan 1-May-22 0:49am View
For discussion, please try the Discussion board for C++ and someone might be able to help you.
Afzaal Ahmad Zeeshan 27-Apr-22 14:24pm View
What do you mean? It's a += operator, so it will add the values and then put the result in the variable.
Afzaal Ahmad Zeeshan 3-Apr-22 20:32pm View
The exception says that you are trying to convert a number to an array of bytes.

The main I see in your code is that it is confusing to read what is happening. You are doing a lot of things in a single statement, and thus, losing a track of what should happen where.

For example, this link (byte[]) Customer_Function.Customer_Operation.Show_Customer_Image(Convert.ToInt32(this.dataGridView_ShowData.CurrentRow.Cells[0].Value)).Rows[0][0];. I would write it differently. Reading the source and assignment to a destination should be done in two-fold; unless you know what you're doing.

Try to break these statements into two, and debug to see what is the output.

Oh, and if you are converting a variable of type int to a byte[] for an image. I'm guessing the input is not an image in its integer form either.
Afzaal Ahmad Zeeshan 9-Mar-22 14:24pm View
What is the problem that you are facing?
Afzaal Ahmad Zeeshan 15-Feb-22 18:16pm View
The online code is different than the code that you are showing here.
Afzaal Ahmad Zeeshan 8-Feb-22 20:57pm View
Rebuild it in x64?
Afzaal Ahmad Zeeshan 15-Jan-22 19:22pm View
I would keep this query in SQL for performance reasons and map the records/results to C# instead. :-)
Afzaal Ahmad Zeeshan 31-Dec-21 15:08pm View
This is not a question for this site, rather some investment in Google would provide better results. :-)
Afzaal Ahmad Zeeshan 28-Dec-21 17:38pm View
Thanks, Rashid. :-)
Afzaal Ahmad Zeeshan 27-Dec-21 17:05pm View
This depends heavily on the query planner of your SQL engine. Consult the documentation of your SQL engine.

The query planner decides how to execute a query, and it will make sure that the best approach is taken. If you want to see for yourself, you can use the tools for the SQL engine to preview the query plan; PostgreSQL has an explain for this, and SQL Server can show the query plan. Then you can review both and see for yourself.
Afzaal Ahmad Zeeshan 7-Dec-21 15:40pm View
Good catch, I normally prefer using Strings as IDs and forgot what I just wrote in the answer. Thanks. :)
Afzaal Ahmad Zeeshan 29-Nov-21 14:34pm View
The Coordinates do not exist on the object. Did you spell it correctly?
Afzaal Ahmad Zeeshan 11-Oct-21 14:34pm View
And what error do you see?
Afzaal Ahmad Zeeshan 8-Oct-21 19:26pm View
None of them are strings; they are variables? If not, then they are invalid characters in Python.
Afzaal Ahmad Zeeshan 5-Oct-21 18:51pm View
Have you tried to use HtmlAgilityPack?
Afzaal Ahmad Zeeshan 5-Oct-21 18:51pm View
One simple way would be to print it in the reverse order; use stack?
Afzaal Ahmad Zeeshan 29-Sep-21 14:58pm View
Do you face an exact error/problem? Check your console for that please and let us know.
Afzaal Ahmad Zeeshan 24-Sep-21 6:17am View
And? What is the problem?
Afzaal Ahmad Zeeshan 24-Sep-21 6:02am View
And what is the current table structure that EF Core gives?
Afzaal Ahmad Zeeshan 26-Aug-21 18:27pm View
500 would mean there is an exception/error in the server-side code. Try to debug the application and see why it is crashing.
Afzaal Ahmad Zeeshan 26-Aug-21 12:11pm View
You cannot do that. You need to detect the pop-ups and handle them.

I think the cookie pop-ups are a part of the "antibot" system on a web application. ;-)
Afzaal Ahmad Zeeshan 22-Aug-21 8:56am View
And what is the problem with this?
Afzaal Ahmad Zeeshan 22-Aug-21 8:54am View
Afzaal Ahmad Zeeshan 20-Aug-21 15:38pm View
I would try using console.log(JSON.stringify(req.body)) to see what is the structure of the request object.
Afzaal Ahmad Zeeshan 14-Aug-21 16:19pm View
1. I would set a debugger and see if the line inside the onTap method gets called or not.
2. Verify if the tap is on the right widget. Sometimes your widget is hidden under another widget, thus not receiving any tap notifications from the framework.
Afzaal Ahmad Zeeshan 14-Aug-21 16:15pm View
Afzaal Ahmad Zeeshan 3-Jul-21 12:28pm View
Maybe you should use the [FromBody] attribute to let ASP.NET know this value has to come from the body; otherwise, it expects a named value (query string, etc.)

Also, it is unclear how you are handling the routing in this situation.
Afzaal Ahmad Zeeshan 19-Jun-21 7:03am View
There is no code in your question. Maybe see this SO thread for a similar problem.
Afzaal Ahmad Zeeshan 14-May-21 18:16pm View
Try to print the data variable.
Afzaal Ahmad Zeeshan 23-Mar-21 12:38pm View
Please create a new thread to ask a new question.

Which ATM is this, are you using some sort of SDK, to write this program or writing your own? Please create a new thread and ask this question there with more details.
Afzaal Ahmad Zeeshan 19-Mar-21 11:15am View
Not sure, but I think this part replacements:{id: needs to be only replacements:{id: idParam. Because you are reading the ID from the URL, and I would expect it to be a value, not an object.
Afzaal Ahmad Zeeshan 14-Mar-21 15:43pm View
You can, but that's overengineering. :)
Afzaal Ahmad Zeeshan 5-Mar-21 17:31pm View
What else did you expect this code to show?
Afzaal Ahmad Zeeshan 20-Feb-21 19:10pm View
Afzaal Ahmad Zeeshan 8-Jan-21 20:58pm View
5ed; you beat me to answer.
Afzaal Ahmad Zeeshan 5-Jan-21 18:34pm View
What is the output?

See the output and you will be able to see what is wrong. :)
Afzaal Ahmad Zeeshan 5-Jan-21 18:34pm View
Do you have the fonts installed on that system?
Afzaal Ahmad Zeeshan 3-Jan-21 10:45am View
Without the proper (static) IP address knowledge, it depends on where the PCs are. If on the same network, then you might be able to connect using the hostnames, otherwise, you cannot connect at all.
Afzaal Ahmad Zeeshan 2-Jan-21 23:33pm View

If the answer helped, please mark it as a solution as well. :)
Afzaal Ahmad Zeeshan 2-Jan-21 20:32pm View
I am not that expert in the RichTextBox type, but I think if you can debug the process you will see where the characters are lost in the process.
Afzaal Ahmad Zeeshan 2-Jan-21 19:47pm View
5ed; but he did help filter the authors down by name, Alberto. :laugh:
Afzaal Ahmad Zeeshan 28-Dec-20 11:50am View
What is the error?
Afzaal Ahmad Zeeshan 26-Dec-20 18:22pm View
And, which SDK are you using?

Most probably, it is your own process' memory so see when/where was it allocated.
Afzaal Ahmad Zeeshan 21-Dec-20 19:53pm View
And what is the problem?
Afzaal Ahmad Zeeshan 17-Dec-20 23:28pm View
Reply to the author's comment to notify them of your reply.
Afzaal Ahmad Zeeshan 14-Dec-20 9:53am View
And what is the problem?
Afzaal Ahmad Zeeshan 13-Dec-20 0:14am View
I think the point that you might be missing here is given as a hint in the question. Have you tried using that? :)
Afzaal Ahmad Zeeshan 9-Dec-20 19:59pm View
You can ask the question under that article. :-)
Afzaal Ahmad Zeeshan 8-Dec-20 19:36pm View
Thank you, Bill!
Afzaal Ahmad Zeeshan 8-Dec-20 11:26am View
Right, what code are you using?

If you are using the example code/SDK, then the problem is with their code; or maybe you missed a step while setting up the SDK.
Afzaal Ahmad Zeeshan 7-Dec-20 11:47am View
If you are not using smtplib, then why does your code show the statements from that package?

File "C:/python\", line 3, in <module>
import smtplib
File "C:\Users\Vivek\AppData\Local\Programs\Python\Python38\lib\", line 47, in <module>
import email.utils
ModuleNotFoundError: No module named 'email.utils'; 'email' is not a package
Afzaal Ahmad Zeeshan 2-Dec-20 0:21am View
Right, I have multiple applications and I use React for the frontend development. It is my personal choice, as it is very easier to start prototyping the UIs and then host the apps online as well.

But, Angular, Vue.js, and other frameworks such as Blazor (C# based) also work just fine. It depends no what is needed by the framework as well.
Afzaal Ahmad Zeeshan 27-Nov-20 22:00pm View
So, ultimately the content is inside the HTML (either as a hyperlink or inside the JavaScript). If the later is the case, then a quick JavaScript contains can check where the file is.

But, whether you will be able to download it is a different question in its own self. :)
Afzaal Ahmad Zeeshan 27-Nov-20 21:57pm View
Why not just change the password so your brother cannot access it?
Afzaal Ahmad Zeeshan 21-Nov-20 0:39am View
It shows the wrong data or does the query fail to execute?
Afzaal Ahmad Zeeshan 20-Nov-20 22:15pm View
What is the code that you are using to perform this?

Show the code as well.
Afzaal Ahmad Zeeshan 19-Nov-20 11:20am View
Does the file file2.txt exist, or gets created at all?
Afzaal Ahmad Zeeshan 17-Nov-20 3:18am View
I have expanded over my comment in the answer, see Solution 1.
Afzaal Ahmad Zeeshan 15-Nov-20 19:17pm View
I think there is a missing space there, it might be std::vector vec.
Afzaal Ahmad Zeeshan 15-Nov-20 14:39pm View
Just a quick note: If your binary search performs a sorting (O(N logN)) and then performs a binary search (O(logN)) then I can tell you roughly that linear search will perform fewer operations (O(N)).

Regardless of input, your binary search will be doing a sort.
Afzaal Ahmad Zeeshan 14-Nov-20 17:12pm View
This must be a Qt specific feature, check the documentation for this.
Afzaal Ahmad Zeeshan 30-Oct-20 17:01pm View
Depends, which file are you using as the entry point for the program?

You should be using TestSandwich, please verify that from the IDE.
Afzaal Ahmad Zeeshan 14-Oct-20 14:59pm View
It is possible, and yes, you can write a simple if...else statement to run the commands on your DOM too (a very basic jQuery code $("#firstname").focus(); should be enough for this). But again, what if user says something else? Or what if the microphone doesn't catch the correct statement?

There are more errors and edge cases to catch here.
Afzaal Ahmad Zeeshan 14-Oct-20 13:54pm View
What exactly is the problem?

It just says that the file is not found; it might be the main page, it might be a missing DLL etc.
Afzaal Ahmad Zeeshan 28-Sep-20 23:24pm View
I think the problem is being caused by the program that is saving your file; it might not be appending an EOF symbol before flushing the stream to a file.
Afzaal Ahmad Zeeshan 28-Sep-20 23:23pm View
JSON is just there to help you with the data interchange between the server and the client application. If your client-side part contains the styling, then your server should have that as well.

I would like to recommend using email templates; either custom or mail vendor provided ones. They would help you in many ways.

Oh, and always try to prevent HTML content that is not validated for XSS and other forgery scripts, it would lead to a big trouble for your service in future.
Afzaal Ahmad Zeeshan 6-Sep-20 7:36am View
Why are you reading as a stream, why not ReadAsString?

Secondly, why are you even bothering with older technology (WebRequest), I would recommend using HttpClient and its helper methods that return the entire HTML document as a string for you to easily apply a .IndexOf() method on it.
Afzaal Ahmad Zeeshan 3-Sep-20 22:39pm View
And I have told you, it is easier to handle that logic with the events so that your Forms notify each other of the states and updates.
Afzaal Ahmad Zeeshan 3-Sep-20 12:42pm View
What is the database structure? Please see that the column "id" exists there.
Afzaal Ahmad Zeeshan 3-Sep-20 11:04am View
Instead of posting as a Solution, you can always comment on the OP and author will be notified for the message.
Afzaal Ahmad Zeeshan 3-Sep-20 11:02am View
You wrote it in English, now write this exactly the way it is in C#. :-)
Afzaal Ahmad Zeeshan 3-Sep-20 11:02am View
Afzaal Ahmad Zeeshan 3-Sep-20 11:01am View
Simple would be ugly; I am warning again, as that would contain a lot of bad practices, indeterministic branches, quantum fluctuations (okay, I lied with this one! ;-)...), but you get the point.

Learning the events in C# is the best bet for you here. But I have shared a sample code that would give an easier way to do this.

Note: From your code I am assuming that you want to open the test form after the current test form has closed. Which will be possible with the events more easily.
Afzaal Ahmad Zeeshan 2-Sep-20 10:15am View
Depends. Any book will do, unless you are doing some research or want to get an area-specific knowledge of TCP/IP applications.
Afzaal Ahmad Zeeshan 2-Sep-20 8:58am View
Does it fail, and if so, what error does it give?

Also, you did not show the stored procedure code so it might be a little difficult to debug.
Afzaal Ahmad Zeeshan 2-Sep-20 8:57am View
Can you try with the port 25 first?
Afzaal Ahmad Zeeshan 2-Sep-20 6:41am View
Why using such an old technology?
Afzaal Ahmad Zeeshan 2-Sep-20 6:41am View
Thank you, Maciej!
Afzaal Ahmad Zeeshan 1-Sep-20 23:03pm View
Are you using a web project or a desktop project?

And, do you have the license required to run the library? It might be a license-related trouble.
Afzaal Ahmad Zeeshan 1-Sep-20 23:02pm View
It is recommended to use Trial version of a product to ensure it fulfills your needs before purchasing a license.
Afzaal Ahmad Zeeshan 31-Aug-20 23:51pm View
Yes, they are connected in that deep learning is a subfield of machine learning; the part which deals with the artificial neural networks. Then again, it depends heavily on who is teaching, what course you are taking (beginner/advanced), etc.
Afzaal Ahmad Zeeshan 31-Aug-20 22:25pm View
Have you tried to see if they are the same?

Solution 1 gives a good answer on this.
Afzaal Ahmad Zeeshan 27-Aug-20 21:39pm View
CodeProject used to have video resources support; now primarily text-based content is published.
Afzaal Ahmad Zeeshan 27-Aug-20 21:37pm View
And the problem with the new features is?

If you are interested in learning more about a sample from one of the articles, please ask the question under the article; QA is off-topic for article discussions.
Afzaal Ahmad Zeeshan 20-Aug-20 5:18am View
Sounds like an interview/homework question.

Where are you stuck?
Afzaal Ahmad Zeeshan 14-Aug-20 12:17pm View
Get where?

Node.js will probably help you develop/deploy all sorts of websites; trust me, I have written stronger and more complex applications in Node.js. How-to is up to you!
Afzaal Ahmad Zeeshan 4-Aug-20 21:33pm View
Not sure, but are you allowed to use spot start in the parameters? That should be an error.

Try changing that to:

def cavMove(self, board, start, end):

This should work for you.
Afzaal Ahmad Zeeshan 3-Aug-20 21:36pm View
As far as I know, browsers control the zoom and not ASP.NET (regardless of version 2, 4 or the vNext).

Was ASP.NET handling the zoom manually?
Afzaal Ahmad Zeeshan 3-Aug-20 21:35pm View
Normally, Entity Framework should be able to check for a duplicate based on the primary key.

But, if you do not have the primary keys and you want to "INSERT" the records but ignore the duplicates, then the first query which records are available.

I would recommend using a stored procedure to improve performance.
Afzaal Ahmad Zeeshan 3-Aug-20 21:34pm View
I think that is a question for Google; it is not the device only, but several other factors that you should look into to decide which device you should add.
Afzaal Ahmad Zeeshan 24-Jul-20 22:23pm View
And the current problem is?
Afzaal Ahmad Zeeshan 5-Jul-20 20:50pm View
"String or binary data would be truncated.\r\nThe statement has been terminated."

The error means that your data (in one of these columns) is larger than the column (in the database) allows. Check which column it is.
Afzaal Ahmad Zeeshan 5-Jul-20 6:40am View
That is a complete module that you want to build, and this it is not suggested for Tip/Trick section. I recommend searching for an article here on CodeProject using the search box in top-right corner.
Afzaal Ahmad Zeeshan 3-Jul-20 10:20am View
And what code it is?
Afzaal Ahmad Zeeshan 3-Jul-20 5:59am View
Afzaal Ahmad Zeeshan 3-Jul-20 5:58am View
Which username you are trying to check here?
Afzaal Ahmad Zeeshan 3-Jul-20 5:57am View
You can:

1. Remove the browser history using Windows History API
2. Prevent the browser back button event.
3. Close the tab.
4. Run a script on the previous page to check the session or the browser history state (if the next page was log out page, close the tab).

There are several options in which you can control this; and they all depend on the business requirements.
Afzaal Ahmad Zeeshan 29-Jun-20 7:23am View
Share the code that you have tried to write and we might be able to help you.
Afzaal Ahmad Zeeshan 24-Jun-20 18:09pm View
Although it is highly unlikely that Microsoft would support or provide support for C or anything like COM etc. The focus now is more on "getting-things-done". Also, .NET 5 is still in preview so several libraries/packages will not be available for use, and that means most of .NET related work that helps in this area does not work.

Have you tried creating a bridge between named semaphore/named mutex? :-)
Afzaal Ahmad Zeeshan 24-Jun-20 18:05pm View
It means that the user account that you have created either did not have a login set up properly for the database, or the password is incorrect.

Check this thread to learn more on that.
Afzaal Ahmad Zeeshan 22-Jun-20 10:57am View
Try removing the say_hello("Gabriela") part, maybe you are not required to call the function as the testing part will do that for you.
Afzaal Ahmad Zeeshan 10-Jun-20 16:30pm View
Hey Richard!

Yes, I started working on a few projects with some clients. What has been taking most of my time is my studies—I started my MS in Computer Science.

I am planning to join the community again, but you know how assignments are. :laugh:

Also, I hope you are safe and healthy during this COVID-19.
Afzaal Ahmad Zeeshan 9-Jun-20 22:43pm View
If the page is not loading, then you can do two things:

1. Check if the request is being sent to the page you have added (check under the Network tab in your browser developer tools).
2. If the request is being made, then debug the code and see where (and why) it fails.

More likely, it would help you decrease the area of the error. If you see a 500 in the Network tab, then it is a problem with the PHP code execution—otherwise a problem with the SQL logic. These are just a few starters. :-)
Afzaal Ahmad Zeeshan 9-Jun-20 20:35pm View
Afzaal Ahmad Zeeshan 9-Jun-20 20:32pm View
A recursive approach might be prone to stack overflow exceptions, where a loop and iteration based approach (if it works!) is better from runtime's standpoint.

Their algorithmic complexity (more or less) is the same.
Afzaal Ahmad Zeeshan 1-Jun-20 23:14pm View
I don't think the error is coming from the code that is being shown in the SQL you have shared.

Maybe try debugging the code, or something, or show the complete code at least the code that has the DECLARE keyword or @adminaccess parameter.
Afzaal Ahmad Zeeshan 1-Jun-20 17:06pm View
And the problem is?

Your OP has the title for C, but tag and program in C++. Also, check out the Microsoft documentation to learn how to do this using C++:
Afzaal Ahmad Zeeshan 12-May-20 18:12pm View
What is this CharacterCount.Count method?
Afzaal Ahmad Zeeshan 11-May-20 14:35pm View

How are you connecting or establishing the connection over TCP/IP? Can you share the entry points for these two programs?
Afzaal Ahmad Zeeshan 3-May-20 7:45am View
Do not repost the questions, that does not help with answers.

If you have more information regarding the problem statement, use the Improve Question button and modify the problem statement in original post.
Afzaal Ahmad Zeeshan 2-May-20 17:05pm View
That is because Arabic characters cannot come in ASCII code, you need to have Unicode for that. ASCII can only contain English characters.
Afzaal Ahmad Zeeshan 2-May-20 6:06am View
Afzaal Ahmad Zeeshan 1-May-20 6:46am View
OP wants to run the code on user machine, which is not going to happen even if they migrate their application to ClickOnce. Plus, he does not want to share his code, even after compilation with fear that customers might redistribute his application.

Please see a different approach in Solution 2 that I suggest.
Afzaal Ahmad Zeeshan 27-Apr-20 15:55pm View
Your queries are different. You are not even trying the query you wrote in SQL to be written in LINQ. In LINQ, you are trying to check the value of status, whereas in SQL you are checking the value of "exp". Unless exp and Status are two same things. :-)
Afzaal Ahmad Zeeshan 24-Apr-20 5:33am View
And the problem is?
Afzaal Ahmad Zeeshan 22-Apr-20 5:55am View
You forgot to mention the 2 questions as well as the problems you are having.
Afzaal Ahmad Zeeshan 11-Apr-20 22:48pm View
I believe you are hardcoding the content, that is weird. You should come up with a dashboard or front-end that will manage the layer for data creation and query.
Afzaal Ahmad Zeeshan 11-Apr-20 22:46pm View
That is a question for Google.
Afzaal Ahmad Zeeshan 9-Apr-20 20:45pm View
Yes, it makes sense.

Although, you can add more detail to the program by adding indentation and using the parameters and other hardcoded values. Such as, If the second argument is a version or v, then print the Delly version. Something like that so that the user can know what is going on.
Afzaal Ahmad Zeeshan 9-Apr-20 13:31pm View
You are not printing anything else on the console, so how can you see anything else in the console?

Secondly, the logical aspect of the program can only debug using a debugger. Run the program with Visual Studio and set a breakpoint in this if statement. Then move step by step to check what is missing.
Afzaal Ahmad Zeeshan 9-Apr-20 10:13am View
Please study the C++ control structures, the one you are looking for is a do...while to perform an input capture and then re-execute the code until the user continues to provide 'y' in the input.
Afzaal Ahmad Zeeshan 8-Apr-20 22:29pm View
His JavaScript is incorrect which prevents anything from being printed on the screen. I wrote a solution to their problem in Solution 1, please see.
Afzaal Ahmad Zeeshan 1-Apr-20 5:09am View
The error is on line 5 and 6. It comes from events.js. Pretty sure something is wrong with this configuration in your React app. Did you follow the steps as they were mentioned?
Afzaal Ahmad Zeeshan 1-Apr-20 4:52am View
Are you sure echo can be upper case? I believe you need to use it as a lower case. Not a PHP expert though.
Afzaal Ahmad Zeeshan 1-Apr-20 4:50am View
How did you publish the package for the client to use it? Perhaps, you missed packaging some dependencies.
Afzaal Ahmad Zeeshan 31-Mar-20 9:38am View
Then you can use logging with try...catch block to find where the exception gets triggered. Try using ELMAH (ELMAH) and capture when an error is triggered.
Afzaal Ahmad Zeeshan 30-Mar-20 2:55am View
Thank you.
Afzaal Ahmad Zeeshan 29-Mar-20 16:53pm View
Is the path correct? Also, try to see what output is being generated on the browser.
Afzaal Ahmad Zeeshan 28-Mar-20 17:12pm View
Yes, it is possible.

You just need to write a Prt Scr handler and then write the code to save the graphics as an image in Excel.

Try this tool for the handler part,, and then write your code to save a file in Excel.
Afzaal Ahmad Zeeshan 28-Mar-20 10:50am View
Use the inspect element tools of the browser to know why the image is outside the bounds. We cannot access the application, nor the image.
Afzaal Ahmad Zeeshan 20-Mar-20 22:05pm View
The application is created, there is a logic error. Share the error that you see as well as the code in Java that you have written.
Afzaal Ahmad Zeeshan 17-Mar-20 7:57am View
That means the password is incorrect. Are you using single quotes around the password? Try that.
Afzaal Ahmad Zeeshan 17-Mar-20 7:02am View
As I said, try using a front-end framework and distribute the work among different components that load the data as needed and discard it (or save it in localStorage APIs) as needed.

Loading the full batch of data in a single instance of DOM is not good. By this I mean rendering the data in the DOM, just downloading and keeping the batch in memory is a different story.
Afzaal Ahmad Zeeshan 6-Mar-20 13:51pm View
Is the button greyed-out, not showing altogether, or you cannot find the button?
Afzaal Ahmad Zeeshan 31-Jan-20 14:57pm View
It means that your ASP.NET web application does not have access to the user's machine (including their hard drives). The best thing to do is to allow the users to download a file, which browser will allow them to save on their device.

Otherwise, a web application cannot access the user's machine due to sandboxing applied by browsers for security and privacy reasons.
Afzaal Ahmad Zeeshan 9-Jan-20 8:04am View
That is a JavaScript function and Angular uses that. So check MDN documentation for that.
Afzaal Ahmad Zeeshan 9-Jan-20 8:03am View
Do you want to do that in the physical data or in a view or something?
Afzaal Ahmad Zeeshan 6-Jan-20 8:16am View
Yep, that is possible too. But, sadly covering all that is beyond the scope of this forum. You might find something in the articles section (top right corner to search).
Afzaal Ahmad Zeeshan 12-Dec-19 7:07am View
Never mind

And what gets stored in the database after this code executes?
Afzaal Ahmad Zeeshan 11-Dec-19 2:44am View
Where exactly you get the error?

I am doubting that you should be getting the error inside the last foreach because a = x.a, b = x.b,... is invalid.


foreach( var x in inter) // this is okay.
d=1; // might need to use var d = 1;
e=2; // might need to use var e = 2;
You need to check more on the C# language grammar to understand how these are processed.
Afzaal Ahmad Zeeshan 8-Dec-19 2:38am View
Pass the reference of the first form to the second form's constructor. This way you will be able to make changes to the member fields of the first form (use encapsulation). This is the easiest approach.
Afzaal Ahmad Zeeshan 29-Nov-19 0:18am View
Just curious, what is the difference in simply doing this?

oldstring.replace(" ", "");
Afzaal Ahmad Zeeshan 28-Nov-19 7:53am View
I would highly recommend using SQL relations and perform a delete on child tables automatically as the parent data gets removed. That is the benefit of using a SQL database.
Afzaal Ahmad Zeeshan 27-Nov-19 22:15pm View
You might have to rebuild the project for the control to be visible.

See more on this here.
Afzaal Ahmad Zeeshan 27-Nov-19 11:44am View
Thank you.
Afzaal Ahmad Zeeshan 27-Nov-19 2:36am View
What is the problem that you are facing?

Check the browser console to find any issues or errors.
Afzaal Ahmad Zeeshan 26-Nov-19 6:17am View
We cannot help you this way, we need to see the code you used so that we might know what is happening.
Afzaal Ahmad Zeeshan 22-Nov-19 18:27pm View
There is a difference in ExecuteScalar and ExecuteQuery, please read their documentation to know about the difference — a quick answer is that ExecuteQuery would return the records and ExecuteScalar would return a count of the rows that were processed.

To fill the data to rows, you use the DataReader, then you can simply use indexers ([]) to access the column value. Please check the link I provided for DataReader it has the answer to your question. :-)
Afzaal Ahmad Zeeshan 22-Nov-19 18:00pm View
How is dynamically created SQL statements not SQL?
Afzaal Ahmad Zeeshan 22-Nov-19 17:23pm View
I don't know how you are comparing pivot to a stored procedure? A stored procedure is just a function, where the pivot is something that you are looking for here.

I guess a pivot around PropertyName is something that you want... Because there is no way to return the columns based on properties like ... [PropertyValue] as 'PropA' since the data is intertwined.

Read more on PIVOT here and see if that sample tells you something.
Afzaal Ahmad Zeeshan 21-Nov-19 17:42pm View
It would be great if you can check with the tutor and tell them what is wrong with the code.

I have updated the answer and added an explanation to use the code, and also to overcome the null pointer problem. Please see the last section in the answer.
Afzaal Ahmad Zeeshan 21-Nov-19 1:32am View
If the data is not showing then there would be some useful information in the browser console. Please use F12 to check console and share what the exact error message is.
Afzaal Ahmad Zeeshan 20-Nov-19 23:03pm View
In this case, where the access to the fields cannot be determined, you can use if...else blocks to prevent these exceptions.

This also shows the code is not being covered by tests properly.
Afzaal Ahmad Zeeshan 19-Nov-19 9:44am View
Afzaal Ahmad Zeeshan 19-Nov-19 9:43am View
5ed. A good alternative if OP needs to use a single value as a comparison.
Afzaal Ahmad Zeeshan 19-Nov-19 9:42am View
He means to say, that your HTML does not contain an element with id temperature. Are you sure this is the complete code?
Afzaal Ahmad Zeeshan 16-Nov-19 18:00pm View
Why are you doing a lot of GC collection?
Afzaal Ahmad Zeeshan 14-Nov-19 18:29pm View
You can unsubscribe from the newsletters.
Afzaal Ahmad Zeeshan 14-Nov-19 17:29pm View
Did you try?
Afzaal Ahmad Zeeshan 12-Nov-19 9:55am View
This seems to be a problem in cases where you want to show that a program crashes. Happens with me several times when I am authoring a course or book or article, I want the program to crash so badly, but it is like, "Not today!". :laugh:
Afzaal Ahmad Zeeshan 9-Nov-19 15:35pm View
I don't see where you are submitting the user id in the request.
Afzaal Ahmad Zeeshan 9-Nov-19 15:33pm View
And how is it not responsive? Did you try using CSS3 media query?
Afzaal Ahmad Zeeshan 9-Nov-19 15:22pm View
If there is a problem, please share the error message.
Afzaal Ahmad Zeeshan 9-Nov-19 15:22pm View
CURSOR was also something that I thought about by reading the first few lines of the code.

Afzaal Ahmad Zeeshan 9-Nov-19 15:19pm View
This is not a good question: We do not know what you mean by "switch turns back and forth constantly". How do you define an action?
Afzaal Ahmad Zeeshan 7-Nov-19 18:32pm View
Afzaal Ahmad Zeeshan 7-Nov-19 7:33am View
That problem is with the server-side code, your jQuery is fine.

Add a breakpoint on the Create function and debug it.
Afzaal Ahmad Zeeshan 1-Nov-19 7:11am View
Just like you would use any other package for a .NET Core 3.0 based projects, just download the NuGet package and get started.

What's the question?
Afzaal Ahmad Zeeshan 1-Nov-19 7:10am View
Binding is a complex topic for starters, but it is always the best.

Afzaal Ahmad Zeeshan 1-Nov-19 7:09am View
Maybe try setting a font. Although I am not an expert in iTextSharp, but I feel like you are only getting the font, not setting it anywhere. Maybe I am wrong, but the error says something like that.
Afzaal Ahmad Zeeshan 31-Oct-19 6:05am View
Apart from the assignment, in C# it will also give a compilation error since if expects a boolean value—that will work just fine in C++ based on the resulting value.
Afzaal Ahmad Zeeshan 31-Oct-19 5:45am View
Not necessarily, no. But it is always good to test the functions individually—that is the purpose of unit testing. If you test a single function, say, main, then the entire purpose of unit testing fails. Similarly, not mocking and testing internal functions also leaves the room for bugs to enter your code.
Afzaal Ahmad Zeeshan 31-Oct-19 5:44am View
Then try to debug a wrapping function that further calls this method.
Afzaal Ahmad Zeeshan 31-Oct-19 5:43am View
Would be great to debug the code and see what causes it to return null.