All Answers

0 votes

Nothing at all, complete silence and darkness.

  • mgmst answered Jul 27, 2025 - 11:11 am
0 votes

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

0 votes

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

0 votes

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.

 

0 votes

Hi Chris,

I have attached a sample that showcases the required feature.

HTH,
Alaa

0 votes

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

0 votes

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

0 votes

John-

Your code does work. See attached test case. I am able to open the Project folder and view the file inside.

Julie

0 votes

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.

0 votes

I looked at your files- try “url”: “Admin.html” in Admin.json

That works for me.

 

0 votes

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 !

0 votes

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.

  • edmond girardi answered Jul 10, 2025 - 5:08 pm
  • last active Jul 10, 2025 - 5:09 pm
0 votes

Here’s a sample that works, based on the instructions here:https://docs.wisej.com/docs/concepts/startup

 

Hope this helps,

Julie

0 votes

 

localhost/admin:5000

gives me:

localhost refused to connect.”

  • edmond girardi answered Jul 10, 2025 - 5:02 pm
  • last active Jul 10, 2025 - 5:03 pm
0 votes

I get an error when I try localhost:5000/admin:

 

HTTP Error 404.0 – Not Found

The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

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
0 votes

Try http://localhost:5000/admin

0 votes

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!

0 votes

Hi Gabriele,

We have just updated the GitHub repo with the 4.0 branch, can you please give it a try?

Best Regards,
Alaa

0 votes

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.

Showing 161 - 180 of 11k results