|
Is the user actually authenticating to your application? You need to make sure anonymous authentication is turned off, and Kerberos/Windows authentication is turned on.
Depending on your group policy settings, Internet Explorer, Edge, and Chrome should automatically sign the user in to any site which is part of IE's "local intranet" zone. Firefox will need additional configuration in the about:config page:
network.automatic-ntlm-auth.allow-proxies = Truenetwork.negotiate-auth.allow-proxies = Truenetwork.automatic-ntlm-auth.trusted-uris = comma-separated list of host names which should use integrated authentication
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi Richard,
Great to hear from you sir.
Hope you are staying safe.
I just turned off Anonymous Authentication and enabled Windows Authentication and now it works.
The only issue (a minor one) is that unlike running on my local machine where the application automatically authenticates my account and allows me in, the application is asking me to sign in using my Windows account.
Once this is done, I am automatically in and it works now.
When this app runs on our production server, users are not explicitly asked to sign in. Their identities are automatically recognized and they are in without having to sing in.
Oh well, this is our test site. I guess we have to deal with having to sign in all the time.
UPDATE: I set .Net Rules in IIS as well to deny anonymous users and now it is no longer challenging for authentication.
Many thanks. You have never failed me. Thank you sir.
modified 11-Dec-20 9:31am.
|
|
|
|
|
|
Sorry sir, I forgot to close this out.
Thank you again for your continued assistance.
|
|
|
|
|
In our web solution we have a WebAPI solution, a WebApplication and a local ADFS server.
ADFS server need be setup with exact URL of web app....
For simplicity sake we decided to use (local) IIS hosting and debugging, as in "<a href="http://localhost/myAPI">http://localhost/myAPI</a> " and "https://localhost/myWebApp "
The problem starts when.. and HTTPS app need a certificate...
So I got to:
IIS Management Studio > Default Web Site > Bindings...
And add the ISS Express Development Certificate.
Unfortunately, it feels like Visual Studio is deleting that setting every second time I press F5 / try to debug. And I continuously have to open IIS Management Console and setup the HTTPS binding again and again and again.
Any idea what's going on and fix that bummer?
|
|
|
|
|
@{
foreach (var item in (List<TarefasModel>)ViewBag.MostrarTarefas)
{
<tr>
<td><button type="button" class="btn btn-warning" data-toggle="modal" data-target="'#Modalpopup + @item.Id'">Editar</button></td>
<td>@item.Id</td>
<td>@item.NomeTarefa</td>
<td>@item.Descricao</td>
<td>@item.Atribuido</td>
<td>@item.DataVencimento</td>
<td><button type="button" class="btn btn-success" onclick="Excluir(@item.Id)">Concluido</button></td>
</tr>
}
}
</tbody>
I need pass the ID in modal . I try this :
<td><button type="button" class="btn btn-warning" data-toggle="modal" data-target="'#Modalpopup + @item.Id'">Editar</button></td>
But this not work
|
|
|
|
|
How about you start with the documentation?
Modal · Bootstrap v4.5 - Varying modal content[^]
If that doesn't help, you're going to need to explain what "not working" means, and show the markup and script for your modals.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi Friends,
we are integration our application with Azure AD.
After integration application is not working in Chrome and Edge browser, but works in IE.
In Chrome and Edge its navigating to login and after successful login getting redited to Internet Information Services (Windows Server) Page.
During debug, found below line gives Object Reference error in Edge and Chrome browser, whereas giving value in IE.
System.Security.Claims.ClaimsPrincipal.Current.FindFirst("preferred_username").Value
Thanks In Advance,
|
|
|
|
|
|
I designed a login page but currently i created users on SQL server that I use as users on the login page.
I will like users to login using their windows authentication.
|
|
|
|
|
|
How to generate enter key press without pressing enter key from the keyboard.
Is it possible using jquery ?
Suppose In C# I found
SendKeys.Send("{ENTER}");
like that how it is possible in jquery or Javascript.
|
|
|
|
|
Member 12160780 wrote: Is it possible using jquery ? No, since it is a security issue.
However, why would you want to? There is very likely a better way to do what you want to do.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Actually I am going to make a web application from where I send a whatsapp message using whatsapp.web. So I send a number and message dynamically and bind with that url. It takes me new tab with specific person(number) and message. Now If I pressed enter key then message can go. For that I need to do this.
Though there is a lots of way to integrate whatsapp message using api or else. But all of them are paid.
|
|
|
|
|
Member 12160780 wrote: . Now If I pressed enter key then message can go Pressing Enter probably is submitting the form so what you can do is google on how to emulate submitting a form with c#. You'll basically do the post yourself.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Hi,
I need help to show information in modal.
<pre><div class="modal fade" id="Modalpopup" onclick="Editar" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Row ID
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save</button>
</div>
</div>
</div>
Function Event click:
eventClick: function (events) {
$('#Modalpopup').modal();
},
<pre><script>
function Editar(id) {
window.location.href = "../Agenda" + id;
}
I have a error in my last code because i use this for show in new page. And now i want show in modal.
|
|
|
|
|
And what is the error?
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Not a error in display but error where not push information to modal
|
|
|
|
|
I have no idea what that means.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
You don't actually have any code to show the modal. I don't know what eventClick goes to. And then you have a function which changes the url to a new page. Not sure what that has to do with it.
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Hi All,
Please provide source code in MVC to display 3 Tabs and display the details in each tab.
For example I need like Emp, Dept, Mgr details. If I click on Emp Tab then Employee details should display, similarly Dept details should display after clicking
on Dept Tab and Manager details should display on click on Mgr tab. All details should display from database.
Please suggest.
Thanks,
SagarPallavi
|
|
|
|
|
This site does not provide code to order. Please do your own research.
|
|
|
|
|
Hi,
I need help for add a new event in full calendar.
I need button ou click in day for open popup where add itens .
<pre><script>
$(function () {
CriarEventosCalendario();
});
function CriarEventosCalendario() {
var events = @Json.Serialize(ViewBag.ListaEventos);
@{
foreach(var item in (List<AgendaModel>)ViewBag.ListaEventos)
{<text>events.push({
'id': @item.Id,
'title': '@item.Title',
'start': '@item.Start',
'end': '@item.End',
'allDay': false,
'color': '@item.Color',
'textColor': '@item.TextColor'
});</text>
}
}
var calendarEl = document.getElementById('calendar');
var calendar = new FullCalendar.Calendar(calendarEl, {
plugins: ['interaction', 'dayGrid'],
header: {
left: 'prevYear,prev,next,nextYear today',
center: 'title',
right: 'dayGridMonth, dayGridWeek, dayGridDay'
},
eventClick: function () {
},
navlinks: true,
editable: true,
eventLimit: true,
selectable: false,
eventClick: function (evenObj, jsEvent, view) {
alert('Event: ' );
},
events: events,
});
calendar.render();
}
</script>
Thanks for your help
|
|
|
|
|
Have you read the documentation? Where exactly are you stuck?
Social Media - A platform that makes it easier for the crazies to find each other.
Everyone is born right handed. Only the strongest overcome it.
Fight for left-handed rights and hand equality.
|
|
|
|
|
Converting pdf files to image so that i can then encrypt the images converted. In my case pdf to jpg. My code will convert each pdf page to an individual image file. So that if the pdf file contains 3 pages I end up with 3 jpg. I then take the 3 images and merge them together to create one big image.
I noticed that if I removed the 3 images from the file system the one bigger image will not display the image. It's as if I removed a reference to the 3 images. And will not display the bigger image properly. Here's the code to convert pdf to images image merge. In this case there are 5 jpg images I merge to one jpg. I don't understand why the merged image will not display the 3 images merged.
Below are the 2 functions to do the convert and merge.
static void PDF2Image()
{
List<string> listOfFiles = new List<string>();
System.Drawing.Bitmap finalImage = null;
int pgs = 0;
System.Drawing.Image img;
string xFile = string.Empty;
FileStream stream;
try
{
string path = @"c:\temp\pdf2Image\";
PdfDocument documemt = new PdfDocument();
documemt.LoadFromFile(@"c:\temp\pdf2Image\DDDDDD.pdf");
pgs = documemt.Pages.Count;
for (int i = 0; i < pgs; i++)
{
img = documemt.SaveAsImage(i, 600, 600);
img.Save(@"c:\temp\pdf2Image\DDDDDD" + "_" + i + ".jpg");
xFile = @"c:\temp\pdf2Image\DDDDDD" + "_" + i + ".jpg";
listOfFiles.Add(xFile);
img.Dispose();
}
documemt.Close();
}
catch (Exception ex)
{
throw;
}
Image2Merge(listOfFiles);
}
public static System.Drawing.Bitmap Image2Merge(List<string> listOfFiles)
{
string imgPath = @"c:\temp\pdf2Image\";
string imgType = "*.jpg";
List<System.Drawing.Bitmap> images = new List<System.Drawing.Bitmap>();
System.Drawing.Bitmap finalImage = null;
int width = 0;
int height = 0;
try
{
foreach (string image in Directory.GetFiles(imgPath, imgType))
{
System.Drawing.Bitmap bitmap = new System.Drawing.Bitmap(image);
width += bitmap.Width;
height = bitmap.Height > height ? bitmap.Height : height;
images.Add(bitmap);
}
finalImage = new System.Drawing.Bitmap(5000, height);
using (System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(finalImage))
{
int offset = 0;
foreach (System.Drawing.Bitmap image in images)
{
image.SetResolution(72, 72);
g.DrawImage(image, new System.Drawing.Rectangle(offset, 0, image.Width, image.Height));
offset += image.Width;
image.Dispose();
}
}
return finalImage;
}
catch (Exception ex)
{
if (finalImage != null)
finalImage.Dispose();
throw;
}
finally
{
finalImage.Save(@"c:\temp\pdf2Image\DDDDDD.jpg", ImageFormat.Jpeg);
foreach (string xFile in listOfFiles)
{
}
}
}
|
|
|
|