|
mainly i need to know how to identify how many users logged in my website by using asp.net
|
|
|
|
|
Karthikeyan_Annadurai wrote: i need to know how to identify how many users logged in Keep that information in your user database on the server.
|
|
|
|
|
There isn't a good built-in way to do it. As mentioned in the previous answer you'll need to store it in your db.
When someone logs in you can record that in your db. The problem comes because a user could close your site, navigate somewhere else, lose power, etc, and you won't know about it because the web is not always connected. So, you need another process that runs at some interval and checks for no activity for longer than your Session timeout and then you can clear them out from who's logged in.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
i have to develop application. In taht windows task scheduler task status running though gridview click button.How to do taht? Its urgent. please help if knows?
|
|
|
|
|
|
hello code project members,
this is about our all asp.net controls and session
i have 1 datalist control where it is loading the data from database of products info price etc.. i have one button in that datalist addtocart after clicking that button the particular data will be in the gridview so that user can change or delete the product from gridview now my questions.
1.am storing the temp data from datalist to gridview using session will it be fine means is there any performance issue because my cart will be browsed by minimum 5000 people i heard that only string names in session will be fine so don't know please correct me if am wrong.
2.will it be feasible to use this controls i heard that they take more time to conversion to html so am very much concerned about the performance please let me know
thanks in advance
vinayak ghanti
|
|
|
|
|
hello code project members,
this is about our all asp.net controls and session
i have 1 datalist control where it is loading the data from database of products info price etc.. i have one button in that datalist addtocart after clicking that button the particular data will be in the gridview so that user can change or delete the product from gridview now my questions.
1.am storing the temp data from datalist to gridview using session will it be fine means is there any performance issue because my cart will be browsed by minimum 5000 people i heard that only string names in session will be fine so don't know please correct me if am wrong.
2.will it be feasible to use this controls i heard that they take more time to conversion to html so am very much concerned about the performance please let me know
thanks in advance
vinayak ghanti
|
|
|
|
|
Hello Experts,
Will you please let me know how can I display different controls in Repeater based on Dropdown list selection. Let me be more clear.
I have ddlItem1.SelectedValue="ABC"
then Repeater should display an image, Text, Check box and a label in its rows.
How can I do this multiple controls embedded in Repeater control.
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
|
Thank you jkirkerx. I have tried using the same. But I get image as Cross Red mark on aspx page. Let me know if you have any solution for this.
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
Finally I got it done. I don't know why but jpg images are not showing up. so I changed them to png and it works...
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
That means the browser could not load the image, check your image url
|
|
|
|
|
Hi I am new to Dot net. Please let me know what controls must be used to design a page like
http://www.tirewarehouse.net/search/car/Acura/MDX/2012/w-Advance-Package/255-50R19[^]
In that page, we can see each item is displayed in separate row with checkbox text box and button controls. How is that possible ? Can you throw me some ideas for designing such page in ASP.NET.
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
Lots of different controls: ListBoxes, Labels, TextBoxes, etc, etc.
|
|
|
|
|
Thank you Richard. I actually know about listboxes, labels etc. But What I want is how is that each tire is displayed in a box dynamically? beside that there is a magnifier to zoom in image. I want to know about that box and magnifier.
Your help is much appreciated.
Thanks
Happy Coding!
|
|
|
|
|
|
|
sudevsu wrote: DotNet...Its an Ocean But your question is about ASP.NET, which is not quite the same, even though built on the same principles. And you cannot seriously expect anyone to be able to analyse some random website and give you a detailed explanation of all the controls it uses.
|
|
|
|
|
I am using the below code but getting an error like "REST API is deprecated for versions v2.1 and higher". Please help me to solve it.Please need a response ASAP.
The Code:
using System;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml;
using Facebook;
using Facebook.Web;
public partial class _Default : System.Web.UI.Page
{
private const string APPLICATION_KEY = "XXXXXXX";
private const string SECRET_KEY = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
public Facebook.Rest.Api api;
private Facebook.Session.ConnectSession _connectSession;
protected void Page_Load(object sender, EventArgs e)
{
_connectSession = new Facebook.Session.ConnectSession(APPLICATION_KEY, SECRET_KEY);
//ConnectAuthentication ConnectAuthentications = new ConnectAuthentication();
ConnectAuthentication ConnectAuthentication = new ConnectAuthentication();
if (ConnectAuthentication.isConnected())
{
api = new Facebook.Rest.Api(_connectSession);
Facebook.Schema.user u = null;
u = api.Users.GetInfo();
Label1.Text = u.ToString();
}
else
{
//Message
}
}
}
|
|
|
|
|
Based on the error, it looks like you'll need to refer to the facebook api documentation because they don't support that method anymore.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
hi... I'm creating pop-up window to allow visitors to post their feedbacks. In master page, i used DIV tag for feedback GUI, on click of "Feedback" option ,im displaying feedback DIV as a popup window using jquery dialog method. on click of "Send" button, i wrote code for inserting data to DB. In webform created using masterpage, "Send" button click event is not triggering, but in webpage without masterpage , "Send " button event is triggering..
I want the code to work in childpages...
Masterpage code:
source code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
$("[id*=btnPopup]").live("click", function () {
$("#modal_dialog").dialog({
title: "POST FEEDBACK",
width: "600",
modal: true,
buttons: {
Send: function () {
//$("[id*=Button1]").click();
$(document.getElementById('<%= Button1.ClientID %>')).click();
},
Close: function () {
$(this).dialog('close');
}
},
open: function (type, data) { $(this).parent().appendTo("form"); },
close: function (type, data) { $(this).parent().replacewith(""); }
});
return false;
});
<asp:linkbutton id="btnPopup" runat="server" text="Feedback">Feedback
FEEDBACK |
|
Name | <asp:textbox id="txtName" runat="server" width="350px">
| | Email ID | <asp:textbox id="txtEmailId" runat="server" width="350px">
| | Contact Number | <asp:textbox id="txtContactNo" runat="server" width="350px">
| | Feedback | <asp:textbox id="txtFeedback" runat="server" rows="8" textmode="MultiLine"
="" width="350px">
| | | <asp:button id="Button1" runat="server" style="display:none" onclick="Button1_Click"
="" text="Post">
| |
|
|
protected void Button1_Click(object sender, EventArgs e)
{
if (b.Feedback_Add(txtName.Text, txtEmailId.Text, txtContactNo.Text, txtFeedback.Text, DateTime.Now.ToShortDateString()) == 1)
Response.Write("alert('Feedback sent successfully.')");
else
Response.Write("alert('ERROR in sending feedback.')");
txtContactNo.Text = "";
txtEmailId.Text = "";
txtFeedback.Text = "";
txtName.Text = "";
}
This is not working....!
Webpage without masterpage:
$(document).ready(function () {
$("#modal_dialog").dialog({
title: "jQuery Dialog Popup",
width: "600",
modal: true,
buttons: {
Send: function () {
//$("[id*=Button1]").click();
$(document.getElementById('<%= Button1.ClientID %>')).click();
},
Close: function () {
$(this).dialog('close');
}
},
open: function (type, data) { $(this).parent().appendTo("form"); },
close: function (type, data) { $(this).parent().replacewith(""); }
});
return false;
});
FEEDBACK |
|
Name | <asp:textbox id="txtName" runat="server" width="350px">
| | Email ID | <asp:textbox id="txtEmailId" runat="server" width="350px">
| | Contact Number | <asp:textbox id="txtContactNo" runat="server" width="350px">
| | Feedback | <asp:textbox id="txtFeedback" runat="server" rows="8" textmode="MultiLine"
="" width="350px">
| | | <asp:button id="Button1" runat="server" style="display:none" onclick="Button1_Click"
="" text="Post">
| |
|
|
protected void Button1_Click(object sender, EventArgs e)
{
if (b.Feedback_Add(txtName.Text, txtEmailId.Text, txtContactNo.Text, txtFeedback.Text, DateTime.Now.ToShortDateString()) == 1)
{
Response.Write("window.alert('Feedback sent successfully.');window.location='/Visitor/HomePage.aspx';");
}
else
{
Response.Write("window.alert('ERROR in sending feedback.');window.location='/Visitor/HomePage.aspx';");
}
//System.Threading.Thread.Sleep(10000);
txtContactNo.Text = "";
txtEmailId.Text = "";
txtFeedback.Text = "";
txtName.Text = "";
/
}
This code is working....!
I want the code to execute in childpages
Any help appreciated..!
Thank You...!
|
|
|
|
|
Where are you stuck? If you have code that works why can't you get it to work in other pages as well?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Thanks for your reply... I tried but its not working... Even i used ID of the button that created at run time in browser, i'm getting same button ID as in design.. I'm a new member to .net family and jquery.. i vl try till i get solution...!
|
|
|
|
|
You need to explain what you mean by "its not working." Debug the code, walk through it line by line and you should see what's happening.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Ok pa....! Thanks friend....!
|
|
|
|