All Answers

0 votes

Found on how to disable events on the calendar items.  On each individual Event object, set the Editable = false.

  • Robert J answered Jul 2, 2018 - 5:45 pm
  • last active Jul 3, 2018 - 1:56 pm
0 votes

Application.MainPage is set when the session starts. There is no “application running” on the server that sets or loses MainPage. Different sessions (users, clients) can have different MainPages.

The sample doesn’t set MainPage because the ASPNET ashx handler is a static (stateless) handler that calls a staic method. There is no session. You are adding to a shared (static) list. It would make no sense to have Application.MainPage created or restored without a session.

HTH

  • Luca answered Jul 3, 2018 - 1:46 pm
0 votes

Luca,

Simple test attached.

Run it and send a request with params. such that the handler is called, which in turn calls “AddClient” in Program module.

Within AddClient, if you look at Application.MainPage – it is “Nothing”.

Because it’s nothing while the app. is running, what’s the point in setting it in the first place?

Thanks

Darren

  • Darren answered Jul 3, 2018 - 1:11 pm
0 votes

Hi again Mark,

It’s Wisej regression that is fixed and will be part of the next public release.

  • Tiago (ITG) answered Jul 2, 2018 - 11:35 am
  • last active Jul 2, 2018 - 7:36 pm
0 votes

I mean that i want detect some crawlers like google search engine crawler or others search engines, I want to know when last visit for indexing or ranking my page

  • Ser Gar answered Jul 2, 2018 - 4:08 pm
  • last active Jul 2, 2018 - 4:08 pm
0 votes

The style of the buttons is defined in the themes. You can either use simply an image control, or change the visual style of the button in a theme mixin, add this to remove the border in /Themes/Application.mixin.theme. See also https://wisej.com/docs/html/ThemeBuilder.htm

{
“name”: “Application”,
“appearances”: {
“my-button”: {
“inherit”: “button”,
“states”: {
“default”: {
“styles”: {
“width”: 0
}
}
}
}
}
}

This will remove the border to buttons that use the AppearanceKey “my-button”. You can set the AppearanceKey property on each button. If you change the name “my-button” to “button” it will override all buttons.

 

  • Luca answered Jul 2, 2018 - 3:38 pm
0 votes

It’s not a Wisej feature, it’s part of the web server layer. You can use any IIS filters or Apache/NGINX rules for that. This could be useful https://sublimecoding.com/blocking-bots-in-iis/.

 

 

  • Luca answered Jul 2, 2018 - 3:26 pm
0 votes
In reply to: Directory Reference

That’s a VWG particular directory mapping. Wisej doesn’t need it at all. You can address the directories like any ASPNET app.

  • Luca answered Jul 2, 2018 - 3:18 pm
0 votes

Application is not global. It refers to the single session, just like Application in WinForms.

  • Luca answered Jul 2, 2018 - 3:17 pm
0 votes

IIS Express doesn’t allow external connections. VS can debug IIS. Simply change the debug option to use IIS instead of IIS Express.

  • Luca answered Jul 2, 2018 - 3:16 pm
0 votes
In reply to: Client IP address

Hi there,

In a dev. environment, I found that “REMOTE_ADDR” always returned 127.0.0.1

“HTTP_FORWARDED” got the client address and port for me.

Darren

  • Darren answered Jul 2, 2018 - 2:06 pm
0 votes

Hi Tiago,

thank you for sample, very well

Cristian

0 votes

System.Drawing.Image.FromStream requires that the stream stays open for the entire lifetime of the image object, but the file streams returned in System.Web.HttpFileCollection are closed when the request is completed. Basically it loads the image progressively. When you debug or paint the image it forces the System.Drawing library to load the stream.

You can use new Bitmap(Image.FromStream()), or copy the stream into a memory stream. If you use new Bitmap(Image.FromStream()) and you upload an animate gif it will become just an image. For animated gifs it needs a stream. Look at the UploadFiles example. The code is also on github, see Window1.cs.

 

  • Luca answered Jul 1, 2018 - 4:00 pm
0 votes

I gave you the wrong info. Control.Anonymous makes the control ignore the pointer events and let them bubble up to the parent. There is only one way to make an element transparent to the pointer, set the CSS: pointer-event: none. I works only on Chrome and maybe FireFox.

If you place an element in front of another it will catch the events, unless you set pointer-events: none.

  • Luca answered Jun 29, 2018 - 10:03 pm
0 votes

So I took your example, and incorporated it into my app, with some modifications.

I have an outer panel, and an interior panel with a dashed line (similar to the one you saw in my first version). When I add an image, I “BringToFront” the dashed line so that it overlays the image. Even though I set it to “Anonymous”, I can’t drag the picture. (I can if I click outside the rectangular boundary of the inner circle.)

If there’s a better way to overlay a dashed circle, I’m up for that also.  🙂

Thanks!

-John

0 votes

Perfect, thanks so much Luca!

-John

0 votes
In reply to: Using html forms

You don’t need Wisej to handle legacy html forms. Simply use an aspx page. It can be displayed in an IFramePanel or AspNetPanel control. See attached sample.

  • Luca answered Jun 29, 2018 - 6:49 pm
0 votes

Attached here the sample I sent you privately. Shows a simple technique to drag controls, change the style and crop in a circular container.

  • Luca answered Jun 29, 2018 - 5:59 pm
0 votes

Try Anonymous = true.

Anonymous controls are transparent to pointer events.

  • Luca answered Jun 29, 2018 - 5:56 pm
0 votes

It was in Blue-3 theme. In Blue-1 theme it has grid lines. I have to get used to it.

  • mgmst answered Jun 29, 2018 - 12:49 pm
Showing 7181 - 7200 of 11k results