|
|
Dear all,
i have to make the internet explorer settings to default in windows 7 in many systems so i need a help is there any way just by entering ip address of the system we can change the internet explorer settings to default
|
|
|
|
|
It is not possible with a very good reason, It will be a huge security risk.
|
|
|
|
|
|
Message Closed
modified 8-Mar-16 5:34am.
|
|
|
|
|
|
i am only familiar with form authentication. so tell me what others authentication scheme exist for mvc project which we can use ?
what is claim based auth ?
claim based auth is 3rd party auth system ?
we can implement in web site like form auth ?
if claim based auth is 3rd party auth then how it is different from open id or open auth system like facebook, google auth provider.
we use membership or identity to validate user and after validation give user permission to access protected pages . so tell me membership or identity is one kind of advance form authentication or is it totally different technology ?
i heard various term regarding authentication like form auth, token auth, identity, membership, open id, open auth, oauth, social login system. i am very much confused about those term. i want to know briefly about them and also like to know how they work and how they are different from each other.
i search google a lot but not getting any right tutorial which explain all above auth related term properly. so i need some one's help who would nice explain all the above terms and also explain how they works and how they are different from each other. also explain when people use which one.
looking for guidance. thanks
tbhattacharjee
|
|
|
|
|
You're asking a pretty broad and deep question. There are volumes devoted to basic familiarization with each of the terms that you mentioned, and I'm afraid that you're not going to get a definitive answer here.
To hit your over-arching question, though, from a web application POV a claim system is an Authorization system, not an authentication one. In a claim-based system, an Identity Provider (which is a separate service) Authenticates the user and provides them with a token. In the Web paradigm, this is generally in the form of a cookie, but it can also be passed to the application as session data using the application as a pass-through. This token is digitally signed for integrity, and should be unique per session. The token will contain claims, hence the name of the authentication scheme, and those claims should indicate the roles or privileges that the Identification Provider is tracking for that user. The primary take-away here is that in a claim system, your application does not ever perform Authentication, and uses token claims to derive Authorization (which can also be used to derive roles for Role-Based Access Control, or RBAC).
This means that any service that will provide a claim can fill this need: Social media logins, a database, or LDAP. The built-in Windows Authentication scheme uses the local System Accounts Manager(SAM) to resolve identity either locally or through a domain (as appropriate) to provide user claims.
That's the 1000 meter of view of claims. Some of the other terms that you mentioned fit into how claims are delivered.
Membership providers use Authentication data to provide Authorization data. Some claims may have this information in a self-contained format, some may not. Membership is resolved by, surprise, a Membership Provider.
OpenAuth, or OAuth(2) is a framework for interoperability between Identity/Membership providers and external requestors, such as a web application.
That's as comprehensive as I'm getting on a Monday morning.
|
|
|
|
|
Hello
I'm trying to do this from weeks and now I'm very confused and lost. Im really newbie with asp.net , my background is desktop dev.
I'm using asp.net mvc for this project. I have a telerik grid with headers of documents I want with a double click or click a button to show a modal window with data of the headers and a grid whith details of orders.
So far: I have a functional grid with header data, I double click and I can fire the modal window but the grid doesnt show anything I tried with partial views and directly using only the modal.
I tried with jquery only and with telerik grid with pretty much same result.
The controller that returns json data is working. I tried with another view.
Any help, tip, hint would be very apreciated,. Thanks in advance!!!!
This is the code of the view:
```
@model System.Data.DataTable
@{
ViewBag.Title = "Lista de pedidos abiertos de clientes";
}
<script src="~/Scripts/kendo/cultures/kendo.culture.es-MX.min.js"></script>
<script type="text/javascript">
kendo.culture("es-MX");
</script>
<script src="~/Scripts/kendo/messages/kendo.messages.es-ES.min.js"></script>
<h2>PEDIDOS DE CLIENTES ABIERTOS</h2>
@(Html.Kendo().Grid<dynamic>()
.Name("PedidosClientes")
.HtmlAttributes(new { style = "font-size:12px;line-height:2em" })
.Columns(columns =>
{
columns.Bound("NumeroInternoSAP").Title("Número Interno").Width(100);
columns.Bound("Serie").Title("Serie").Width(100);
columns.Bound("NumeroPedidoSAP").Title("No.Pedido").Width(115);
columns.Bound("DocCur").Title("Moneda").Width(100);
columns.Bound("DocStatus").Title("Status").Filterable(true).Width(100);
columns.Bound("Cancelado").Title("Cancelado").Filterable(true).Width(120);
columns.Bound("FechaPedido").Title("Fecha Pedido").Filterable(true).Template(@<text></text>).ClientTemplate("#= kendo.toString(kendo.parseDate(FechaPedido),'dd/MMM/yyyy') #").Width(110);
columns.Bound("FechaEntrega").Title("Fecha Entrega").Filterable(true).Template(@<text></text>).ClientTemplate("#= kendo.toString(kendo.parseDate(FechaEntrega),'dd/MMM/yyyy') #").Width(110);
columns.Bound("DocTotal").Title("Monto Pedido").Filterable(false).Format("{0:#,##0.00}").HtmlAttributes(new { style = "text-align:right" }).Width(120);
columns.Bound("ClienteCodigo").Title("Código Cte.").Filterable(true).Width(100);
columns.Bound("ClienteNombre").Title("Cliente Nombre").Filterable(true).Width(250);
columns.Bound("ProgramaComercial").Title("Programa Comercial").Filterable(true).Width(250);
columns.Bound("Asesor").Title("Asesor").Filterable(true).Width(250);
columns.Bound("IdAdPro").Title("Id AdPro").Width(100);
columns.Bound("LineaDeNegocio").Title("Línea de Negocio").Width(100);
columns.Bound("Sucursal").Title("Sucursal").Width(100);
})
.Pageable()
.Sortable()
.Filterable()
.Groupable()
.Scrollable(s => s.Height(400))
.ColumnResizeHandleWidth(100)
.Selectable()
.ToolBar(tools => tools.Excel())
.Excel(excel => excel
.FileName("DetallePedidos.xlsx")
.Filterable(true)
.AllPages(true)
.ProxyURL(Url.Action("Excel_Export_Save", "DetallePedidos"))
)
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(15)
.Read(read => read.Action("ReadListaCtes", "Home"))
)
)
<div id="Luis" style="display:none">
<div style="margin: 0px 0px 0px 10px !important;">
<label>Nombre del Asesor: </label> <div id="asesor" style="margin-top: -23px !important; margin-left: 10em !important;"><input type="text" id="nombre_asesor" value="" /></div>
</div>
<div style="margin-top: -15px; margin-left: 30em;">
<label>Nombre del Cliente: </label> <div id="cliente" style="margin-top: -22px; margin-left: 10em;"><input type="text" id="ncliente" value="" /></div>
</div>
<div style="margin: 10px 0px 5px 10px !important;">
<label>Programa Comercial: </label> <div id="pcomercial" style="margin-top: -22px; margin-left: 11em;"><input id="ncomercial" /></div>
</div>
<div class="row" style="margin-top: 25px;">
<div class="col-md-4">
<label>Numero SAP: </label> <div id="nsap" style="margin-top: -22px; margin-left: 7em;"><input id="numeroS" type="text" value="" /></div>
</div>
<div class="col-md-4">
<label>Numero de Pedido: </label> <div id="npedido" style="margin-top: -22px; margin-left: 10em;"><input type="text" id="numeroP" value="" /></div>
</div>
<div class="col-md-3">
<label>Status: </label> <div id="status" style="margin-top: -22px; margin-left: 4em;"><input type="text" id="sstatus" value="" /></div>
</div>
</div>
<div style="margin-top: 1em;">
<label>Linea de Negocio: </label> <div id="lnegocio" style="margin-top: -22px; margin-left: 9em;"><input type="text" id="li_negocios" value="" /></div>
</div>
<div style="margin-top: -22px; margin-left: 30em;">
<label>Sucursal: </label> <div id="nsucursal" style="margin-top: -22px; margin-left: 9em;"><input type="text" id="NSucursales" value="" /></div>
</div>
<div style="margin-top: 10px;">
<input id="nDocEntry" type="text" name="nDocEntry" value="">
@(Html.Kendo().Grid<dynamic>()
.Name("DetallePedido")
.Columns(columns =>
{
columns.Bound("DocEntry").Title("#Int SAP").Width(80);
columns.Bound("LineNUm").Title("LineNum").Width(80);
columns.Bound("LineStatus").Title("LineStatus").Width(80);
columns.Bound("ItemCode").Title("ItemCode").Width(120);
columns.Bound("Dscription").Title("Descripcion").Width(500);
columns.Bound("Quantity").Title("Cantidad").Width(75);
columns.Bound("ShipDate").Title("Fecha Envio").Template(@<text></text>).ClientTemplate("#= kendo.toString(kendo.parseDate(ShipDate),'dd/MMM/yyyy') #").Width(110);
columns.Bound("OpenQty").Title("OpenQty").Width(80);
columns.Bound("Price").Title("Price").Filterable(false).Format("{0:#,##0.00}").HtmlAttributes(new { style = "text - align:right" }).Width(110);
columns.Bound("Currency").Title("Currency").Width(60);
columns.Bound("Rate").Title("Rate").Filterable(false).Format("{0:#,##0.00}").HtmlAttributes(new { style = "text - align:right" }).Width(80);
columns.Bound("DiscPrcnt").Title("DiscPrcnt").Filterable(false).Format("{0:#,##0.00}").HtmlAttributes(new { style = "text - align:right" }).Width(80);
columns.Bound("LineTotal").Title("Importe").Filterable(false).Format("{0:#,##0.00}").HtmlAttributes(new { style = "text - align:right" }).Width(80);
columns.Bound("TotalFrgn").Title("TotalFrgn").Filterable(false).Format("{0:#,##0.00}").HtmlAttributes(new { style = "text - align:right" }).Width(80);
columns.Bound("OpenSum").Title("OpenSum").Filterable(false).Format("{0:#,##0.00}").HtmlAttributes(new { style = "text - align:right" }).Width(80);
columns.Bound("OpenSumFC").Title("OpenSumFC").Filterable(false).Format("{0:#,##0.00}").HtmlAttributes(new { style = "text - align:right" }).Width(80);
columns.Bound("VendorNum").Title("VendorNum").Filterable(true).Width(80);
columns.Bound("SerialNum").Title("SerialNum").Filterable(true).Width(80);
columns.Bound("WhsCode").Title("WhsCode").Filterable(true).Width(80);
columns.Bound("SlpCode").Title("SlpCode").Filterable(true).Width(50);
columns.Bound("Commission").Title("Comission").Filterable(false).Width(50);
columns.Bound("TreeType").Title("TreeType").Filterable(true).Width(40);
columns.Bound("TaxStatus").Title("TaxStatus").Filterable(true).Width(40);
columns.Bound("PriceBefDi").Title("Precio Antes Impto").Filterable(false).Format("{0:#,##0.00}").HtmlAttributes(new { style = "text - align:right" }).Width(80);
columns.Bound("DocDate").Title("Fecha Pedido").Template(@<text></text>).ClientTemplate("#= kendo.toString(kendo.parseDate(DocDate),'dd/MMM/yyyy') #").Width(110);
columns.Bound("OcrCode").Title("LineaNegocio").Width(90);
columns.Bound("OcrCode2").Title("Sucursal").Width(90);
columns.Bound("OcrCode3").Title("CentroCosto").Width(90);
columns.Bound("OcrCode4").Title("CentroUtilidad").Width(90);
columns.Bound("OcrCode5").Title("Asesor").Width(90);
columns.Bound("Project").Title("Proyecto").Width(90);
columns.Bound("VisOrder").Title("Orden").Width(80);
columns.Bound("Address").Title("Direccion").Width(500);
columns.Bound("TaxCode").Title("Código Impto").Width(80);
columns.Bound("FreeTxt").Title("Texto Libre").Width(170);
columns.Bound("unitMsr").Title("UM").Width(80);
columns.Bound("LineType").Title("Tip.Linea").Width(80);
columns.Bound("Text").Title("Texto").Width(500);
columns.Bound("ShipToCode").Title("Código Envío").Width(120);
columns.Bound("ShipToDesc").Title("Descrip.Dir.Envío").Width(500);
columns.Bound("U_Estatus").Title("Estatus Partida").Width(90);
columns.Bound("U_Observaciones").Title("Observaciones").Width(200);
columns.Bound("U_Comentarios").Title("Comentarios").Width(200);
columns.Bound("U_ObsLogistica").Title("Observaciones Log").Width(200);
columns.Bound("U_Sucursal").Title("Sucursal").Width(80);
columns.Bound("U_Pcomer").Title("Programa Comercial").Width(200);
columns.Bound("U_Cantidad").Title("Cantidad Pedido").Width(70);
columns.Bound("U_NumPedido").Title("Pedido No.").Width(90);
columns.Bound("U_NumArticulo").Title("No.Articulo").Width(90);
}
)
.Pageable()
.Sortable()
.Filterable()
.Scrollable(s => s.Height(300))
.ColumnResizeHandleWidth(110)
.DataSource(dataSource => dataSource
.Ajax()
.Read(read => read.Action("Read_Pedido_Detalles2", "Pedido", new { name = "docEntry2", id = "nsap" }))
)
)
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$(document).on("dblclick", "#PedidosClientes td[role='gridcell']", function (e) {
var grid = $("#PedidosClientes").data("kendoGrid");
var selectedRow = grid.select();
var data = grid.dataItem(selectedRow);
var contenedor = document.getElementById("asesor");
var nombre_asesores = data.Asesor;
var nombres = document.getElementById("nombre_asesor");
nombres.value = nombre_asesores;
contenedor.innerHTML = nombre_asesores;
var contenedor = document.getElementById("cliente");
var nombre_cliente = data.ClienteNombre;
var cliente = document.getElementById("ncliente");
cliente.value = nombre_cliente;
contenedor.innerHTML = nombre_cliente;
var contenedor = document.getElementById("pcomercial");
var nombre_cliente = data.ProgramaComercial;
var cliente = document.getElementById("ncomercial");
cliente.value = nombre_cliente;
contenedor.innerHTML = nombre_cliente;
var contenedor = document.getElementById("nsap");
var nombre_cliente = data.NumeroInternoSAP;
var cliente = document.getElementById("numeroS");
cliente.value = nombre_cliente;
contenedor.innerHTML = nombre_cliente;
var contenedor = document.getElementById("npedido");
var nombre_cliente = data.NumeroPedidoSAP;
var cliente = document.getElementById("numeroP");
cliente.value = nombre_cliente;
contenedor.innerHTML = nombre_cliente;
var contenedor = document.getElementById("status");
var nombre_cliente = data.DocStatus;
var cliente = document.getElementById("sstatus");
cliente.value = nombre_cliente;
contenedor.innerHTML = nombre_cliente;
var contenedor = document.getElementById("lnegocio");
var nombre_cliente = data.LineaDeNegocio;
var cliente = document.getElementById("li_negocios");
cliente.value = nombre_cliente;
contenedor.innerHTML = nombre_cliente;
var contenedor = document.getElementById("nsucursal");
var nombre_cliente = data.Sucursal;
var cliente = document.getElementById("NSucursales");
cliente.value = nombre_cliente;
contenedor.innerHTML = nombre_cliente;
var nDocEntry = data.NumeroInternoSAP;
contenedor.innerHTML = nDocEntry;
createKendoWindow(data.NumeroInternoSAP);
});
});
</script>
<div id="dialog"></div>
<script>
function testwindow(contenido) {
$("#dialog").kendoWindow({
content: "http://www.telerik.com/",
iframe: false
});
}
</script>
<script id="ventana" type="text/javascript">
function createKendoWindow(contenido) {
$(document).ready(function () {
$("#Luis").kendoWindow(
{
title: "Detalles de Pedido",
modal: true,
resizable: true,
width: 1024,
visible: true,
minHeight: 460,
position: {
top: 20,
left: 150
},
animation: {
open: {
effects: "expandVertical",
duration: 1500
},
},
close: function () {
setTimeout(function () {
$('#Luis').kendoWindow('destroy');
}, 300);
document.location.reload(true), 1500;
}
});
});
}
</script>
```
|
|
|
|
|
Dear All,
I have a web portal running on my intranet. Now i want to design a windows client in which when user logs in for a particular machine for a day, then if he hits the web portal link then it must not ask to log in with its username and password again. Please suggest.
ashish sharma
|
|
|
|
|
Don't you trust your users and website content with cookies?
A website can always store a cookie on users device and then exchange it to see if he logged in today. If his last visit was from within 24 hours, then show him the content. Otherwise, redirect him to the authentication page.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
No dear. i am not using cookies so far. But my aim is to get in always online mode once user logs into my client.
But i think you are suggesting me to use website cookies to get in always online mode.
Most importantly in my case there are multiple users who uses same workstation at alternatively.
ashish sharma
|
|
|
|
|
Hi,
I am using File Upload and I am limiting the file size limit in the Web config, when user uploads the exceeding limit the page is giving error message file size limit exceeds. Is there any way I can stop user from uploading the file more than the limit in first place. Because this error is coming after user selects the file and tries to save the page. But before that is user is stopped and said he is exceeding the limit that's nice either from the front client script or sever side code. Thanks in advance. I have used all the below code using client scripting and none of them returning file size.
Here is the code
function CheckImageTypeAndSizeEdit() {
$("#<%=lbl_uploadFilePathFullEdit.ClientID %>").text('No file chosen');
var fileName = $('input[type=file]').val();
var fileSize;
var ext = fileName.substr(fileName.lastIndexOf('.') + 1).toLowerCase();
if (!(ext == "docx" || ext == "doc" || ext == "pdf")) {
alert("Invalid file type, must select a *.doc, *.docx, or *.pdf file.");
$("#<%=lbl_uploadFilePathFullEdit.ClientID %>").text("");
$('input[type=file]').val('');
$("#<%=lbl_uploadFilePathFullEdit.ClientID %>").text('No file chosen');
return false;
}
else {
$("#<%=lbl_uploadMessageEdit.ClientID %>").text("");
$("#<%=lbl_uploadFilePathFullEdit.ClientID %>").text($('input[type=file]').val());
}
try {
fileSize = aspFileUpload.files[0].size;
alert(fileSize);
} catch (e) {
try
{
var objFSO = new ActiveXObject("Scripting.FileSystemObject");
var e = objFSO.getFile(fileName);
fileSize = e.size;
alert(fileSize);
}
catch (a)
{
var file_list = e.target.files;
for (var i = 0, file; file = file_list[i]; i++) {
var sFileName = file.name;
var sFileExtension = sFileName.split('.')[sFileName.split('.').length - 1].toLowerCase();
var iFileSize = file.size;
var iConvert = (file.size / 1048576).toFixed(2);
if (!(sFileExtension === "pdf" ||
sFileExtension === "doc" ||
sFileExtension === "docx") || iFileSize > 10485760) { txt = "File type : " + sFileExtension + "\n\n";
txt += "Size: " + iConvert + " MB \n\n";
txt += "Please make sure your file is in pdf or doc format and less than 10 MB.\n\n";
alert(txt);
}
}
}
}
}
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
Yes, this can be tricky - it took me years to come up with a decent solution. Client side, here's a .js function I cribbed together from various things I found here on CP over the years - attach it to the onchange event of your Fileupload control
function checkFile(what, mb, iLen, types) {
var msg = '';
var source = what.value;
var i = source.lastIndexOf('\');
var j = source.lastIndexOf('.');
var fName = source.substring(i + 1, j);
var ext = source.substring(source.lastIndexOf(".") + 1, source.length).toLowerCase();
var exts = types.split(',');
var fileTypeAllowed = false;
for (var k = 0; k < exts.length; k++) {
if (ext == exts[k]) {
fileTypeAllowed = true;
break;
}
}
if (fileTypeAllowed == true) {
var regex = /^[A-Za-z0-9_ -]{1,1024}$/;
if (!regex.test(fName)) {
msg = 'The file name contains illegal characters\n Please re-name the file using only alphanumeric characters, hyphens, spaces and underscores\n';
}
} else {
msg = 'Please upload files of the following types only:\n ' + types + '\n';
}
if ((iLen > 0) && (fName.length > iLen)) {
msg += 'The file name is too long\n Please restrict it to ' + iLen.toString() + ' characters.\n';
}
var fileSize = what.files[0].size;
var iMax = mb * 1024 * 1000;
if (!((fileSize > 0) && (fileSize <= iMax))) {
msg += "The file size should be greater than 0 and less than " + mb.toString() + "MB\n";
}
if (!(msg == '')) { what.value = null; alert(msg + '\n' + fName + '.' + ext); }
}
Server side, you can add this to the Application_BeginRequest event in global.asax (VB code) - after adjusting the number of bytes according to what you want
Dim sUrl As String = Request.Url.ToString.ToLower
If Request.ContentLength > 4096000 Then
Response.Redirect([full path to some nice error page])
End If
Hope this helps.
|
|
|
|
|
Thanks it worked for me buddy .
Thanks,
Abdul Aleem
"There is already enough hatred in the world lets spread love, compassion and affection."
|
|
|
|
|
|
Oh! OK, ta - still, anyone still using IE9 or earlier does so at their own risk, IMO, so tough!
|
|
|
|
|
I joined as a fresher in one of the company.They are not providing training to me.So, they are telling to learn your self own.How can i gain more knowledge on these technologies like C#.net,Asp.net MVC,Jquery,Angular js.So, i need tasks which can i improve my knowledge.Is there articles or material which is useful to me just mail me machamanikanta222@gmail.com
|
|
|
|
|
|
Thanks for your reply.But i need C# with Asp.net mvc using 3-tier architecture sample examples.
|
|
|
|
|
Yes, I understand that, but it is your job to go and look for them. If you aspire to be a developer then you need to spend a lot of time searching for information yourself, studying it, and working to improve your skills.
|
|
|
|
|
|
Goto http://asp.net there are tons of stuff there
<tag>I have no tag
|
|
|
|
|
Do. google, you will get lots of tutorials sites like asp.net, w3schools,tutorialspoint, codeproject etc.
But one think that keep in your mind, you have to practice yourself in continue basis.Only you can help or improve yourself.
|
|
|
|
|
Has anyone looked at combining the above as a quick method of providing a Win10 Metro UI interface to a website?
I have incorporated the Metro-UI News Portal Template into a standard ASP.NET MVC project. It is giving me a jQuery error when I run it. However, if I just select continue, the web page is displayed correctly. Hmmm?
|
|
|
|
|