|
Hi,
On the root add a config file with the following:
<authentication mode="Forms">
<forms name=".MyAppFormName"
="" loginurl="login.aspx" defaulturl="Apps/welcomepage.aspx" cookieless="AutoDetect">
/authentication
authorization
allow users="*" /
/authorization
in the protected areas (e.g. Apps) add a web.config file with the following:
authorization
deny users="?" /
/authorization
In the login form:
Check your SQL database...
IF it's OK - > FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, False)
Hope this helps
|
|
|
|
|
Has anyone worked with mapping.....I need to write a program with will show bus routes. User may and maynot have access to the internet.
What did you use, and how did you store your data....ease of use..cost...etc
Thanks
Tom Wright
tawright915@gmail.com
|
|
|
|
|
I have a device on my COM port. I need to send a string to it. What is the best way to do this? Do you have to know the port it will reside on?
|
|
|
|
|
Cory Kimble wrote: I need to send a string to it. What is the best way to do this?
Exactly what you do depends on the version of VB you're using.
Cory Kimble wrote: Do you have to know the port it will reside on?
Yes. Without it, you don't know what your sending data to.
|
|
|
|
|
I have vb .net 2003. I want to send and receive stings and packets through Com port.
|
|
|
|
|
The .NET Framework 1.1 does not come with a Serial Port class. That showed up in .NET 2.0.
Google for "vb.net 2003 serial port class[^]". There's a smattering of custom written Serial Port classes out there, but each one is different in how you use it.
|
|
|
|
|
If you want to use a serial port in .NET I strongly advice you to switch to .NET 2.0;
you would need the FrameWork itself, then an IDE (Visual Studio Express Editions
are free); both can be downloaded and installed in the matter of say 2 hours.
After that, you read up on the SerialPort class (there are some nice articles on CP about it),
choose a port (say "COM2") and you can start debugging...
|
|
|
|
|
this is refrence to the mail FARAH who asked the mouse click routines.Basically I want to make a driver for my device in which i want to simulate the mouse clicks that whenever i click (Left or Right) it performs the same functions as a normal mouse does.I want the code for the left and right clicks in VB6 plz do give me code for these routines
FARAH
-- modified at 13:40 Monday 23rd July, 2007
|
|
|
|
|
I already told you here[^]. Noone is just going to hand over the code to you. You have to write it yourself. When you get stuck with a problem with your code, then you asks specific questions about it.
To start, a little Google goes a long way. Results for "vb6 simulate mouse clicks[^]".
|
|
|
|
|
Dave Kreskowiak wrote: Noone is just going to hand over the code to you.
Nope. Will hand an invoice that he couldn't pay with the kind of money from his area. I wouldn't even accept their currency
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Paul Conrad wrote: Nope. Will hand an invoice that he couldn't pay with the kind of money from his area. I wouldn't even accept their currency
You were a "stand-up philosopher" in a previous life, weren't you? I like it!
|
|
|
|
|
Dave Kreskowiak wrote: You were a "stand-up philosopher" in a previous life, weren't you?
I keep getting the occasional flashbacks to that previous life, too
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
Reasking a question in which you have already gotten the answer is bad. Telling people to hand over their code (even if you say please) is bad. Now go to the corner and read the forum guidelines.
_____________________________________________
Flea Market! It's just like...it's just like...A MINI-MALL!
|
|
|
|
|
leckey wrote: Reasking a question in which you have already gotten the answer is bad. Telling people to hand over their code
Oh please, this is getting old. I'll hand him over code, but I will hand an invoice along with it.
"Any sort of work in VB6 is bound to provide several WTF moments." - Christian Graus
|
|
|
|
|
I have a button, and once clicked, want it to open (and display) a pdf document. How do I go about this? Thanks.
|
|
|
|
|
You'll need a 3rd party control to load and display the PDF. Visual Basic doesn't come with anything that can do it. Google for one here[^].
|
|
|
|
|
Thanks Dave. Any recommendations? (ie, have you used one ever?)
|
|
|
|
|
Nope. I haven't had to do anything with PDF's.
|
|
|
|
|
Actually I didn't need anything 'third party' All you have to do is:
Dim acroApp As New Acrobat.Acroapp
acroApp.Show
Dim acroDoc As New AcroAVDoc
acroDoc.Open "C:\filename.pdf", ""
thanks anyway though...finding freeware controls to open pdf sure was a pain, I'm glad "this" works!
|
|
|
|
|
When that works, why not simply use Process.Start(myPdfDocument) ? that works
just like double-clicking myPdfDocument in Windows Explorer.
The advantage is you now depend on the existence of a file association (for PDF)
instead of on a particular PDF reader.
|
|
|
|
|
reegan41 wrote: Actually I didn't need anything 'third party' All you have to do is:
Actually, this IS third party. Acrobat is not installed with Visual Basic. What you're using is the COM server that's installed with Adobe Acrobat Reader. Don't try and distribute your app to other machines without verifying that the same version of Acrobat Reader your machine has is installed on other machines that your app will run on.
|
|
|
|
|
I've used a Glyph & Cog product to work with PDFs. I used the XpdfPrint, which doesn't display PDFs, just prints them, but they have some viewer controls and they were very helpful when I called for advice and questions. The price was pretty reasonable too:
http://www.glyphandcog.com[^]
Also, I Adobe has an SDK...I couldn't get it to do what I wanted with printing, but perhaps you would be able to use it for viewing. You should be able to just google it or search their site. The up side of this one is that it is free, the downside is that the user will have to have adobe and you will have to code for each versin of adobe.
Another product I've used is the Studio Enterprise .Net toolset from Component One. They are a bit more pricey, and you have to buy the whole package even if you want just one component, but I had a lot of good help when I called with questions on this product as well:
http://www.componentone.com/StudioEnterprise/NETToolset.aspx[^]
Hope this helps.
|
|
|
|
|
Hello
I have tried different things for this, but it is not working yet. I have a web page project under construction. When button1 is clicked should pict1.jpg be shown in the imagebox1 and when button2 is clicked should pict2.jpg be shown in the imagebox1. Pictures are located at server. I can not get this working.
|
|
|
|
|
This question belongs in the ASP.NET forum, not the VB.NET forum.
This chould be done in a single line of code for each. If they're in the same directory as your .aspx page, then it should be something like this:
Image1.ImageUrl = "~\picture.jpg"
The "~" means get the image from the same directory that the page came from.
|
|
|
|
|
Is there a free outlook type calendar object out there that I can include into my app? I've looked all over the internet and found some that cost a lot of money....of which I am lacking.
Or can someone point me in the direction on how the screen is created for an outlook style calendar....is it created on the fly...a bitmap image with textboxx overlay....etc?
Thanks
Tom Wright
tawright915@gmail.com
|
|
|
|