All Answers

0 votes

Hi Alex,

We tried in many ways but always get a valid session. The Wisej session is restored in Wisej.Core.HttpModule (configured in Web.config) when processing HttpApplication.BeginRequest for pages ending in aspx or cshtml. But in some cases the thread firing BeginRequest is different from the thread executing the Asp.Net page.

You can also restore the Wisej session using Application.RestoreSession(context). You can place that in Page.Loado or Page.Init, or anywhere before using the Wisej session.

Try this and let me know:

protected override void OnLoad(EventArgs e)
{
Wisej.Web.Application.RestoreSession(this.Context);
}

Best,
Luca

  • Luca answered Dec 5, 2016 - 9:34 pm
0 votes

Thank you. Logged. We also added new ContextMenu.Show() methods to use the several positioning options offered by the library.

Best,
Luca

  • Luca answered Dec 5, 2016 - 9:27 pm
0 votes
In reply to: Extension binaries

Hi Alex,

Sorry about that. Will add. You can also install the latest Microsoft compilers for VS2013 here: https://www.nuget.org/packages/Microsoft.Net.Compilers/

You’ll get the syntax errors in the editor only but the compiler will work since it’s the same as in VS2015.

Best,
Luca

  • Luca answered Dec 5, 2016 - 9:26 pm
0 votes

After March 2017.

Best,
Luca

  • Luca answered Dec 5, 2016 - 9:23 pm
0 votes

Hi Alex,

1) WebView is like the windows forms WebBrowser control. As you can read on https://developer.android.com/guide/webapps/webview.html

“If you want to deliver a web application (or just a web page) as a part of a client application, you can do it using WebView. The WebView class is an extension of Android’s View class that allows you to display web pages as a part of your activity layout. It does not include any features of a fully developed web browser, such as navigation controls or an address bar. All that WebView does, by default, is show a web page.”

2) The end product of Wisej.Mobile is an APK that includes a WebView. A WebView can do one of two things: load its content from an URL or  can include JavaScript that controls your Android application. I don’t know whether Wisej.Mobile allows for both options.

3) According to Luca’s previous answers, Wisej.Mobile is like Wisej.Web but using mobile controls instead of web controls.

4) Yes, just like any other APK.

5) Not as soon as we all want 😉

If you must go for native developement, be prepared:

  • have a look at https://en.wikipedia.org/wiki/Android_version_history
  • ask for specific targets OS levels (I found BIG differences between KitKat and Lollipop)
  • ask for specific target devices (you will find resolution is totally unrelated to device size)
  • ask to have target devices available so you can test when you want/need (test early, test a lot)
  • do not use emulators, but use real devices
  • spend a lot of time understanding how to design for different size and resolution
  • spend some time understanding the lifecycle (again test a lot)
  • spend time understading themes
  • spend more time exploring components – Android API is pretty naked. You need to use components for a lot of features you would deemed basic, like percentage sizes or autosize “labels”
  • do believe your eyes when a device doesn’t do what it’s supposed to do (I have a Crown tablet that doesn’t allow to select the maximum date on the DatePicker)

Estimate time as you would do for a Wisej.Web project, then multiply by… it depends on the project size.

If the APK must run everywhere, you must have a generous maintenance contract so you can update the project whenever your client finds a very cheap tablet that has some issues with your app.

Now I understand why there are so many updates on mobile apps. It’s not about new features; it’s about new devices.

I expect Wisej.Mobile to take us back to the more normal web world. 🙂

  • Tiago (ITG) answered Dec 5, 2016 - 1:20 am
  • last active Dec 5, 2016 - 1:48 am
0 votes

Dear Frank,

Thanks for your answer.

However, this is exactly what I’m doing. In fact, when I run the application you sent, I see the same Null reference exception I saw in my code. Wisej.Web.Application.OpenForms is null, exactly as Wisej.Web.Application.Session was null, in what I had tried.

Best,
Alex

0 votes

Hi Alex,

here is a basic sample for that kind of integration that should also give you an understanding for your problem.

http://wisej.s3.amazonaws.com/support/attachments/Wisej.AspNetFormIntegration.zip

Is the ASP page perhaps in a different site of the same server ?

Hope that helps.

Best regards
Frank

 

0 votes
In reply to: Solved: AspNetControl

Hi guys,

