Thanks very much, this is great information. Admittedly, I've done a decent amount of surfing the MSDN stuff, but since I'm already in over my head I unfortunately feel it's often over my head.
Mark, I'm basing this on IP for a few reasons:
a. It's not terribly complicated
b. This doesn't have...
Hi folks,
I imagine I'll get the same folks answering me here, but I figured it's best to post separate questions as separate threads, so that people who search might find this helpful.
So, quick summary: I have a very simple .net app connected to an Access database. Users visit a site and are...
These are great suggestions.
I'm pleased to report that I've actually got the whole thing working! Now, mind you, it's hideous, and the code is a mess, particularly the data source stuff.
So, I have some cleanup to do to make the data sources more secure and consistent.
The datatable was a...
I was able to get the VoteValue working, whee!
Regarding the Gridview, you had written:
"How do you know which record to display in the GridView? Using that same methodology, you should be able to use that value and use the method I suggested above for getting the selected radio button."...
Hey ca8msm,
Just by fiddling around in a different way when I created the data grid, the connection to the database I used looks like this:
<asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="C:\Documents and Settings\sbattisti\My Documents\Visual Studio...
OK, let me try to explain it a little better. :) Apologies.
The general idea is that when a user comes to the page, the page displays a single "suggestion" to the user, in a grid. The user then votes on the suggestion ("Do I like this suggestion, or not?") by clicking on a radio button. The...
OK, thanks for clarifying that! I'm certainly all for learning good coding practices. Well, I can play around with that while I wait to see if someone answers my original questions in this thread. :D
Thanks, as always.
I'm curious, and it wasn't quite clear from reading that article. Is SQL injection still a risk if there is no user input?
For example, my application has no user input other than a radio button. Would it still be succeptible to SQL injection?
Not that I'm terribly...
Hi folks, thanks to everyone's kind help, my little app is moving forward, and I'm back with another newbish question.
After much finagling with MapPath and so forth, I've written a sub that successfully writes data to my database when one of my radio voting buttons is clicked, yay!
Where I'm...
Hi folks,
Well, judicious use of Google failed to turn up an answer to this, and you guys are always fast to reply, so here goes again.
My little ASP.NET application involves a simple (well, for you) voting engine. My page displays a suggestion pulled at random from my database, along with a...
OK folks, thanks very much for your help. I think this gets me to where I need to be right now, although I suspect I'll have more questions once I get to the part where I need to update the database! :)
Jason, thanks for your information as well! I actually have been working through a...
Beautiful, it works like a charm!
For now, I'm going to ignore the whole mess around trapping the server IP versus the actual user's IP address. This is good enough for now.
So, now a follow-up question.
I'd hoped to capture this value in a variable, so that I could ultimately write it to the...
If I am, I'm not intentionally.
The first line of my file says this:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
Does the CodeFile="Default.aspx.vb" mean that I AM using the code behind file, and therefore that I have to do something...
So, I'm attempting to write a little ASP.NET application, even though I'm a terminal newbie about such things, and NOT a programmer by nature. My programming method is basically taking code from various other places and tweaking it to death.
The application grabs some data from an Access...
Hi folks,
I'm looking to build a relatively simple .NET web site that handles voting with a database back-end, something almost exactly like this site:
http://www.ratemyink.com
Well, it would be simple for you programmer types. I'm a .NET novice, so I'm looking for code snippets to give me...
Hi folks,
I'm a complete .NET newbie, in way over my head. :) I'm familiar with some of the .NET concepts, but I only know enough to be dangerous. I'm currently faced with the task of writing a .NET form that will basically retrieve some data from a vendor-provided web service and display it in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.