Click here to Skip to main content
15,921,941 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Dropdownlist select only first value Pin
Christian Graus9-Sep-09 18:59
protectorChristian Graus9-Sep-09 18:59 
GeneralRe: Dropdownlist select only first value Pin
haleemasher9-Sep-09 19:07
haleemasher9-Sep-09 19:07 
GeneralRe: Dropdownlist select only first value Pin
Christian Graus9-Sep-09 19:08
protectorChristian Graus9-Sep-09 19:08 
GeneralRe: Dropdownlist select only first value Pin
N a v a n e e t h9-Sep-09 19:12
N a v a n e e t h9-Sep-09 19:12 
GeneralRe: Dropdownlist select only first value Pin
Christian Graus9-Sep-09 19:16
protectorChristian Graus9-Sep-09 19:16 
GeneralRe: Dropdownlist select only first value Pin
Arun Jacob9-Sep-09 23:21
Arun Jacob9-Sep-09 23:21 
QuestionDB Exception Error converting data type varchar to numeric Pin
haleemasher9-Sep-09 18:12
haleemasher9-Sep-09 18:12 
AnswerRe: DB Exception Error converting data type varchar to numeric Pin
Christian Graus9-Sep-09 18:24
protectorChristian Graus9-Sep-09 18:24 
This is horrible code. I hope you're just experimenting to teach yourself, because if someone is paying for this code, they are being robbed.

You should choose a more simple project to experiment with while you are just learning. There's too much going wrong here, too many things to address. Some basic points:

1 - I can erase the database on your website whenever I like, because you have NO security. You need to buy some books and read them, and you need to google injection attacks, there's at least one great article here on CP
2 - you also need to buy a book on ADO.NET and read it. Also, you need to read your error messages, which are in plain english, and either google them, or at least stop to think what they may mean. The issue here, is that you are placing your number in quotes, which means it becomes a string, hence the (very explicit and clear ) error message you are getting
3 - Given that you're accepting numbers in text boxes, are you doing anything to deal with the possibility of someone entering text ? I doubt it, I thnk your code will just blow up
4 - You should write simplified error messages to an end user, not give them an exception verbatim. Log the real error for your own use
5 - your data layer is crap. If it was a real data layer, you would not be writing SQL in the presentation layer, or looking up a connection string. In fact, I can't see what your so called data layer is doing at all.

There's nothign wrong with learning. As I said, if you are doing this for money, you are a liar and a cheat, you have no idea how to program yet. But, if you're learning, then experimenting AND buying books/reading articles is the way to go. Choose something simpler to learn from, get some decent resources, and you will be fine. You're at least a year from writing anything that anyone in their right mind would pay for, however.

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

AnswerRe: DB Exception Error converting data type varchar to numeric Pin
haleemasher9-Sep-09 18:47
haleemasher9-Sep-09 18:47 
GeneralRe: DB Exception Error converting data type varchar to numeric Pin
Christian Graus9-Sep-09 18:50
protectorChristian Graus9-Sep-09 18:50 
GeneralRe: DB Exception Error converting data type varchar to numeric Pin
haleemasher9-Sep-09 18:56
haleemasher9-Sep-09 18:56 
QuestionItemTemplate and EditItemTemplate, Eval and bind Pin
amittinku9-Sep-09 17:58
amittinku9-Sep-09 17:58 
AnswerRe: ItemTemplate and EditItemTemplate, Eval and bind Pin
Christian Graus9-Sep-09 18:01
protectorChristian Graus9-Sep-09 18:01 
QuestionIE8 / tabs / cookies Pin
tagyurit9-Sep-09 13:02
tagyurit9-Sep-09 13:02 
AnswerRe: IE8 / tabs / cookies Pin
Christian Graus9-Sep-09 13:17
protectorChristian Graus9-Sep-09 13:17 
QuestionTrouble deploying ASP.NET application in sub domain Pin
David Mujica9-Sep-09 10:57
David Mujica9-Sep-09 10:57 
QuestionRe: Trouble deploying ASP.NET application in sub domain Pin
Christian Graus9-Sep-09 11:14
protectorChristian Graus9-Sep-09 11:14 
AnswerRe: Trouble deploying ASP.NET application in sub domain Pin
David Mujica10-Sep-09 3:38
David Mujica10-Sep-09 3:38 
QuestionSMS is not deliver Pin
kunal naik9-Sep-09 10:55
kunal naik9-Sep-09 10:55 
AnswerRe: SMS is not deliver Pin
Christian Graus9-Sep-09 11:13
protectorChristian Graus9-Sep-09 11:13 
AnswerRe: SMS is not deliver Pin
Shahdat Hosain9-Sep-09 11:14
Shahdat Hosain9-Sep-09 11:14 
GeneralRe: SMS is not deliver Pin
Christian Graus9-Sep-09 11:15
protectorChristian Graus9-Sep-09 11:15 
AnswerRe: SMS is not deliver Pin
Abhishek Sur9-Sep-09 12:04
professionalAbhishek Sur9-Sep-09 12:04 
GeneralRe: SMS is not deliver Pin
Christian Graus9-Sep-09 12:10
protectorChristian Graus9-Sep-09 12:10 
GeneralRe: SMS is not deliver Pin
Abhishek Sur9-Sep-09 12:14
professionalAbhishek Sur9-Sep-09 12:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.