Can I ask/suggest to reconsider the order of answers to a support forum thread? With the pushing upwards of the “great answers”, “best answer” etc, it becomes impossible to follow the flow, at least form me, i.e. somebody who was not involved in the conversation from start, so I haven’t seen the answers before. In the present thread, the answer dates are ordered: November 9/9/14/10/18/18/17/15/15/15/11/10 … With the final being somewhere in the middle and the best answer being on top, which, however was not the final.

Best,
Alex

 

0 votes

Hi Tiago and Luca,

A few days ago I was asked to give an estimate of time/cost for an application that will run on Android and iOs… And since I wouldn’t like to start learning native development right now, I would like to ask some questions from a completely illiterate’s on mobile development point of view:

  1. what is WebView — is it something that we won’t need/cannot use if we develop with Wisej mobile?
  2. if I understand correctly, the resulting from wisej mobile web site, will be available either in the web browser of the mobile device (in such a case, in all mobile devices, no matter what operating system they run) or as a “fake” native application through PhoneGap?
  3. will wisej mobile development be like wisej web? i.e. forms/usercontrols/events etc, following the winform paradigm?
  4. can the resulting web site be “wrapped” somehow so that it is “downloaded”/”installed” to the mobile device from Google Play/App Store/Windows Store?
  5. What is the ETA for Wisej mobile (even a beta that can be taken for a test drive)?

Best regards,
Alex

 

0 votes

It is working for me now and quite nicely.

It seems that my test application is cross linked to a windows form that is not visible in my project.

0 votes

Frank, I have successfully recreated the issue in a sample app.  I just emailed it to you, please confirm you received it.

The app consists of two forms and a single user control.  Window1 contains a single login button, which fires an event to display Window2.  On Window2_Load I call the function “LoadACrapTonOfUserControls()” which instantiates UserControl1 20 times using this line.

object hostObject = Activator.CreateInstance(typeof(UserControl1));

This causes UserControl1 to not be displayed in Window2.  If you comment out the “LoadACrapTonOfUserControls()” function, UserControl1 is displayed properly.  This exactly recreates the issue we have in our application.

Now it’s time for an early happy hour.

Thanks
Andrew

  • redcard answered Dec 2, 2016 - 4:42 pm
0 votes
In reply to: URL arguments

Hi Sebastian,

I have setup a small sample that shows to extract the URL parameters:

Download the sample here

Hope that helps.

Best regards
Frank

0 votes

Hi Andrew,

it´s possible that we are already working on a related issue and it could already be fixed in our build.

Are the long running tasks invoked in your MainForm on load ? We will try to reproduce the problem on our side.

A screen capture video could help, please send it to frank@iceteagroup.com , thanks !

I will contact you privately if we need more information or a webex session to track it down.

Best regards
Frank

0 votes
In reply to: Task bar

Hi,

yes it is already been worked on.

We´ll keep you updated.

Best regards
Frank

0 votes

 

 

See the icon on the Window, and see the icon in Taskbar.

 

Thanks.

  • Mark Villela answered Dec 1, 2016 - 7:07 pm
0 votes

Hi Mark,

We don’t have plans to write a converter. Our sister service company fecher has a suite of converters from WinForms, VB6 and VWG (not sure) to .NET and Wisej. However, we’ll provide a simple (incomplete) basic guide is the help docs.

Best,
Luca

  • Luca answered Dec 1, 2016 - 6:52 pm
0 votes

We found the issue related to this – being fixed.

/Luca

  • Luca answered Dec 1, 2016 - 6:48 pm
0 votes

Rough ETA -> before xmas.

Best,
Luca

  • Luca answered Dec 1, 2016 - 6:47 pm
0 votes

Sure we can fix it. Would you please attach a screebshot so I make sure we are looking at the same thing?

Thanks,
Luca

  • Luca answered Dec 1, 2016 - 6:47 pm
0 votes
In reply to: URL arguments

Hi Sebastian, the arguments go after the URL:

http://localhost/myapp?arg1=hello

In your code you will find the startup arguments in Program.Main(NameValueCollection args) and always in Application.QueryString (which uses the same collection as HttpContext.QueryString).

AlertBox.Show(Application.QueryString[“arg1”]);

Best,
Luca

  • Luca answered Dec 1, 2016 - 6:46 pm
Showing 9981 - 10000 of 11k results