Found on how to disable events on the calendar items. On each individual Event object, set the Editable = false.
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,
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
Hi again Mark,
It’s Wisej regression that is fixed and will be part of the next public release.
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
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.
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/.
That’s a VWG particular directory mapping. Wisej doesn’t need it at all. You can address the directories like any ASPNET app.
Application is not global. It refers to the single session, just like Application in WinForms.
IIS Express doesn’t allow external connections. VS can debug IIS. Simply change the debug option to use IIS instead of IIS Express.
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
Hi Tiago,
thank you for sample, very well
Cristian
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.
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.
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
Perfect, thanks so much Luca!
-John
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.
Attached here the sample I sent you privately. Shows a simple technique to drag controls, change the style and crop in a circular container.
Try Anonymous = true.
Anonymous controls are transparent to pointer events.
It was in Blue-3 theme. In Blue-1 theme it has grid lines. I have to get used to it.
