473,396 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Visual Web Developer 05 User input Query

164 100+
Hi there,I dont even know if this is something that anyone will answer on here but I thought Id give her a shot!

I am super new to VWD, and I am in desperate need of some assistance. I have searched google for hours to no avail, and I dont know where else to look. I think part of my problem is I dont even know what the correct terminology is to be used for what I am looking for.

Here my scenario:
I have a very large sql database that needs to be queried by a few different people on a weekly basis. I am new to using VWD 2005 but I feel I can grasp it quite well through tutorials, etc so forgive if me if my terminology is off. I can setup my own queries on this database and run them fine, but the problem is that the people that need to access this DB will want different queries run all the time. EX- 'check sales from store XX from this date to this date' another ex: 'check sales from stores x,x,x,x,x,x,x,x from this date to this date' another example: 'check amount of coupons used from all stored on this date'

The list could go on.. So I was thinking to create a form for them to easily set the query parameters So I would have some text boxes, maybe some radio buttons, and check boxes and those would be the parameters for the query once the submit button is hit.

Now I dont expect anyone to hold my hand through this, but I was just wondering if someone could possibly tell me A- what this process is technically called, B- point toward any page that maybe has a tutorial on such a process, and C- any information you feel would I would benefit from.


Thank you so much for any of your time, and have a great day!!!
Apr 21 '08 #1
10 1936
jeffstl
432 Expert 256MB
I have yet to use Microsofts new tool you are referring too. I know what it is I think though.

You will likely need to do your coding in VB.NET and ASP.NET to create a form, and process the parameters and send them to your SQL querys.

You will need to manipulate the data by triggering code on certain events of the controls.
Apr 21 '08 #2
mbatestblrock
164 100+
I have yet to use Microsofts new tool you are referring too. I know what it is I think though.

You will likely need to do your coding in VB.NET and ASP.NET to create a form, and process the parameters and send them to your SQL querys.

You will need to manipulate the data by triggering code on certain events of the controls.
Good deal, off to a good start. The form is not a problem, of course.. its making manipulate the query data I am having problems with. I thought it would be something kind of simple while setting up the query in VWD but I don;t see too much on how to do it. I read somewhere in my tons of searching that setting the filter fort a certain field to "?" sans the quotes would mean that a user would have to input the query string for that field, but then did not explain further on how the user would pass that data to it... So I am still lost! and I am still searching online and still hoping for some pointers!

Thanks!
Apr 21 '08 #3
Plater
7,872 Expert 4TB
If you are not worried about security too much, you can generate your SQL query string "on the fly" using simple string concatination based on user input.

I would much rather suggest that you set some groundwork for the SQL queries. Sort of like "group" similar queries and restrict what they can and cannot do. Maybe that's not an options considering how broad a selection types you want.

Seems like what you would like to create is a dynamic sql query creator. Doable, but not simple I wouldn't think.

Your idea for textboxes/dropdowns/radio buttons/etc is probably on the right track.
Apr 21 '08 #4
mbatestblrock
164 100+
Seems like what you would like to create is a dynamic sql query creator. Doable, but not simple I wouldn't think.

Your idea for textboxes/dropdowns/radio buttons/etc is probably on the right track.
Your exactly right. Is there a technical ASP.NET phrase you would call this, or a function in VWD that will make this happen for me. I am still digging around to try and find a solution.

Thanks a million!
Apr 21 '08 #5
Plater
7,872 Expert 4TB
I don't think there is really either.
What you want to do is actually pretty complex (depending on the amount of different things you want to allow users to do)
Apr 21 '08 #6
mbatestblrock
164 100+
I don't think there is really either.
What you want to do is actually pretty complex (depending on the amount of different things you want to allow users to do)

....
If you are not worried about security too much, you can generate your SQL query string "on the fly" using simple string concatination based on user input.
What about that? is that. Is it a fairly straight forward process?
Apr 21 '08 #7
Plater
7,872 Expert 4TB
Well, no. It will be a lot of "if <this> then <this> else <this>"
I would suggest starting off with something simple-ish.
Like allowing the user to specify which columns they want returned.
Get that working, then start adding more pieces to the puzzle.
You can look at Microsoft Access's query builder if you need ideas on things to implement.
Apr 21 '08 #8
mbatestblrock
164 100+
Well, no. It will be a lot of "if <this> then <this> else <this>"
I would suggest starting off with something simple-ish.
Like allowing the user to specify which columns they want returned.
Get that working, then start adding more pieces to the puzzle.
You can look at Microsoft Access's query builder if you need ideas on things to implement.

So I have found this:
http://www.4guysfromrolla.com/webtech/102300-1.shtml

I think this is what I need? I have not read through it yet but at a glance it seems like what I need. Ill update if anything good comes of it!
Apr 22 '08 #9
Plater
7,872 Expert 4TB
It doesn't appear to offer anything I haven't already said. Stored procedures will help you with security, but the more generic you make them, the less secure they are.
Ideally you would have a handfull of specific stored procedures to run your tasks, but you said you really needed them to be super flexable to accomodate what your users want at the "given moment"
Apr 22 '08 #10
mbatestblrock
164 100+
It doesn't appear to offer anything I haven't already said. Stored procedures will help you with security, but the more generic you make them, the less secure they are.
Ideally you would have a handfull of specific stored procedures to run your tasks, but you said you really needed them to be super flexable to accomodate what your users want at the "given moment"
Yes thats all correct. That does appear to be everything you said pretty much. I still haven't gotten around to try to implement this yet. But ill post with any updates if it happens to somewhat workout for me.
Apr 23 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Nashat Wanly | last post by:
HOW TO: Call a Parameterized Stored Procedure by Using ADO.NET and Visual C# .NET View products that this article applies to. This article was previously published under Q310070 For a Microsoft...
26
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio...
27
by: Richard Blewett [DevelopMentor] | last post by:
I've just seen on Eric Gunnerson's blog that C# is getting Edit and Continue in Whidbey. That will please alot of people - although me, I have mixed feelings about it ;-) ...
2
by: underground | last post by:
Hi, everyone I've been trying to figure out a way for a user to update there information. I'm using sections to identify the specific user..Here is the form <? include("include/session.php");...
2
by: swb76 | last post by:
I have a query in MSAccess and it is a select query. As i understand, any query run from Visual Basic would be returned in a recordset. Can i display the results to the user in a datasheet view?...
0
jwwicks
by: jwwicks | last post by:
Introduction This tutorial describes how to use Visual Studio to create a new C++ program, compile/run a program, resume work on an existing program and debug a program. It is aimed at the...
82
by: happyse27 | last post by:
Hi All, I modified the user registration script, but not sure how to make it check for each variable in terms of preventing junk registration and invalid characters? Two codes below : a)...
9
by: happyse27 | last post by:
Hi All, In perl script(item b below) where we check if html registration form are filled in properly without blank with the necessary fields, how to prompt users that the field are incomplete...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.