|
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
|
Hello all
I'm new here and wanted to ask about .Net and Vue.js.
I have to do a project at school that is not so simple in my opinion.
I should develop a web application that should work with .NET and Vue.js.
I have to generate a PDF document with the user's input and send it to a mail. I also have to identify the mail address from the user's input and send it to him.
Can you help me how I can approach the whole thing. I am grateful for any help.
Thanks a lot
|
|
|
|
|
|
|
Dir all. I am a new here. I just start a Web NETcore 5.0 MVC and the connectionstring has been set in the appsettings.json like this:
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=ManagementSystem;Trusted_Connection=True;MultipleActiveResultSets=true"
}
I know that the database will be create in the "C:\Users\Nguyen Tuan Anh "
You can see the projet is here: GitHub - nguyentuananh921/HomeJob[^]
I want to setup the database so it is created in Project Folder as a relative not fix so that when I upload to github and then I can come to other pc and clone it without losing data.
Thanks.
|
|
|
|
|
What are your thoughts on an approach that uses Specifications for business logic validation? I know Fluent Validation is probably the most popular tool for doing validation these days, but is it inherently superior to a Specification-based approach?
|
|
|
|
|
More straight-jackets from pet projects of third parties.
The antithesis of "fluent".
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Can you expand on your "antithesis of 'fluent'" comment, please?
|
|
|
|
|
Hey,
A bit backstory: I am working for some time on my Text-Templating engine project Morestachio and all the time i compare the performance of Morestachio against other engines like cottle, handlebars.net, scribain etc and with the latest release of .Net5 i was thrilled as microsoft promised another out-of-the-box performance improvement like the one we saw when net.core came out where each version was measurably faster then the previous one. I read some block posts like this one: Performance Improvements in .NET 5 | .NET Blog but when i did my usual performance comparisons I discovered more or less the opposite.
I have two performance metrics: Historical performance tests including only Morestachio using Nunit and a project using the BenchmarkDotNet lib.
BenchmarkDotNet:
.net472:
| Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|------- |---------:|----------:|----------:|---------:|--------:|------:|----------:|
| Bench | 2.019 ms | 0.0041 ms | 0.0036 ms | 257.8125 | 15.6250 | - | 1.57 MB |
.NET5:
| Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|------- |---------:|----------:|----------:|--------:|-------:|------:|----------:|
| Bench | 2.219 ms | 0.0044 ms | 0.0039 ms | 85.9375 | 3.9063 | - | 705.5 KB |
.NetCore 3.1:
| Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated |
|------- |---------:|----------:|----------:|--------:|-------:|------:|----------:|
| Bench | 1.427 ms | 0.0035 ms | 0.0033 ms | 95.7031 | 5.8594 | - | 783.67 KB |
this also performance difference is also present in the other test (i will not bother to post here).
Yes Net5 is way more efficient in memory consumption but in comparison slower then even pre NetCore.
|
|
|
|
|
If I put bigger or smaller wheels on a car, it will affect it's speed; all other things being equal.
Memory and response time is like that. And we have different cars.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
|
For an article I wanted to create a VB.Net demo project with Master/Detail GridView and RichTextColumn.
Parts of my demo project are taken from CP articles about Master/Detail GridViews.
But most of them have the issue with the keys not working on the childView - that prevents moving through the child grid with arrow keys.
Same happens with keys page up/down and pos1/end.
Example: DataGridViewExtension[^]
Instead of navigating through the childView those keys let you navigate through the Main/Parent Form.
There is only one without that issue - but in C# and I do not understand how the issue is fixed there:
Master Detail Datagridview in C#[^]
That's why I tried to do the childView with my own subForm, but that was no good idea.
Today I could migrate that C# project (without the issue) to vb and got it working - without the keys issue.
But still cannot see the reason for the keys issue and why all works in the Master Detail Datagridview in C#.
Any ideas what causes the keys issue and how to fix it?
modified 11-Nov-20 13:53pm.
|
|
|
|
|
The "parent key" is used to filter children in the "child view"; that's it.
Every time the selected parent changes, a new set of children is retrieved or filtered using the parent key.
That's the pattern. How people choose to abuse it, is another matter.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
I probably do not understand what mean - why should an 'Id'-Key which filters the datasource of the childView control have any effect on the function of the 'Keyboard'-Keys for the childView control?
modified 12-Nov-20 6:10am.
|
|
|
|
|
It doesn't. Where did I mention "key board"?
If your problem is that your "app" is not behaving as "expected", it's because you've either hooked up something wrong, or didn't when you should, or defeated it's default behavior.
I was telling you what "should" happen. You implement parent-child relations; they don't just "happen".
(And VB had "navigation controls" that c# never had).
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
hey bro i want to add audit trail to my project ,bro i was seen your post about that but not working for me can u help me , i use asp.net core 3
|
|
|
|
|
|
it is not working for me i want audit log not logging logs !!
|
|
|
|
|
It is exactly the same concept. The important thing is what information you put in the log.
|
|
|
|
|
i'll try more different ways but not working for me , i want audit to record every things in my system where user performed !
|
|
|
|
|
We have no idea what you are doing, or what you mean by "not working for me". If you want help with a programming problem then you need to provide proper details.
|
|
|
|
|
I think he's missing the part where one actually "calls" the logger.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
I think he's missing much more than that.
|
|
|
|
|
Audit what?
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|