« first day (905 days earlier)      last day (4269 days later) » 

13:03
@RyanJMcGowan thanks
Does validating userName and password using Active directory comes under forms authentication as well or is it windows authentication
Windows
@MuhammadRaja You can do it in both
Windows does it automatically ("pass-through")
Forms queries the LDAP server
13:17
hey
how is everyone?
I need some help
if anyone can help
I can't read your mind.
Sam
Sam
lol
Yes you can
:D
I'm typing it out now...
@LiverpoolsNumber9 ta
I want to allow users to click on a link that will be emailed to them. This link must point to a web server and then come back to the client pc and open up notepad
My manager has requested me to use .Net Remoting
Sam
Sam
13:20
so the link is emailed?
to the client
I basically need to open up notepad on the client pc from a link on an email
yes
I got array list of dates, which I want to map to XMLNodeList but I am not able to

foreach (DateTime dt in Dates)
            {
                XmlNodeList Date = xd.CreateElement("Date");
so in outlook a user will receive: "Please click here to open up notepad"
Sam
Sam
right ok, give me a moment....
Ok...
Excited face
13:23
Why as a file? I'm curious.
@BeginnerCoder: you could force a download with setting the mime type to application/octet-stream and make them download it as a .txt
If it can open in notepad, it could be the body of the email.
i'm using Notepad as an example
I would eventually want it to open up our application
and it must go to a specific screen based on parameters to the app
if its your application, you could set up a file schema i think
beginnercoder://webserver/file.txt
and have your application installer register your app to that
what's in file.txt?
I don't need anything to be in it
It must just open up an instance of notepad (assuming notepad is my application)
13:25
you know how if you type blahblahblah it opens up your browser?
er that was supposed to have http in it, not a link
fixed font lol
or like my torrent app opens magnet://url links
you could have your app register a new scheme
someScheme://
Sam
Sam
what you could do is email a link to download a small app that open's the notepad...
then just link them someScheme://yourwebserver/some/file/to/download
Sam
Sam
13:27
im not sure there's a way to directly open the notepad from a link.
the idea that you could send someone a link and have it automatically open an arbitrary file from the internet is mental
but if during install you register that scheme, should be doable
lol
Soooo
Let's say I have this email sent to you
Sam
Sam
maybe something like this, but im not sure it will work system32/notepad.exe
"Please click this link to open up notepad"
13:28
or of course you could register a file extension
When you click the link, it must open up notepad
lol sam
maybe file://cmd/c%20rm%20-rf%20c:/
;)
13:29
no
:O
@BeginnerCoder: ok so say it was an mp3
send you a link to an mp3
you download it
ye
I get locked up.
and then when you click on it, it opens in your default mp3 player
because its registered as the application to handle .mp3
13:30
He does not want that
so maybe you create a new file with the extension .abc
he who?
manager
Because he says, sometimes the email servers block the attachment
Sam
Sam
the manager of doom!
well the idea that yo ucould open up an arbitrary file in an arbitrary application is a bit absurd
Sam
Sam
+1
13:31
:(
Sam
Sam
here's one idea in vb.net...
hello
Sam
Sam
There's this one localhost/Windows/System32/notepad.exe or (im just typing up the example...)
link still not working. :¬
:(
No man
Sam
Sam
Sub openNotePad()
        Process.Start("notepad")
    End Sub
13:33
Ok let me try to explain it with using my app
Ok so I have an application that somebody somewhere on the network uses
They click a button to send the email to person B
Sam
Sam
is the email sent fomr the app?
*from
Person B gets the email with the following body: "Hi, a new work order has been completed. We need you to sign off. Please click HERE"
yes
when Person B clicks "HERE"
it must fire up my application
and open up a screen
Emails don't contain code.
You have a file
That's it
Sam
Sam
would person B have the same app?
Now how do you get it to open your app? With the right extension.
13:35
so if it were a webpage it would be something like mysite.com?id=1&mode=2
yes, person B would have the same app
@BeginnerCoder I think that drch gave you the right answer.
or if it was porn-2u.exe it would be file://massivetits.exe
Sam
Sam
right, it's easy!!
lol
@LukeMarlin I didn't understand drch, is there a site that you can point me to?
Your app must be able to read files with an extension like *.xyz and the file should match that.
That's why he used the mp3 example
Your computer sees .mp3 and says "ok, this must be a music file."
13:38
We have done this before, but the problem was that email servers were stopping the email from going out as it did not recognize the extension
Yes we have used *.xyz as a custom ext.
But we had this issue
Then you send a link to your server instead.
Sam
Sam
would person B receive the email on the app?
Sam
Sam
or something like gmail...
That's why my manager wants it to go to a web server and then the webserver must open up the application on the clients pc
13:39
The email should not have a file. It's all around better to keep the file on your server and just send them a link to it.
Sam
Sam
why not send an attachment?!?!?
Because mail servers block it
@RyanJMcGowan ok so they should just download the file and it should work from there?
yes. And it will open your app if you have your app setup to use your own custom file extension.
obviously I would need to create an association
13:41
Don't ask me how. I'm a web guy. Not a client developer.
But I'm sure it's real easy
@RyanJMcGowan I understand what you are saying and thanks.
Is there any way that I could use .net remoting in this situation?
Sam
Sam
i know, send the email, the link points to a downloadable file hosted somewhere, this person B downloads the app which will open the notepad or whatever app you what it to open...
@BeginnerCoder you could stick with a simple link with @drch solution. See my link above
I don't see any .Net remoting use case in this scenario
If your app is already open, you could go another route. But you can't get a web browser to load up an app other than trying to open a file.
It's not a matter of how you code your app or the email. Browsers just don't do that and you're not in control of their browsers.
@LukeMarlin I will look at your link now.
Sam
Sam
13:45
i have a very simple solution...get lazy mr B to open the app himself.lol
@RyanJMcGowan Thanks I get what you saying and to me this is a perfect to solution but not to my manager....
lol @Sam
@BeginnerCoder also read the quoted MSDN link in the answer
as well as registeing the extension, you could register a custom uri scheme that your application handles
@drch yes, I am checking the link that Luke sent me. It explains that
so instead of linkin them to http://something.com/somefile.abc you link them to xyz://something.com/somefile.abc
13:47
Tell your manager you're going to need to to develop a browser, and make all your clients throw away chrome, firefox, ie, and safari and only use the brwser you develop. And tell him it should be ready by 2018.
@RyanJMcGowan: pfft just create a new email client that runs random programs
Then write an invoice for $22,000,000
attachment: notavirusiswear.exe
Sam
Sam
lol
@drch most people don't use email clients.
13:48
LOL
@RyanJMcGowan lol
I just want to make sure here, so I can tell my manager.... are you guys sure there is no need for .net remoting
no need? There's no WAY.
For you to run remoting, they have to open the app FIRST. You can't run code that isn't running.
Lol
You are right. I will tell my manager
Do you want his email?
Sam
Sam
lol
Sure. I'll send him that invoice.
and my attachment as a proof of concept
Sam
Sam
13:50
you could get him to give you a pay rise for wasting your time.lol
spoiler: its a virus
@BeginnerCoder Absolutly sure :o
LOL
Thanks guys
Sam
Sam
np
I know your bind though. My last boss wanted me to make the site look exactly the same on every screen. Including his iphone. He would get furious because the font was too hard to read on his iphone, but too large on his 22" monitor. And making a sepearte mobile version was out of the question.
13:52
@RyanJMcGowan: did you try remoting?
Sam
Sam
lol
It was down to where the background image would get cropped. It had to be consistent. Always.
He was a nutcase.
I quit before the job was done and he had no replacement. And I don't feel sorry one bit.
Ok I'm going to approach him with the *.xyz file sitting on the server and when a user clicks the link it will allow them to download the file and then open up my application and read from that file
Is that cool?
I will also read up on Custom URI Schema
13:54
That should work. In fact, that's about the only way it would.
Sam
Sam
seems good to me
Thanks guys
It's just so crap
Try to find a unique extension.
...Because he acts like a real douche
As if he knows everything :O
13:55
I just searched, and the only unused extension left is .kkk. So there ya go.
Sam
Sam
use an extension like .myBossWastedMyTime
Sam
Sam
im pretty sure that extension name is available.lol
me too :D
Tonight I have to work :( My manager sucks!
I wonder if anyone has claimed a void extension? Just "file."
Sam
Sam
13:57
lol. i use *. to store temp data
and the odd bit of small data as well
um that doesnt make sense
but whatevs

« first day (905 days earlier)      last day (4269 days later) »