Kukuba008
❔ URL generating in MVC
Hello i need help with error that occurs when I'm generating URLs in ASP.NET MVC .NET Framework 4.6.2 application.
When URL is generated in 'a' tag using '@Url.Action("Index")?TK=4' it works -> outputs '/folder/controller/index?TK=4'.
But when the URL is passed in parameter to JS function, that does something and then redirects to that URL it will generate the URL wrong -> it generates '/controller/index?TK=4'. It is missing the '/folder/' at the start.
or just starting in the JS function:
So:
1) How can I generate it properly in JS ?
2) And what can be wrong with it ?
Note: All these pieces of code works well localy and on test (generates the URL with '/folder/'), but it doesn't work on production (doesnt generate '/folder/'), even though there is the same code. So the mistake might be in configuration ?
2 replies
✅ Microsoft Graph API
Hello I need to create program that will load data from Outlook calendar, which is done using Microsoft Graph API, so i have this code:
Got from here: https://learn.microsoft.com/en-us/graph/sdks/choose-authentication-providers?tabs=CS#client-credentials-provider
But im getting this error:
*All the variables are filled properly, i just deleted the values here.
What should i do ?
Thanks
20 replies
Nested array in DataGridView
Hello, i want to display object in DataGridView (WinForms) that has an array of values (plus some normal properties) and each value should be assigned to new column, how can i do it ?
Example:
class:
which turns into one line in grid
"name", "a", "b", "c"
I know how to dynamicaly create columns, but i don't know how to bind array to it. I would need something like:
column.DataPropertyName = "items[0]";
Thanks
Thanks
2 replies