|
Looks like you got the same responses when you asked the question in the other forum.
Go away until you can follow the etiquette of this site.
only two letters away from being an asset
|
|
|
|
|
Please don't cross post. This was also posted here[^].
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
How to store information input by user in a Textbox through cookies/javascript/Ajax in and displayed it in a Listbox when onfocus() event of Textbox?
Hi all,
I am phrasing my problem in new way.... becoz there is a confusion in this article...
basically I have to save last ten URL address / or you can say any last ten text input by the user in a text box..in cookies, and when user want to type again, last ten URL address / or any input supplied by the user is displayed in listbox type of control.. on textbox foucs event
Vishnu Narayan Mishra
Software Engineer
|
|
|
|
|
use the HTTPCokkies class to add a new cokkie
<br />
<br />
HttpCookie abc=new HttpCookie(<name>,<value>)<br />
<br />
this will add a new cokkie<br />
<br />
Now to display the value of cokkies use <br />
<br />
Request.Cookies[<name>].toString()<br />
<br />
</name></value></name>
Hope this will helo you
Yogesh Agarwal
|
|
|
|
|
hi all,
i have a textbox in datagrid....
i want to make this textbox readonly =true;
for that i wrote the coding like this in the item databound event
TextBox txtAP=(TextBox)datagrid.FindControl("txtH1a");
txtAP.Readonly=True;
but i am getting the error that Object reference not set to an instance of an object.
Ram
|
|
|
|
|
And which object is it that is causing the problem? Have you tried debugging?
only two letters away from being an asset
|
|
|
|
|
I have a case where I have a db with the active directory user names and the CN entry from thier certificates. I have searched all over but cannot find anyway to do this. I need to extract the certificate information and the code to add it into IIS progromatically on a 1-to-1 basis or the code to add an entry to create a CN mapping to thr user name using a many-to-one basis. This works manually but I have to many accounts to do this manually. If antone has any suggestions and code samples I would be thankful. Please e-mail me at bmores@eciii.com with any suggestions.
|
|
|
|
|
Hi, guys.
Its the question. How can i get page, which need authorization(using known username and password). For example, how to get my new messages in FaceBook? I can parse it of course to get exactly what I need, but how can I get it?
Sorry, if it's stupid question. I'm just learning. Thanx.
|
|
|
|
|
Write a screen scraper that sends a HTTP POST request to the site. The POST request should contain the user's login details. You would need to know how the login form submission works on the site, i.e. what the format of the POST request should be. You can then scrape the HTTP response to get your messages.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Me again.
I have a strange problem with StatusCode.
I want to simulate a '500 Internal Server Error' by setting Response.StatusCode equal to 500, but it doesn't seem to work.
I've turned on trace, page renders properly, but the Status code in trace is 500.
I even turned on custom errors in web.config, but Response.Status = 500 doesn't make ASP to redirect to a page inside web.config, but when I misspelled a URL, ASP redirects me to a 404 error page.
Can anyone tell me how to simulate page status like that error really happened?
Thank you so much!
|
|
|
|
|
It's early in the morning here, so I apologise if this seems a bit muddled, but you could probably simulate this using an HttpHandler. In fact, thinking about it, this would probably be the best way to do this.
|
|
|
|
|
Thank for your reply, but could you give me any example how can I do this?
I don't quite understand how can I simulate 500 internal server error with HttpHandler?
On the other hand, I do use HttpHandler for captcha.
Sorry for late reply. I had some issues with logging on Code Project.
|
|
|
|
|
Kasic - if you take a look at my blog here[^] you should find the answer.
|
|
|
|
|
I did take a look, but this post is written today .
I was few days ago on your blog .
Anyway, thank you for your help.
|
|
|
|
|
How to create standalone web service (if that is the right term) that is resident in memory and running all the time? I mean I dont need url for it , start page adn of course no interaction.. I mean I dont want to invoke any function or call WS in another app, just want to have it running all the time.
WS will check some web site for some word and inform me by email when it appears.
Regards,
Jalle
modified on Friday, February 29, 2008 3:43 PM
|
|
|
|
|
What you're asking for is called a Windows Service
only two letters away from being an asset
|
|
|
|
|
OK great thank you.
I made windows service and add following code
<br />
Imports System.Net.Mail<br />
Public Class Service1<br />
<br />
Protected Overrides Sub OnStart(ByVal args() As String)<br />
Debug.Print("sending")<br />
SendEmail("test", "jaskotr@yahoo.com") <br />
End Sub<br />
<br />
Protected Overrides Sub OnStop()<br />
' Add code here to perform any tear-down necessary to stop your service.<br />
End Sub<br />
<br />
End Class
And press F6 but nothing happens , email not sent and Immediate window is emppty. Why, please ?
But what confuses me also is how can I have windows service published on some asp.net server ?
|
|
|
|
|
Member 1648727 wrote: email not sent and Immediate window is emppty
What is in your SendMail() method?
Member 1648727 wrote: But what confuses me also is how can I have windows service published on some asp.net server ?
Just install the service on the ASP.NET machine when it is done.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Expert Coming wrote: What is in your SendMail() method?
Irrelevant
Expert Coming wrote: Just install the service on the ASP.NET machine when it is done.
Not a good idea. Besides the OP seems a bit confused as to what s/he wants.
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: Expert Coming wrote:
What is in your SendMail() method?
Irrelevant
I may be missing something here but he said it didn't send the message. We need to see the code that trys to send it to help figure out what is wrong right?
Mark Nischalke wrote: Expert Coming wrote:
Just install the service on the ASP.NET machine when it is done.
Not a good idea. Besides the OP seems a bit confused as to what s/he wants.
I could agree with this though. But I still think that for the question asked, I answered it correctly. That is if the OP understood what they wanted.
P.S. - I took no offense to that, but I would like to get some understanding too...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
The SendMail method is irrelevant because the OP was trying to run the service incorrectly so the method would never be run anyway. A Windows Service can't started simply be pushing F6.
"Cannot start a service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrator tool or the NET START command."
only two letters away from being an asset
|
|
|
|
|
Wow, I can't believe I didn't think about that. Thanks.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
You can't start a Windows Service like that. Start here http://msdn2.microsoft.com/en-us/library/d56de412(VS.80).aspx[^]
Member 1648727 wrote: how can I have windows service published on some asp.net server
Do a little more research and figure out what it is you want, a web service or a windows service.
only two letters away from being an asset
|
|
|
|
|
Hello guys (and girls),
Thank you for your help, I appreciate that
I have finished all the coding.
Program checks a web site and if it finds one specific word then it emails result and sends sms to mobile number. (sorry cant copy/past code because company rules)
Now only question is : Will it be a web service or windows service ?
If I am going to place it locally on my computer then I will need to do some additional checks , like is there any Internet connection and so. I dont like that.
Is it possible to have this code running on some remote server? (I have godaddy account but don't know where to look). Isnt that what web service do ?
THANK YOU ALL !
|
|
|
|
|
Webservices are more of a pull technology. Something must initiate the action. A Windows Service on the other hand can be designed to self trigger, or run at a set interval.
Member 1648727 wrote: like is there any Internet connection and so. I dont like that.
Without an internet connection how are you planning on checking these websites for keywords?
only two letters away from being an asset
|
|
|
|