Basic measures when building forms that interact with the sql database. What are the security measures (check insert strings, sql injection etc), and Do people use special controllers in order to format their data? I am using GridView and realizing its tables, which I dont like. If so are there any suggestions for data formatting controllers?
I have an idea of how to do what I have in mind, but I would prefer to ask for some advice just in case anyone can think of a better way.The idea is a simple application where administrators can upload any kind of file. Once the file is uploaded, they give out a username and password to a client, and the client will then access a private area where they will be able to view specific files available for them. ALL THIS IS DONE. My question is... because the browsers can process certain type of files (for instance a JPG or a PDF), they won't automatically prompt the client to save it on their computer, and they will open int he browser. I have solved this issue before by adding a few lines of code to the Response and modifying the content type, something like: Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=logo_large.gif"); Response.ContentType = "image/GIF"; Response.WriteFile(Server.MapPath(@"~/logo_large.gif")); Response.End();However, that would mean I'd need to change the content type for each file (JPG... GIF... PDF ... WORD FILE). So I'd need to find out the content type for each one, and dinamically change it. This way it would force the download for all files. Now... is there an easier way? Remember that I need to have many different type of files, if it was only JPGs for instance, it would be easy.
I am working on building a custom form builder module for our customers ... and wondering if you know any good .NET code base references for this module.
Requirements:
Customer should be able to add a form field(radio button, text box, dropdown menu) and customize the values real time.
I am trying to figure out what are the basic assemblies required to run a basic ASP.NET 4.0 website. Say.. a website with just a label in it. I looked online and didn't find a list there. I know installing the framework 4.0 will give me all the dlls but I just need the basic ones that will make a basic site work on ASP.NET 4.0.
I allow user to select metric or standard scale (KM/Miles) when setting up a profile. They can lookat a list of all users entries, which should be displayed as Std or Metric based on their selection.
I am currently working on an ASP.NET 3.5 and C# web application which deals with users private information like SSN numbers. What are some of the security measures which I need to take from an application development stand point to feel safe?
instead of using gridview to insert student marks (I have hundreds of students) thought I used the Excel:
1) allow managers of each module after authentication to download the excel file (containing the students enrolled in the given module), the excel file ted is generated by the following code: Id_student ____ maks of subject1 -------- ----maks of subject2
[Code]....
But in this code I do not know how to:
* Add the following condition: the student'marks is between 0 and 20. * Calculate the average of this module : sum (coeff * mark) / sum (coeff)
2) Allowing responsable module send me the file containing the data (but then I do not know how)
3) Using data, by sending them to the database to calculate averages.
I looked at Google's, but my boss shot it down because it involves adding a script to every page you want to track. I keep searching the web, but the stuff I am finding seems to be crap or not work all together. This is mainly for internal sites, not external. Seems liek a lot of the stuff I am finding want to give me remote statistics to a publically available site.
I work for a small E-Commerce shop and we are looking for a process that will handle resizing our product images dynamically. Currently our designers take high resolution photos, either provided by the manufactures or created in house, and alter them to fit various pages on our site. The designers are constantly resizing, cropping, altering compression levels, etc., of each product photo to fit the needs of the business. Being that our product line is updated frequently, this becomes a monotonous task.
Abobe Scene7 does exactly what we are looking to do and the images are served up from a CDN. Unfortunately we found it to be too expensive.
I'm curious to learn how others handle this process at their organizations. Does anyone know of any good 3rd party tools or other SAAS providers that can handle performing some basic image manipulation and serving them on the fly?
I've followed the standard example of in http://www.asp.net/ajax/ajaxcontroltoolkit/samples/autocomplete/autocomplete.aspx which demonstrates using AutoCompleteExtender. Everything works fine but the auto-complete appears with about 20 pixel distance below the bottom of its target control. I mean they are not glued to each other as they should be. I've not changed anything and also I've not applied any special styling using CSS or anything else. why this ugly distance is formed while the control is rendered.
I'm currently using the fantastic DorkNozzle 'framework' for building a very basic blog in .NET.My first "self-taught" script is as follows, and is for solely retrieving SQL results.
My boss has it in his head that we need to be monitoring our websites more to see what king of traffic we are getting for but internal and external sites.
I want to learn ASP.NET 4 and C# from scratch to intermediate at least. I want to follow videos. Do you know any good website even if it is paid, I have found this[URL] but I am not sure about it,
i know MVC is the future but for some of us still stuck in the good old webform land, i'm trying to learn how to do TDD and introduce better testing for our current application...
basically the asp.net 2.0 c# web app is quite complicated with some logic in sproc, some in the javascript via json data processing, some in user controls and some in the code behind. not to mention some libraries here and there to make it merrier. i have literally no idea how to even begin to break things down to smaller chunks to do any testing.
Our company now has over 40 tutorial videos and I'm looking for a video gallery app.
Something that would be similar to:[URL] or [URL] Does anyone know of any PHP or asp.net solutions? I'd rather not re-invent the wheel. As there are a ton of hidden functions like sorting, most popular, tagging, comments, etc.
I have a String that contains the following: ?workarea=London+&+Home+Counties+Ltd&sub=fs&&&FASh*5which resembles a URI query string. What is the best way to parse the elements of this string (workarea and sub) without messing about with string manipulation?If I use HttpUtility.ParseQueryString is gets stuck as both elements include &. However if I encode the whole thing first I lose the seperations of the elements. Ideally the output would be:workarea = London & Home Counties Ltdsub = fs&&&FASh*5
I am recently a layed off windows developer. It appears the only jobs available now are for web developers. I'm trying to learn this on my own but I think prospective employers might be more apt to hire a newbie if they have some accredited training.
Can anyone recommend some good online schools that have good asp.net training? I don't necessarily want another degree, just the training.
I am having a lot of trouble with WCF web service over SSL / HTTPS, so I was wondering if (as a quick fix) I could serialize the object, convert that to a byte array, encrypt the array, pass the encrypted array.
On the other side receive the encrypted array, decrypt the array, convert from the array and then deserialize the object.