|
Again, I've never tried, I always make a new endpoint.
See my TelnetSocket[^] article for how I use them.
|
|
|
|
|
I think there is a fairly lengthy delay (in the order of minutes) before the same endpoint can be re-used. A quick Google search should find the details for you.
I must get a clever new signature for 2011.
|
|
|
|
|
I need to navigate to a site in IE, login, and then navigate to the Upload page, populate the File field with a file name, and click the Submit button - all from inside a CE Class.
Anyone know how to do this? I'm not even sure what to Google for this?
Thnks
Everything makes sense in someone's mind
|
|
|
|
|
Explain CE class? Windows CE?
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
I have this scenario - users need to access a portion of the website using a password. In order to get the password they need to fill out some information. What I'd like to do is to deliver the password, such that, they cannot see / print it, but be able to "paste" it into the browser's textbox (with the password attribute), but not be able to paste it into a notepad or non-password protected field - the reason being is that they should get access to the content, but not be able to tell others what the password is. The password needs to be the same (I can't give each user a separate password as the content delivery system isn't mine, but I can know what the access password is for the content). Is there a way to do this?
Thanks!
|
|
|
|
|
You need to maybe think about your design. Why don't you implement a users database that issues different logins to your users, but only in your code behind, where you broker the data from the 3rd party, do you know the password for that connection. You should design a system where that password is protected in your server.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
The issue is that the content is not from my system, but from (multiple) third party systems. Basically, my application is the "Authenticating Agent" that captures information about the user (information that the third party system does not capture), and based on the proper receipt of information, my program is suppose to deliver the password for content access to the user in a manner that they can input into the third parties application, without revealing the password to the user (thus insuring that that other users are required to goes through my application to gain access. There is no incentive on the part of the numerous third party content suppliers to modify their system, so I need to layer on top of their interfaces - I'm open to suggestions!
|
|
|
|
|
I suspect your site will have a very short life span. You want people to go through your site to access information on other sites so you can gather information about them. AOL tried this long ago. No one wants to use the web that way and there are other sites and services that do this without the hassle.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
|
You cannot control how and what other controls see on the clipboard. You have to have the password in a format that is usable by the various textboxes on various websites. You can't rewrite those sites to "properly" handle the password pasting. A password is just text, period. There's nothing secure about the clipboard, in any respect. You cannot prevent the user from seeing this password at all.
To get around the clipboard, you'd have to write some kind of component that holds onto the password on the clients machine. This component would then be accessed by the code on the target websites, written to obtain the password from the component. Therein lies another problem. By your own admission, you cannot change these websites, and it doesn't sound like you can impose on them an interface to use on your system for authentication.
This idea has no way of working in a practical manner that won't be abandoned by the very users you're trying to gather data on.
This has already been done by various vendors. Microsoft has one, bundled with a bunch of other services, called Windows Live.
|
|
|
|
|
Hi
I'm currently learning C# but at times I find it hard to implement what I've learned in good projects. Are anyone familiar with text books with programming projects that could be a good starting point for programming?
/Eiel
|
|
|
|
|
If you're looking for books that have a project/app as the end result, and work through it step by step,
for winforms there is this book Manning : WinForms in action or something like that.
For wpf there is this book by Sams: Teach YourSelf WPF in 24 hours.
For web development I can't remeber any right now. But I suggest you get the basisc and work your way through.
All the best,
Dan
modified on Wednesday, January 19, 2011 4:31 PM
|
|
|
|
|
Microsoft also released a series "Build A Program NOW!" (Their italics), which did what you want. A while ago they released them free on the web.
Only problem, I cannot find the page at the moment. Perhaps if you have time you can do a better search.
[Edit]
Correction. Found it.[^]
[/Edit]
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
I wouldn't let CG touch my Abacus!
|
|
|
|
|
Henry Minute wrote: Microsoft also released a series "Build A Program NOW!"
This resulted in the creation of VB no doubt?
V.
|
|
|
|
|
Unlikely, because you missed the "which did what you want" part...
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
Try some of the C# articles here on CodeProject; there are lots of excellent samples.
I must get a clever new signature for 2011.
|
|
|
|
|
you have already got a bundle of perfect answer for learn C# Language.
I will also suggest you to read all books and links refer by others OP including this Link[C# Language on MSDN][^]
"C# HOW to program" is one of the good book which I read when I started Learning C#
you can download it from here[^].
|
|
|
|
|
hello,
I would use my web service to get a XML file, i try for :
My web service :
<br />
public class Service1 : System.Web.Services.WebService<br />
{<br />
<br />
[WebMethod]<br />
public string GetFirstName(XmlNode XmlNodePassed)<br />
{<br />
XmlDocument XmlDocumentObject = new XmlDocument();<br />
<br />
XmlDocumentObject.LoadXml(XmlNodePassed.OuterXml);<br />
<br />
XmlNodeList XmlNodeListObj = XmlDocumentObject.GetElementsByTagName("first-name");<br />
<br />
return XmlNodeListObj[0].ChildNodes[0].Value;<br />
}<br />
}<br />
i would consumme a service as :
<br />
public static XmlDocument GetXmlDocument()<br />
{<br />
XmlDocument xmlDocumentObject = new XmlDocument();<br />
<br />
xmlDocumentObject.LoadXml("<book genre=\"novel\" publicationdate=\"1997\" " +<br />
" ISBN=\"1-861001-57-5\">" +<br />
" <title>Pride And Prejudice</title>" +<br />
" <author>" +<br />
" <first-name>Jane</first-name>" +<br />
" <last-name>Austen</last-name>" +<br />
" </author>" +<br />
" <price>24.95</price>" +<br />
"</book>");<br />
<br />
<br />
return (xmlDocumentObject);<br />
}<br />
static void Main(string[] args)<br />
{<br />
<br />
XmlDocument xml = GetXmlDocument();<br />
ServiceReference1.Service1SoapClient rr = new ConsoleApplication1.ServiceReference1.Service1SoapClient();<br />
string gg = rr.GetFirstName(XmlDocumentObject);<br />
}<br />
Unfortunatly, i have an error : cant convert XMLdocument to XMLElment.
Thank you verry mutch.
|
|
|
|
|
You have been around CP long enough now to know the correct way to format code snippets in your questions.
For goodness sake use <pre>your code goes here</pre> tags.
It doesn't matter if you think the way you do it is prettier or whatever the reason is. Do you not realize that red/blue colour blindness is the most common form. You are actually making it harder for people to help you.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
I wouldn't let CG touch my Abacus!
|
|
|
|
|
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
|
|
|
|
|
First of all for Henry's sugestion.
Second of all is pretty clear(actually not) what happend.
In the Main method you call GetFirstName() but you pass a xml document instead of a XMLNode.
It can't convert from xmlDoc to xmlElem/Node.
Also inside Main there is no XmlDocumentObject declaration/creation just xml in the line:
XmlDocument xml = GetXmlDocument();
All the best,
Dan
|
|
|
|
|
Hello,
Thank you verry mutch for your answer, so, i replace the input parameters and i set public static XmlDocument GetXmlDocument(), and i have the same probleme, thank you verry mutch.
|
|
|
|
|
Hi,
does anyone know how to call _stat with p/invoke from C#?
it is posible to use File.Get* instead, but I need the direct call to
investigate something on the file system.
Thanks
|
|
|
|
|
Although this link[^] is not for _stat() it should help you figure it out.
I must get a clever new signature for 2011.
|
|
|
|
|
No sorry it is only fclose on the linkt, I check pinvoke.net before my post and did not find anything.
|
|
|
|