|
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.
|
|
|
|
|
Its now working. Thread end
|
|
|
|
|
What a weird response. So, do you mean that you fixed all the security holes and other bugs in your software, or just that you removed the quotes in your SQL ?
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.
|
|
|
|
|
Thanx 4 ur kind suggestions. I will try my best to work on the issues u have mentioned in ur reply.
|
|
|
|
|
I had missed something in ASP.NET.
Looking for info on the below:
1. What's the purpose of tag <%#....%>, we mention in aspx file.
2. WHat's the purpose of template column?
3. Whats'the diff bewteen ItemTemplate and EditItemTemplate
4. What's the diff between <%#Eval("myColumn")%> and <%#Bind("myColumn")%>? Which to use and when?
|
|
|
|
|
Do they not make books where you live ? Does google not work where you live ?
1 - it's for embedding code
2 - to define a template for a databound control
3 - one is to show data and one is to edit data
4 - I'm not sure, but I am certain if I googled I could find out.
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.
|
|
|
|
|
I have a web app that uses cookies. Seems that IE8 doesn't handle having multiple sessions to my application - one session per tab. I think the cookies are part of the problem. Anybody else have this problem? Anyone have a work-around?
Rob
tagyurit.com
|
|
|
|
|
If you're using cookies, I can see how that would be an issue. You'd have to put the session id into the cookie name to have a cookie per session, I'd think.
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.
|
|
|
|
|
Currently I have a web hosting solution with "Network Solutions" and I have various sub domains created there. The web sites are all straight HTML and work perfectly.
Now, I want to deploy an ASP.NET application on one of the sub domains and I'm getting a problem because the code-behind can't seem to find my custom class.
I know that the web-server is running IIS 6.0 and .NET 2.0, and I can verify that it will run a simple .aspx page which has a Page_Load code behind of:
Me.TextBox1.Text = Now.ToLongDateString
When I use the following code, Me.TextBox1.Text = HttpContext.Current.Request.PhysicalApplicationPath.ToString() it returns
"E:\0\0\112\153\275968\user\280245\htdocs\"
The twist is that my "hello.aspx" page is deployed in a sub domain in a folder called, "\htdocs\ppsm". This makes me believe that the \htdocs folder is considered the application root directory.
Question: How can I get an ASP.NET applicaiton deployed in \htdocs\ppsm to find the \htdocs\ppsm\bin folder ? Is there something I can do in the web.config ?
Thanks,
David
|
|
|
|
|
You configure IIS to see the subfolder as a seperate web application.
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.
|
|
|
|
|
Thank you for your input.
I've placed a support ticket with my hosting provider requesting that my sub domain folder be listed as an application on their IIS server. I'm finding that Network Solutions is not very supportive relative to ASP.NET application deployments.
I noticed that discountASP.NET is listed under the "ASP.NET Web Hosting" section here on CodeProject. Do you have any exeprience with them ? I'm considering moving hosting providers if I can't get the support I need from my existing provider.
David
|
|
|
|
|
Hello,
i am using the article "Sending SMS using .NET through Web service
By Manoj Kumar C" for sending sms through web ser. but when this application
will run the output show the sms will send successfuly but the msg will not deliver
in the mobile and also not getting an e-mail.
so anybody tell me what i have done to deliver the message sucessfuly.
|
|
|
|
|
This has NOTHING to do with ASP.NET. And yet, it gets asked every day. You need to find a service that will deliver SMS in your area. Most services are unstable, or they cost money.
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.
|
|
|
|
|
If use localhost to send email at first check the directory C(System Drive):\Inetpub\mailroot\Queue . do you get the email message? If not you should configure IIS correctly?
shahdat
|
|
|
|
|
What on EARTH does this have to do with the question that was asked ?
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.
|
|
|
|
|
The web service that he provided for that article stopped working for almost 3 years from now.. (AFAIK)
You need to find another web service like this which can send sms. If you want it for India, you might use way2sms.
|
|
|
|
|
But don't forget, if the client is NOT in india, that webservice may not work for them.
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.
|
|
|
|
|
yes... way2sms can send sms only to indian mobiles..
I dont know if there is any service available which can send sms around the globe.
|
|
|
|
|
yeah, it's possible his code needs to be used locally, so it's good you were able to provide local info, but that's why I tell people who post here about that article ( and many do ) that they need to find something local to them for testing, and to their client for deployment.
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.
|
|
|
|
|
you are absolutely right...
Even for production, I think clients cant rely on free services.. As most of the free services doesn't guarantee sms delivery.
Cheers.
|
|
|
|
|
Abhishek Sur wrote: Even for production, I think clients cant rely on free services.. As most of the free services doesn't guarantee sms delivery.
eah, the other issue is that people who have clients paying $30 for a whole project, tend not to be willing to pay for anything. I don't see any angle that would keep a free service liquid and operating.
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.
|
|
|
|
|
Christian Graus wrote: people who have clients paying $30 for a whole project
you are right...
|
|
|
|
|
why dont you use enterprise.smsgupshup.com api to send sms
i am using it and it is working fine
it cost 6 to 10 paise per sms
|
|
|
|
|
can you please tell me where to download or found assembly
crystaldesicion.enterprise.framework
as
my asp.net site contain crystal report .it works fine when i run it into server server .but the server where i have to upload does not support crystal report.
i have done lots of googling and found that to copy those dll
into my bin directory
but here i again stuk i dont found crystal.enterprise.frameework.dll
and crystaldesicion.enterprise.infostore.dll in my computer and on the google.
it is installed in c:\windows\assembly
but i dont find the acctual path
plz help me
|
|
|
|
|
If it works on your PC, then you have the dll. You can search for it, just make sure you search hidden folders as well.
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.
|
|
|
|