Nothing at all, complete silence and darkness.
Hi,
“does not work” means what? Do you get an error in the console?
We need a test case with a clear indication of expected result to check this.
Best regards
Frank
Ciao Gabriele,
I cannot reproduce in 3.5.21 with my Pixel 7 and Nexus6P emulators. What type of device are you using?
Grazie,
Levie
Thanks Alaa for your attention to this. The solution does work, however, at first startup I get an exception that cannot be caught: “Cannot read properties of undefined (reading ‘option’)”. This occurs in your project as well as in mine. If I set this option after the first appearance, then it does hide the weekend days.
Hi Chris,
I have attached a sample that showcases the required feature.
HTH,
Alaa
Hi Roni,
that’s a website, it’s build with Wordpress + Plugins.
Wisej.NET is for enterprise web applications. Not really related.
Best regards
Frank
You can pass the parameters like this:
Application.Navigate("?mypar=1");
You can then get the values like so:
AlertBox.Show(Application.QueryString.ToString());
returns: mypar=1
And this returns just the value:
string[] values = Application.QueryString.GetValues(0);
AlertBox.Show(values[0]);
returns: 1
See attached sample
You might also find these forum threads to be helpful:
https://wisej.com/support/question/url-parameters
https://wisej.com/support/question/url-arguments
John-
Your code does work. See attached test case. I am able to open the Project folder and view the file inside.
Julie
Has there been an update to this?
Wisej.Web.SaveFileDialog dialog = new Wisej.Web.SaveFileDialog();
dialog.Roots.Add(new FileSystemProvider(Application.Session[“GlobalProperties.DataFileLocation”] + “Project”, “Project”));
dialog.InitialDirectory = Application.Session[“GlobalProperties.DataFileLocation”] + “Project”;
DialogResult result = dialog.ShowDialog();
No existing files are displayed
__
If we do this:
Wisej.Web.SaveFileDialog dialog = new Wisej.Web.SaveFileDialog();
dialog.Roots.Add(new FileSystemProvider(“./”, “Main_Directory”));
DialogResult result = dialog.ShowDialog();
And the user navigates to the Project folder, then the files in the Project folder are displayed.
__
We do not want users to be able to navigate outside of the Project folder, but we want to display the contents of the Project folder when the dialog is displayed.
I looked at your files- try “url”: “Admin.html” in Admin.json
That works for me.
I figured it out. The forum post i was referencing said to change the Admin.json url to be “/admin” – when i changed it back to “Admin.html” it started working. Thanks !
Attached are the new files added for Admin sub-application.
I even put a breakpoint in the Main method of the Admin.cs file and no matter what I do it never gets in there.
Here’s a sample that works, based on the instructions here:https://docs.wisej.com/docs/concepts/startup
Hope this helps,
Julie
localhost/admin:5000
gives me:
“localhost refused to connect.”
I get an error when I try localhost:5000/admin:
| Requested URL | http://localhost:5000/admin |
|---|---|
| Physical Path | C:\Client Projects\S-Logic\SWID Portal\Portal\SIWDRemoteApplication\SIWDRemoteApplication\admin |
| Logon Method | Anonymous |
| Logon User | Anonymous |
Try http://localhost:5000/admin
Answering my own question in case someone else stumbles on this.
Changing the project file to specifically target net9.0-windows10.0.19041.0 fixed it. This was the version number targeted in the examples from github (albeit for net8.0), I didn’t try any other versions.
Problem solved!
Hi Gabriele,
We have just updated the GitHub repo with the 4.0 branch, can you please give it a try?
Best Regards,
Alaa
Instead of your eval call, do Application.Navigate("link","_blank");
_blank tells it to open the page in a new tab.
For example, create a Wisej project with Page1 and Page2. Create a button with a click event and call this code in the click event:
Application.Navigate(Application.StartupUrl + "#page2", "_blank");
In Program.cs, add this to the Main function:
static void Main()
{
if (Application.Hash == "page2")
new Page2().Show();
else
new Page1().Show();
}
See attached sample.
Note: Another approach would be to attach to the HashChanged event. However, that only works if you’re not opening the page in a new tab. Opening a page in a new tab creates a new session.
