It’s added by the proxy or load balancer. All server variables depends on the web server. REMOTE_ADDR and REMOTE_HOST return the client IP address. If you see the IP address of the server there is probably a redirection or proxy on your server. I just tested and it all works fine. If your server changes the headers it may be a configuration issue. Either way, Wisej.NET doesn’t change the headers.
If you still have an issue, send a link to a sample hosted application that shows all the server variables:
private void button1_Click(object sender, System.EventArgs e) { this.dataGridView1.RowCount = 0; var vars = Application.ServerVariables; foreach (var name in vars.AllKeys) { this.dataGridView1.Rows.Add(name, vars[name]); } }
Hi Julie,
there’s no HTTP_FORWARDED in IIS server variables, is it something created by wisej?
Glad you were able to resolve the issue!
Julie
It’s not an error to be handled and cannot be handled, it’s already managed by the System.Net.WebSocket library which is not part of Wisej. It’s a normal occurrence for the System.Net.WebSockets.ManagedWebSocket. You found it in the event viewer, not in the application. It’s the websocket throwing an exception of a connection terminated for a variety of reasons.
Julie
Just to have question answered, debug log is possible in web.config
<aspNetCore processPath=“dotnet” arguments=“.\MyApp.dll” stdoutLogEnabled=“false” stdoutLogFile=“\\?\%home%\LogFiles\stdout” hostingModel=“inprocess”> <handlerSettings> <handlerSetting name=“debugFile” value=“.\logs\aspnetcore-debug.log” /> <handlerSetting name=“debugLevel” value=“FILE,TRACE” /> </handlerSettings> </aspNetCore>
more details
Hello,
It’s not a wisej feature or issue. Anything that works with aspnet core works in wisej.
As it’s not a wisej feature it’s out of scope of this support forum.
Julie
Auto for all columm of ddataagrid use:
For Each col As Wisej.Web.DataGridViewColumn In DataGridView1.Columns
ColumnFilter1.SetShowFilter(col, True)
Next
For databound DataGridViews use the functions Fill/Append instead of assigning a DataSource:
https://docs.wisej.com/docs/controls/lists/datagridview#append-and-fill
Best regards
Frank
Hi Steve,
Sorry for the late response, to make a better understanding of what my colleague Julie wrote in a comment earlier, I have attached a sample.
In Window1, we don’t use an iFrame but instead we use the AspNetPanel control, and if you look at WebForms1.aspx.vb, you’ll see that we used a server side event to bring up or create the second form.
HTH,
Alaa
Here’s a simple example running in Wisej 3.5
Click on the search icon in the middle column to filter it.
Note that if you examine columnFilter1 (from the designer) in the properties window, you can see how the properties are set up. The ImageSource is set to icon-search (which is why you see a search icon in the column). The FilterPanelType is set to SimpleColumnFilter. SimpleColumnFilter just shows a list of all possible values to filter by (in this case “ITG”, “Google”, and “Microsoft”).
Hope this helps,
Julie
Hi Adrian, i got your example and compile. The filename proposed in the save file dialog is the one set in the ShowPDF invocation inside the button1_click event handler.
Designer version 3.5.17.8
Nuget Package 3.5.17 (Wisej.Framework.dll 3.5.17.8)
The PDF File is from file or from Stream?
In your example the PDF file is created from a memorystream so the FileName property is not used or infered from PDFSource property.
If you set the PDFSource property with the PDF Filename then FileName have a value.
Why you load the PDFViewer with a memorystream when you have a PDF file?
Does anyone on this forum have any ideas on this?
I tried my best to follow the instructions but it keeps giving errors and can’t work, the sample source you shared doesn’t run on my local machine. Can you guide me with a simple example running on wisej 3.5
This has been fixed internally and a fix will be included with the next version of Wiej.NET
Julie
Hi Julie,
Yes, the behaviour is reproducible in 3.5.17.8. Just run it directly from Visual Studio, On Edge and on Chrome.
New project, on Page1 add a button, and on button click write:
private void button1_Click(object sender, EventArgs e)
{
string file_name = “C:\\Temp\\test.pdf”;
MemoryStream ms = new MemoryStream();
using (FileStream file = new FileStream(file_name, FileMode.Open, FileAccess.Read)) file.CopyTo(ms);
ms.Seek(0, SeekOrigin.Begin);
Application.DownloadAndOpen(“_blank”, ms,”test.pdf”);
}
You must have c:\temp\test.pdf file.
I attached the full project and test.pdf 🙂
Can you try with Wisej 3.5.17 (most recent version) and see if that resolves the issue?
If that does not fix it, please include a reproducible test case.
Julie
ColumnFilter documentation: https://docs.wisej.com/extensions/extensions/columnfilter
Here is a VB.NET sample using ColumnFilter: https://github.com/iceteagroup/wisej-examples-vb/tree/3.5/ColumnFilter
This blog explains how to use ColumnFilter: https://wisej.com/blog/columnfilter/
I don’t know how to use ColumnFilter feature on wisej vb language. Can you guide me or share me the code to integrate ColumnFilter into datagridview? Thank you