|
Just remember that users can alter cookies so storing a userid in the cookie as the only mechanism for authentication is probably not secure enough. The value needs to be encoded in a way that the user can't alter or "guess" a correct value.
|
|
|
|
|
Hi,
I want to get the Memory usage size of each services which is running on Application Server using C#.net.
How to achieve this.
If anybody knows, please reply me.
Thanks in advance.
|
|
|
|
|
Please do not post the same question in more than one forum.
|
|
|
|
|
I have this function:
$(function() {
$('.AddLink').click(function () {
var quantity = $(this).closest('.product').find('.qty-input').val();
var recordToAdd = $(this).data('id'); // correct usage to access data- attributes
if (recordToAdd != '') { // not sure why you need this (why would it ever be null?)
$.post("/ShoppingCart/AddToCart", { "id": recordToAdd, "qty": quantity }, function (data) {
$('#cart-status').text(data.CartCount);
});
}
});
});
when I run the project from visualstudio it works ok, but when the same code i run from iis on server site it doesn to nothing, the script executes but does nothing, what can be wrong?
|
|
|
|
|
Use a tool like "fiddler" to examine the network traffic when you make the call. It could be that the url you're calling is not valid for your published site as the site is running from a virtual directory, it could be a working URL but your code is throwing an error (again fiddler will let you know what that error is). As we don't have access to your system it is literally impossible for us to know, you need to learn to use tools like fiddler to at least determine what the problem is.
|
|
|
|
|
As you can see in this image below:
http://puu.sh/iMTAd/00a8626cb7.png
The blue buttons are not inside the black div behind, when I use float right and float left the buttons do display inside the header.
However, I think the problem is here that to create the buttons I made a padding around the text which does not get detected as taking up space so it so displays the buttons text in the header, like this image here: http://puu.sh/iMTYE/e04f615cd1.png
Any ideas?
Thanks.
|
|
|
|
|
Rather than posting links to images of the output, post the actual HTML and CSS you're using.
Alternatively, create a JSFiddle[^] which reproduces the problem.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
|
I want to get client side DSC in My Web Application .
|
|
|
|
|
|
Hi,
I am looking for an individual that can train me in the basics of web development using .Net technologies. I do not need to be a developer but I need to be able to communicate with developers at their level. I manage multiple deployment teams and would like to improve my skills in this area. We can work out a payment plan.
Regards,
Harry
|
|
|
|
|
Hello Harry,
Just Contact me on 11mca110@srimca.edu.in
Thank You
Regards,
Anil Vaghasiya
|
|
|
|
|
Insert the Calender park Schedule ,Change all the calender in different colour to block the date for any event, park close and etc.by using mvc with entity frame work for database.
|
|
|
|
|
Is that a question or a statement?
|
|
|
|
|
i want to know about insert tbl
|
|
|
|
|
Member 11811156 wrote: i want to know about insert tbl Well, whatever that means, I suggest using Google to search for information.
|
|
|
|
|
I've run out of ideas with this project. My object is just to update
fields in a database table. The 3 records in the table are shown in the
subsequent report. All the fields have a value and the recur values are 'Y', payrec 'P' and periodic '1 or 6' but nothing is updated.
No errors indicated.
Any help?
<?php
echo "<center>";echo date('m/d/y');echo "</center>";
$id="''";
$periodic = '';
$duedate = '';
$con=mysqli_connect("localhost","user","passwd","mydb");
if(mysqli_errno($con))
{echo "Can't Connect to mySQL:".mysqli_connect_error();}
else
{echo "connected to database</br>";}
$fetch="SELECT
acctno, recur, pd, payrec, bname, duedate, datepaid, purpose, amtdue
FROM testbl
WHERE recur = 'Y' AND payrec = 'P'";
$result = mysqli_query($con,$fetch);
if(!$result)
{echo "Error:".(mysqli_error($con));}
else
{echo "database table selected</br>";}
while($data=mysqli_fetch_row($result))
{
if($periodic == 1)
{ $duedate = date('Y-m-d', strtotime('+4 week')) ."\n"; }
if($periodic == 6)
{ $duedate = date('Y-m-d', strtotime('+25 week')) ."\n"; }
$pd = 'P'; $dayslate = 0;
$sql = "UPDATE testbl SET
duedate = $duedate,
pd = $pd,
dayslate = $dayslate,
datepaid = NOW()
WHERE recur = 'Y' AND payrec = 'P'";
}
header( "refresh:3;url='http://localhost/invoice/autolist.php'");
?>
|
|
|
|
|
You created the UPDATE statement but you forgot to execute it against the database.
|
|
|
|
|
I'm sorry but I don't understand what you're saying?
|
|
|
|
|
You execute the SELECT-query with:
$result = mysqli_query($con,$fetch);
You build the UPDATE-statement:
$sql = "UPDATE testbl SET .... (etc)
..but unlike the SELECT-query you never execute it. Your PHP-code simply ends after building the UPDATE-statement-string.
Sidenote: You replied to your own question instead of Richard's reply, so he didn't get a notification.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
The statement
$sql = "UPDATE testbl SET ...
merely creates a string variable, and then continues the while loop. You never send the string to MySQL to update the database.
|
|
|
|
|
I have a data of more that 500000 records which want to search data and fill in dropdown list. I am using dropdown list its working buts it is very slow
<script type = "text/javascript">
var ddlText, ddlValue, ddl, lblMesg;
function CacheItems() {
ddlText = new Array();
ddlValue = new Array();
ddl = document.getElementById("<%=ddlItems.ClientID %>");
lblMesg = document.getElementById("<%=lblMessage.ClientID%>");
for (var i = 0; i < ddl.options.length; i++) {
ddlText[ddlText.length] = ddl.options[i].text;
ddlValue[ddlValue.length] = ddl.options[i].value;
}
}
window.onload = CacheItems;
function FilterItems(value) {
ddl.options.length = 0;
for (var i = 0; i < ddlText.length; i++) {
if (ddlText[i].toLowerCase().indexOf(value) != -1) {
AddItem(ddlText[i], ddlValue[i]);
}
}
lblMesg.innerHTML = ddl.options.length + " items found.";
if (ddl.options.length == 0) {
AddItem("No items found.", "");
}
}
function AddItem(text, value) {
var opt = document.createElement("option");
opt.text = text;
opt.value = value;
ddl.options.add(opt);
}
</script>
<asp:TextBox ID="txtSearch" runat="server"
onkeyup = "FilterItems(this.value)"></asp:TextBox><br />
<asp:DropDownList ID="ddlItems" runat="server" DataTextField="Description" DataValueField="NumericCode" >
</asp:DropDownList>
|
|
|
|
|
If you're showing 500000 items then a dropdown is the wrong thing to use. Use an autocomplete textbox instead. Google for how to write one.
|
|
|
|
|
Server 2008 R2, IIS 7.5
I've got a user that can't get a website to work for them. Below is the error received. It says "Anonymous"?
??? Anonymous auth is disabled.
I can get to it, so ASP itself is enabled. The server also has multiple classic ASP sites that work fine.
The user is using IE 11 (as am I)
Any ideas?
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Detailed Error Information
Module
IIS Web Core
Notification
MapRequestHandler
Handler
ASPClassic
Error Code
0x80070002
Requested URL
<a href="http://<redacted>/default.asp">http:
Physical Path
C:\inetpub\wwwroot\<redacted>\default.asp
Logon Method
Anonymous
Logon User
Anonymous
|
|
|
|