|
I was hoping that someone can point me towards a resource showing how to create a popupmenu that is displayed on a right click of the mouse...ie contextmenu. I am not after a working example that I can just import, I am looking for a tutorial I can follow that will show me how to do this myself.
Cheers
Ian
|
|
|
|
|
|
Thanks for the link but thats not really what I am after, I mean yes its a popupmenu but I am looking for a tutorial that will show me how to create my own and explain to me what it is doing. So I can recreate it all myself. I am just learning DHTML and Javascript and I am finding it a bit tricky following the code through :-S Hence me wanting a good old explanation!
Cheers
Ian
|
|
|
|
|
|
mozilla is not supporting --
document.form1.text1.focus.
&
text1.value
where text1 ia an input type..can any one tell me the alternate plzzz
hiiiiii
hiiiiii
|
|
|
|
|
hkchauhan wrote: focus
focus is method right. Can you refer as focus() ?
|
|
|
|
|
This is not a Mozilla problem. The problem is that you are using non-standard code that is only supported by Internet Explorer.
hkchauhan wrote: mozilla is not supporting --
document.form1.text1.focus.
&
text1.value
If you write it correctly, it sure does.
Example:
<body onload="document.form1.text1.focus();">
<form name="form1">
<input type="text" name="text1" />
<input type="button" value="show" onclick="alert(document.form1.text1.value);" />
</form>
</body>
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi Friends,
Scenario is
I have hosted a website and asked hosting company for SSL.
they told us that SSL is working. there is a folder call htdocs to put pages in.
When we type URL http://www.abc.com/catalog/default.aspx it doesnt show SSL lock on I.E and Other browsers but allows us to view pages. Also when we type
https://www.abc.com/catalog/default.aspx it show pages and also shows SSL lock on the broswer.
My Question is:
Is there a way to restrict users that if they do not type URL with "https" then they should not see the page.?
|
|
|
|
|
|
This article is for IIS while I asked you that my website is hosted with another company. We havn't got access to IIS.
|
|
|
|
|
Hi Guys,
Is there a way to add another fields in ASP.Net Web Site Administration Tool? How am I going to do it if I will add "customerid", "firstname", "lastname", and "address" fields?
I hope that there's a way on how to do it.
hifiger2004
|
|
|
|
|
u can use the web.config file to add the custom tags.
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
Yes we have the same thinking.
It can be done thru web.config, but the question is how to do it?
hifiger2004
|
|
|
|
|
inside the <configuration> tag add
<appsettings>
<add key="customerid" value="cust1">
<add key="firstname" value="first name">
<add key="lastname" value="last name">
<add key="address" value="address">
Thanks
Warm Regards
Prakash-B
|
|
|
|
|
Hi Prakash,
I don't exactly know if how to do this. It's like this...
Kindly open your ASP.Net WebSite Administration Tool, then goto Security Tab, then click link - Create User. Here you can see the different fields for the user to enter.
These are the default fields that will display - User Name, Password, Confirm Password, E-mail, Security Question, and Security Answer.
My problem is how to add a field next to User Name? Let's say I will going to add the Address field right next to User Name so that when I use the "CreateUserWizard" control the Address field will also be used.
I hope there's a sample of doing it
Thanks Prakash
hifiger2004
|
|
|
|
|
Hi!
i am having problem in window service that has to send an email using "System.Net.Mail.SmtpClient". the service code stops unexpectidly when email code runs, in the event log following entry is made:
Event Type: Error
Event Source: .NET Runtime 2.0 Error Reporting
Event Category: None
Event ID: 5000
Date: 6/21/2007
Time: 8:07:28 AM
User: N/A
Computer: xyz
Description:
EventType clr20r3, P1 ejadspmscheduler.exe, P2 1.0.0.0, P3 467a6ece, P4 ejadspmscheduler, P5 1.0.0.0, P6 467a6ece, P7 19, P8 1a13, P9 system.nullreferenceexception, P10 NIL.
The email is using network authentication, if we run service under "network service" then the execution stops at email code, and rest of code is never executed and service dose'nt terminates.
Kindly help me in solving this prbolem. also guide me if i posted this question in wrong forum..
Thanks in advance...
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
First you should put a Try Catch around your email logic so you can catch the expection and log it and keep your windows service from going into a bad state. You can even choose to stop the service in the Catch code if that makes sense for you. Anyway, Usually with the mail componants you need a valid email address to be used to authenticate to the email server. Often you can do it from using the correct email address in the from address of your email address. Based off your error message I am guessing that you perhaps didn't even add a from address to the email message. If you want to post your email code we might be able to help more.
Hope that helps.
Ben
|
|
|
|
|
Hi!
Thanks for reply,
I have done extensive logging and debugging. the email code is b/w 4 nested try catch statements. but this exception is not cathed by try/catch block, it straight away blocks the application and exists.
i found that the service stops when email is to be sent to any email address that is not local (email account not on the server) like gmail,hotmail, etc. if email is to be sent to local email address it works fine.
any ideas? any kind of help or guidence is appriciated...
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
I am pretty sure if you have a base exeception you should be able to catch this exeception. I am guessing that the email server you are trying to use needs some credientials that you are not passing it or doesn't allow email to be sent through it. I would create a simple windows app that has only your email code. Try to get the simple windows app to work with the email stuff first, then once you get it working copy the code into your windows service.
Ben
|
|
|
|
|
Thanks for reply,
i have already tried every thing you mentioned above, i turned on/off the credentials, tested the email code in separate application which was working fine there. but when i put it in window service it stops working.
any ideas whats the problem...? am i missing some thing?
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
If you got it working in a windows app, but it doesn't work in the windows service the only possibility is the user login you are running the windows service as. Try running the windows service as your login and I am guessing it will work. Which ever login you are using for your windows service (I think you said network service) it doesn't have the correct rights on the PC to do email. If your login works, you should be able to set up a new local or domain user account to run the windows service as. That is normally what I do when I use windows services.
Ben
|
|
|
|
|
Thanks for reply...
I am afraid this is also not the problem...! i am using my own local user account with full rights. if i must set some special account setting/rights then please guide me what to do?
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
Have you tried running the windows service as your login? If your login works with the windows app, it should cause the windows service to work.
Ben
|
|
|
|
|
Thanks for reply,
I tried both window application and window service on local user account. one more thing just came to my notice that previously this was running fine but few days ago i changed some setting of SMTP to block spams and probably after that this problem startd to occure.
Do you think it is because of change in SMTP settings...? if yes then how can i reset the setting or enable window service to run on new setting?
Regards,
Affan Ahmad Toor
..................
QUAIDIAN FOR ONCE, QUAIDIAN FOR EVER!
|
|
|
|
|
So I think you are saying that your windows app doesn't work anymore. I am not sure how you changed your SMTP settings, so I am not sure how to reset them either. If that is what changed then that is most likely what needs to be fixed. Note if you are sending lots of emails to a certain server, you will get marked as a spammer which could also be your problem.
Ben
|
|
|
|