I was wondering what anyone else thinks of this. We are looking at creating an online form with just creates a simple email and fires it off but we would like to give the user the option of sending an attachment. Does anyone have any thoughts on the risks involved with this from a security standpoint? Is there any special products that .net could use to scan files first? some third party application or control?
I have been having trouble finding much good info from google cause, well... You type the words like "email attachment" "risk" or something like that you get so much back it is out of control.
i am developing online hotel reservation using asp.net. can any one tell me how to accept directly credit cards like this.example this link.http://www.asiahotel.co.th/reservation/credit_bkk.htm.
if I need to design an online form , which from the bginning to the final submit have a few step of next allow back and the just imput is not lost( inside the session)
creating an online application form. As in an application forms to sign up for a course. i would like users to enter their name and email address so that it can be stored onto a database table. im using sql 2005 express edition on visual studio.
I'm using an online form at one of my web sites.Every mail sent from this form is coming in one mail even if the senders IP is different.But I want every single mail to be unique even if the content is same.What I need to do to the mails or which header I need to modify?
SmtpClient smtpClient = new SmtpClient(); MailMessage message = new MailMessage();
MailAddress fromAddress = new MailAddress("no-reply@toprakbasim.com", "NoReply");
what should be the database schema for online account opening form with joint account holders and every participants (in a joint account) have seperate contact and personal detials.
OLE DB provider "SQLNCLI" for linked server "xx.xxx.xxx.xxx" returned message "The partner transaction manager has disabled its support for remote/network transactions.".
I am developing a simple online DBMS to browse my database online.... the main concern for me is to clear everything from the PC when the user disconnect so no body can go and click (Back) on the browser and see the pages if the user forgot to close it.. what I have done so far is :
[Code]....
I am sure this is not enough.. am I right? so what else I should include there?
I want to create a Online Exam site in ASP.NET .In that i want to display Test based on the Date and time and the user can take the test at the time set my the Teacher.
For Example:
Teacher want to take C Test for the Mid Semester Test and the test is schedule on 1 May 2010,then the test should appear on the test page on the 1st may only and the user should be able to take the test on the set time.
The problem is that if i use System time then user can change the system time and can take the test schedule in future.
So i want to know how can implement this thing.I have given many online test but dont know how they work out the time and date logic.
I have FileUpload Control; I need to remove the file content from the control once the operation is done. I am trying to dispose the Filecontrol object but no luck.
Can someone tell me how to edit/update/delete record on the Form View?
i got this on my Update COMMAND :
Code:
[code]....
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?, Name = ?, Addr1 = ?, Addr2 = ?, Addr3 = ?, Addr4 = ?, PhoneNo = ?, HPhoneNo =' at line 1
<% 'load the XML file.. Option Explicit Response.Buffer = True Dim xml Set xml = Server.CreateObject("Microsoft.XMLDOM") xml.async = False xml.load (Server.MapPath("\ilife104 eamdiskSharedIntegrationSystemdevDataprcImportFactSetFeedsfileList.xml")) Dim name, retrieved name = xml.documentElement.childNodes(0).text retrieved = xml.documentElement.childNodes(2).text Set xml = Nothing %>
It gives the error:
Server.MapPath() error 'ASP 0174 : 80004005' Invalid Path Character(s) /ITWeb/Interfaces/je/index.asp, line 9 An invalid '/' or '' was found in the Path parameter for the MapPath method.
Im developing a application in asp.net ,the problem i got was i have a grid view with textboxes in it where i can enter some data and store it into the database.But the problem ,i have to enter minimum 50 characters of data into it but the textbox is accepting only 30 characters.im getting the following error.String or binary data would be truncatedThe statement has been terminated.And i have also checked the datatypes of corresponding columns in the database.(they are set to archar(MAX))
On adding items in it ,shows an error: "Dropdownlist does not allow multiple selection."But when i tries to print the selected item it shows null exception.
In development, everything works good in all browsers, but when I deploy the app to a server, only Firefox is able to log in (so it's the only one accepting the cookie). In the server, the app runs on the root of the server, there is not virtual path.
EDIT: I've looked at it wit Fiddler, and the server is returning the cookie, no doubt. So the problem is that Chrome and IE are not accepting it.
I'll try to make this concise. Anyways, I'm trying to only allow unique data to my database. my database. What I did before adding the entry is to use a Search Query for the value of the txtbox
"SELECT IDnum WHERE IDnum = '" & txtID & "'"
Then compare it with that of the txtbox.
IF objReader("IDNum") <> txtID.textbox then add the entry Else Display a Warning.
in the above code, I can detect the when the user entered an existing value. however, If the user entered a NEW (unique) value an error is Raised "Invalid attempt to read when no data is present" I hit the wall with this.So what I did, Since I can detect Duplicates and have errors when entering unique value, I used the
ON ERROR GOTO statement: I did it like this.
On Error Goto errHandler
If objReader("IDNum") = txtID.textbox then lbl1.text = "Existing Record" objReader.close() [code]....
The Code does what I need but its kinda long, I bet there is an elegant way to do this.
I have a webservice method which needs to accept SOAP as input parameter. I've worked webservices between .NET clients but I've never worked using raw SOAP so I don't know what to do. The format of the input like this:
In VWD2008, it was possible to accept an intellisense suggestion by using the space bar, which would then insert the whole intellisense answer.
However I'm finding that in VWD2010, you need to use the tab key, as the space bar will only retain however many characters you typed to get the intellisense suggestion.
I have an Image control which displays a hard coded jpg file but shows only a small icon in the upper left hand corner when given a PostedFile.FileName instead.
This thing has just came to my head and I wanna share it.Note : I could easily test it but I am being lazy here to see if anybody has ever experienced something like that before.Let's assume that I have a web site which built-in membership structure of asp.net has been implemented on. What will happen to asp.net membership if the client browser blocks cookies? Does framework throw an exception when a user tries to log in or do something else?