|
hi
i need to implement an e-commerce site,
i can do all the stuff of the invitation already (i hope...).
but, i want to use SSL to secure the data entered in the Invitaion Form (Credit card etc.)
i know i need to do something with the directory in IIS, but not shure.
i want to know what are the steps to secure ASP.NET form with SSL.
(any links to related site its great !)
Thanks,
Yair Cohen
smallfish@walla.co.il
|
|
|
|
|
You can generate an SSL certificate request in IIS by right-clicking on the web site you want to generate a request for in the IIS manager, selecting the "Directory Security" tab, and click the "Server Certificates". Follow the directions to generate a request. Then you submit this request to a certificate authority like VeriSign or Thawte (owned by VeriSign but cheaper with the same grades of encryption). After they sign your certificate (might take a couple days), go back into IIS. Click that button again and follow the directions to add your signed certificate.
This is how you would generate one that browsers will accept by default. If you need a test certificate, you can generate one yourself. See my (old) article at http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=209[^]. Browsers without your CA installed (they come with default CAs installed most times) will prompt your users, so I wouldn't use this in a public production server.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
thanks.
but this is what i do in IIS. ok.
do i need to do something in my ASP.NET code ?
or its automaticly ?
|
|
|
|
|
ASP.NET doesn't care (it's automatic) because the SSL handshaking is done before the HTTP connection is established, and any communication is both encrypted before being sent out and decrypted before being received by such things like ASP.NET. It still sees everything as it would had it been non-encrypted because, by the time ASP.NET gets it, it isn't encrypted anymore - just encrypted over the wire.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
Is it possible? I need to create a standard form and then populate it with text from a database, putting the text into label controls. The rows in the database will vary so I can't pre-fab the form with X number of labels and then just set their caption property. The form will need to be created on the fly each time it is loaded.
As an alternative (and a very weak one at that) I can add labels for the max possible rows and then set the ones without captions to not be visible. If this is my only choice, is there a way to resize the form using VB?
Mike
|
|
|
|
|
Yes!
Mixture of code and pseudocode is here. Hope that this will work.
text = get a text from Data Base
dim myLabel as new Label
myLabel.Text = text
myLabel.AutoSize = True
mylabel.location = some location
myForm.control.add(mylabel)
myForm.height = myForm.height + myLabel.height
sorry for my bad English.
|
|
|
|
|
I suppose you could.
I am not very sure about this because although I've been thinking about it for my next project, I haven't tested it out yet.
Here's an example you might develop on (change it according to your need):
1. A function to create the dynamic form (it gets the parameters from database)
Public Function CreateForm(ByVal formName As String, ByVal location As Point, ByVal size As Size) As Form
Dim frmDyne As Form
frmDyne.Name = formName
frmDyne.Location = location
frmDyne.Size = size
CreateForm = frmDyne
End Function
2. A function to create the dynamic controls
Public Sub CreateControls(ByRef frmObject As Form)
Dim intX As Integer
Dim intTotalControls As Integer
Dim arrControl(5, 5) As String
'Read database and put into array (for example)
For intX = 1 To intTotalControls
If arrControl(0, 0) = "Textbox" Then
Dim txtBox As TextBox
txtBox.Name = arrControl(0, 1) 'Name of control
txtBox.Text = arrControl(0, 2) 'The text to display
txtBox.Top = arrControl(0, 3) 'Top
txtBox.Left = arrControl(0, 4) 'etc...
txtBox.Width = arrControl(0, 5)
txtBox.Height = arrControl(0, 6)
'and so on...
frmObject.Controls.Add(txtBox)
ElseIf arrControl(0, 0) = "ComboBox" Then
'Create a combobox here
End If
Next
End Sub
You can pass the form as a reference or call the function to create the controls when you create the form too, so they're all in one function or sub.
The point is you can create a dynamic form using this.
PS: Please tell me whether your project works or not, thanks!
Edbert P
|
|
|
|
|
Itanium and Edbert:
Thanks for the speedy replies. I'll try this method today and let you know what happens.
Mike
|
|
|
|
|
Ok, does anyone know where I can begin to look for examples of some certain system events that occur on a PC.
I need to know the following:
1.) Computer LogOn / Bootup Event
2.) Computer LogOff / Shutdown Event
3.) Computer Idle / Sleep / Awake Events
4.) Screensaver activate / deactivate events
I know there is a way to hook the System to receive the Idle event, but can anyone point me in the right direction for some of the other events? Maybe using WMI is an option?
|
|
|
|
|
You might want to start here:
<a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/event_handler_function_prototype.asp">http:
What you ask is not easily done because of the events your asking for.
Are your writing a service, a user app, or what?
|
|
|
|
|
Actually, it doesn't matter what kind of app...whatever way is the best to implement it...I don't really care about the "easy" factor of programming.
I'll check out the link.
|
|
|
|
|
I am serializing an object and sending it through networkstream to another computer. However when i try to deserialize it, it is giving me a error "BinaryFormatter Version incompatibility. Expected Version 1.0 Recieved version 1566270836.0"
I am using socket programming and not remoting. I am creating the application on a stand alone machine having only one version of .NET framework.
How can i resolve this error?
|
|
|
|
|
Hi All!!
Well! I am developing a report designer like in Access but facing two problems.
1- I want to make my ToolBar Floating. So that my tools float over my designed area rather than making it fix on form.
2- on same designer I have to draw lines. when panel is repainted then all the lines disappear. SO i added them in an arraylist and repainted them all. But now whenever mouse is hovered over the panel all the lines start flickering.
Thanx in advance
sorry for my bad English.
|
|
|
|
|
I am writing a WINDOWS form with a datagrid where i need to run a loop and basically flag every item (containers to be shipped in this case). Now, I've done this with a webform and have had no problems what so ever with it but when it comes to a Windows Form the controls are differnt i.e., namespaces I can't perform the same functions. Here is the sample code from a web form and I was wondering if anyone had any idea how to approach this from a windows form? Any help would be greatly appreciated. Thanks!
'Insert Shipping Request Information into tblContainer - manifestDocument & shipingRequestID
Dim myDataGridItem As DataGridItem
Dim strContainerID As String
lblStatus.Text = " You selected the Following containers to be shipped:
"
'Look at notes: Put the update clause back in at lblStatus.Text to update those records as they cycle through the Loop
For Each myDataGridItem In dgContainer.Items
strContainerID = CType(myDataGridItem.FindControl("lblContainerID"), Label).Text
With cmdUpdateContainer
.Parameters("@containerID").Value = strContainerID
.Parameters("@containerShippingRequest").Value = fldID.Text
.Parameters("@containerUpdateDate").Value = Today
.Parameters("@containerDateShip").Value = fldDate.Text
.Parameters("@storageType").Value = "PEN"
.Parameters("@wasteStream").Value = ddlWasteStream.SelectedItem.Text
End With
SqlConnection2.Open()
cmdUpdateContainer.ExecuteNonQuery()
SqlConnection2.Close()
End If
Next
|
|
|
|
|
Hi!
Is there a way that I can display text or highlight dates that are having events in the mobile web calendar control?
What I'd really like to do is having the results of a database search displayed in the calendar. That is, read from the database and get back all the events of the month (lets say) December, then have the calendar displaying them (or highlighting the dates) so when I look at the month of December 2003, 16, I can have a text says: Day of Reconciliation (or the date highlighted if no text). That's what I'd like to have but I found out that mobile web calendar does not have a "DayRender event" and I don't know if it's even possible with mobile web calendar control (or is it possible to create a control that will do this). If possible, where to find code on how to do it. (I'm using Visual Basic)
If you have any ideas please let me know.
Thanks
TG
|
|
|
|
|
I have an incoming fax basket that my clericals review during the day. I am constructing a UI that will allow them to review the faxes and distribute them accordingly. One of the functions of the UI will be to ICR the incoming document and then extract info from the document e.g. "Store Number", "Customer Name" e.t.c. and apply that information to specific "Extended Properties" of the file such as applying the "Store Number" to the "Comments" property. This way I will be able to pre sort the files by specific info in the Explorer like interface I am building. My question is can someone send me in the right direction as far as a good book or article on Shell programming that will make this task a little easier or even better has someone constructed this code already that can give me some pointers and snippets.
Thank You
Battles are lost but the war goes on.
|
|
|
|
|
Hi, I want to design a program to parse a ASP page,is that capable?
No IIS,Only use my Program.
If it is possible,how should I do?
I am a Chinese student,my English is poor,Sorry~
|
|
|
|
|
No body knows?
Hi,I am a China Student,so I think my English is poor,Sorry
|
|
|
|
|
In VB.NET, there is the numericupdown control that is great (for validating input, i.e. max, min, number of decimal places), however, I am working with very large numbers and it makes no sense to have the spinner buttons visible, as there is no rational incrementing value. Is it possible to shut the spinner buttons off, so that they do not show up?
If not, would it be easy to write a custom control to have the same functionality as the numericupdown control (properties of max, min, number of decimal places), but not have the buttons visible? Does anyone have a custom control available they would like to share?
Seems like Microsoft would have created a control like this.
Any help you can give would be greatly appreciated.
|
|
|
|
|
It seems you are basically just validating the input so why bother with a custom control? You could just use a validator and a text box?
|
|
|
|
|
I understand what you are saying, but it would be much "cleaner" to me if there was a standard control just like the numericupdown, but without the spinner. Why did they bother creating the numericupdown (I am being sarcastic)? It could have just as easily been a text box where someone had to write the code to validate it? Why isn't there a control just like the NumericUpDown, but without the spinner? That is all I am asking for. Seems it would have been so easy to make the Spinner a property (visible or not visible)!
Oh well.
Thanks
|
|
|
|
|
I need to connect to AS400 and run select query and then save the results into SQL database. Do you have some examples, how to do this?
|
|
|
|
|
http://www.codeproject.com/useritems/Accessing_AS400.asp
Trying to make bits uncopyable is like trying to make water not wet.
-- Bruce Schneier
|
|
|
|
|
Hi, in my server explorer produces this error msg :
"server explorer is unable to perform this operation"
"the requested name is valid, but no data of the requested type was found"
but i was able to connect the database to my program!
can someone tell me whats wrong....thanks
nevhile.net
|
|
|
|
|
I have an app that programmatically creates a gif but when it is saved it is dithered and not the exact color that I drew. How do I create a non - dithered gif? Are there any good articles out there on this topics?
Thanks
Jim
|
|
|
|