|
Pratheepa wrote: I wud like to display the number of views of every product. ex: if a user go and click the product to chen then the view number shud increase by one.
From where are you displaying the product ? Is it from database? if yes, then with the product column and another column, Viewer. Now on each click on product, update the field.
|
|
|
|
|
This seems so basic, and obvious. What have you tried, anything ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Is there a way to display the total number of visitors being online in my webiste. plz help me by providing the code
|
|
|
|
|
Pratheepa wrote: Is there a way to display the total number of visitors being online in my webiste.
Use database. Store login use in database. Display the information as Online information list. When any user logs off, update the database entry.
|
|
|
|
|
You need to think about this stuff, instead of asking us to do your work for you. There's no real way to know for sure how many people are online, you need to apply some sort of timeout to the last activity you got from a user, as you have no idea when they 'leave'.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
Can anyone send me the code of displaying popup when the user clicks a link( in asp.net c#)
|
|
|
|
|
Pratheepa wrote: Can anyone send me the code of displaying popup when the user clicks a link( in asp.net c#)
Window.Open().
I will suggest you, before post this type of question, please search google first. If you are new in ASP.NET then Buy a book and start reading.
|
|
|
|
|
You can use AJAXModalPopup control. Go to ajax.asp.net.
There is no foolish question, there is no final answer...
|
|
|
|
|
Hi
I am not able to download file from Web Server...
I am using following code
string filename = "Resume.doc";
string path = Server.MapPath("~/Resumes/" + filename );
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment;
filename=" + filename );
Response.ContentType = "application/octet-stream";
Response.WriteFile(path);
Response.End();
this code is working fine in localhost...
but when Execute in the server it says 'File not found in the Directory',but file exists on the server.
The website id done in ASP only the file upload and download is done in ASPX,
upload is working fine but download is creating the problem.
may be because of Version compatibility,I am using GODaddy Share WebHosting.
please help me to find the solution.
Thanks and Regards
Vayanan
|
|
|
|
|
vayanan wrote: string path = Server.MapPath("~/Resumes/" + filename );
Try to print the file path on screen and then check....
|
|
|
|
|
Hi
Thanks for your kind reply..
Path is correct only..
It is working fine when I use the same code
in different Domain in the same server
|
|
|
|
|
Please check the folder rights in the error domain.
Do the current user have read rights on folder.
Also try to download the file from direct link.
|
|
|
|
|
Hi
I can't do drag selection in ASP .NET Web Forms.
Because of this i can't do design correctly.
Please give me any solution.
Thanks in advance.
lingam
|
|
|
|
|
munnalingam wrote: I can't do drag selection in ASP .NET Web Forms.
Because of this i can't do design correctly.
So, you are talking about VS, ASP.NET Design view. You are not able to Drag control in your page. Isn't it?
Check your Layout mode? GOTO > Layout Menu > Position > Select Absolute .
|
|
|
|
|
It is in Absolute Layout Only.
The thing is i can drag control in the form.
But i can't select the controls by dragging the mouse pointer.
Thanks for your reply.
lingam
|
|
|
|
|
Hey guys and gals
need advise. Is there a way to return print function status whether is printing or cancel after clicking to print function using <script>window.print</script>
Cos i need to check if the printing is successful then i will have to trigger something if the user click cancel . it will not trigger the function
KaKaShi HaTaKe
|
|
|
|
|
HatakeKaKaShi wrote: Cos i need to check if the printing is successful then i will have to trigger something if the user click cancel . it will not trigger the function
There's nothing. It's not possible.
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
how to chk a control is present or not using codebehind
for eg if
tis hyperlink ctrl "HylEdit.Text" is not present then the code should skip the control
and apply changes to the controls present on that pages
for egs,
if HylEdit.Text is not present then it should chk for next ctrl lik
HylView.Text
if the above ctrl is present the it shoul apply for HylView.Text=rm.GetString("View", ci)
the fn is lik tis
Private Sub LoadStrings(ByVal ci As CultureInfo)
HylEdit.Text = rm.GetString("Add", ci)
BtnClear.Text = rm.GetString("Clear", ci)
BtnSave.Text = rm.GetString("Save", ci)
HylView.Text = rm.GetString("View", ci)
|
|
|
|
|
findControl(Control). If it is NULL it is not there.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
if the ctrl is not there declaration error is
comin in find control statement...
if i fincontrol gridviw which is not in t page it shows
errror tat gridview is not declared
|
|
|
|
|
Are you testing Visual Studio.NET? By the way, not a bad idea for next version of VS2010.
There is no foolish question, there is no final answer...
|
|
|
|
|
Hi to all,
My project has reading mails from mail server.
the mail server is not in OUTLOOK. Its like a Exchange server like gmail,yahoo & so on...I am reading all the mails & save the attachments.
I am Using the sample Application is.,
http://www.codeproject.com/KB/IP/Pop3MimeClient.aspx
But I can't read UNREAD mails.there is no flag in that application.
So How to read UNREAD mails from mail server???
Thanks,
nkmKrishna.
|
|
|
|
|
You're pretty stupid, aren't you ? We keep telling you that these are not ASP.NET questions, yet you keep posting them here. Have you tried asking the author of the article for help ?
Christian Graus
Driven to the arms of OSX by Vista.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
|
|
|
|
|
You can look for the link,
http://bytes.com/topic/c-sharp/answers/874837-check-unread-emails
|
|
|
|
|
Hi all,
i have links to attached documents(xcel, word, access,...) that resides on the server that open when pressing it. Normally it pops up a msg that notifies you what to do (open, save, cancel). I need to cancel this msg and directly open the file. Is that possible?
|
|
|
|