All Answers

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.

0 votes
In reply to: Wisej and FastReport

It depends on how you present the reports to the end user. If you export the report in PDF (or other format) you can also use the WinForm version, since you only have to use the rendering engine (and obviously the designer to draw the report). If instead you want to encapsulate the interactive Web viewer inside an html panel or asp panel you must use the Web edition even if according to the documentation the WindForms version also has a WebForms viewer (ASP.NET).
Consider that if you only need some image PDFs (not text) of a few pages you can also use the Community version of FastReport.
Alternatively, if you use PDF export and remain in .NET 4.8 you can use the CrystalReport engine without problems (and with a little work also use the ASP.NET viewers of Crystal Report, of which I think someone on the forum posted a wrapper for Wisej.NET)
Otherwise, if you want a complete engine with a complete designer at zero cost, there is always the local engine of SSRS (Reporting Services)
Frankly, I recommend in the order SSRS, CrystalReports. FastReports only if you need to be multiplatform (Windows Linux…)

Showing 181 - 200 of 11k results