Solved

ASP.net SqlDataSource

Posted on 2012-03-26
3
265 Views
Last Modified: 2012-03-30
Hi

I am fairly new to using SqlDataSource on an ASP.net page
Someone I work with referred to pulling a "view" and then just changing the where
clause. Can anyone elaborate on this?

Thanks
0
Comment
Question by:murbro
3 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 250 total points
Comment Utility
0
 
LVL 18

Assisted Solution

by:Jerry Miller
Jerry Miller earned 250 total points
Comment Utility
Views are used in some cases to restrict access for specific users. A view is essentially a stored Select statement that is created for the users.

http://msdn.microsoft.com/en-us/library/aa214068%28v=sql.80%29.aspx

Changing the where clause at run time can be considered a dynamic query. These must be done correctly or you open yourself up to SQL injection.

Like Dhaest stated, what are your goals?
0
 

Author Closing Comment

by:murbro
Comment Utility
thanks
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now