|
If a field datatype is represented as tinyint.By mistakenly if a user enter the data as a string value then an exception will be catched in sql.How to avoid the exception .Or if posiible to declare a msg inorder for this exception ..How i check the field as mumeric or not in code.
|
|
|
|
|
SreejithAchutan wrote: By mistakenly if a user enter the data as a string value then an exception will be catched in sql.
You don't perform basic data validation like this in your database. You perform it in your web pages or in your middle tier. It is bad practice to send invalid input like this all the way to your database to be validated. Errors like this should be caught and handled far earlier in your application.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
pmarfleet wrote: It is bad practice to send invalid input like this all the way to your database to be validated. Errors like this should be caught and handled far earlier in your application.
I agree. It is amazing how much bad practice I see around here sometimes.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hello Sir\Madam,
Please provide me info on how to link to the various forms in a project using coding but not by using properties window.
for e.g:
if(condn)
{
then to next form ;( pl provide code how to achieve this)
}
Thank you!
|
|
|
|
|
Response.Redirect("http://yourdomain.com/nextpage.aspx")
|
|
|
|
|
if(cndtn)<br />
{<br />
Response.Redirect("Next Form");<br />
}<br />
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
i have a data list and one delete button on it button after clicking delete button it will not fired can any one help me
|
|
|
|
|
Can u post ur code...
Erasers are for people who are willing to correct their mistakes.
|
|
|
|
|
Kasi Viswanathan wrote: Can u post ur code...
Could you use proper English instead of abbreviations and textspeak?
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
How to Crop Image to desired Pixels in Javascript + Asp.net 2.0
please help me.
Any Sample code is appreciable.
Thanks n regards
Krishna PRASAD.
fttyhtrhyfytrytrysetyetytesystryrty
modified on Saturday, December 22, 2007 1:44:12 AM
|
|
|
|
|
yadlaprasad wrote: i want to crop the image,after croping the image then only i want to insert in to the database.
Load Bitmap instance, and use Graphics.DrawImage() specifying the width and size. You can try GetThumbNail() also.
|
|
|
|
|
You can't crop an image in Javascript and unless you're writing a HTTP handler, or showing images in a web page with no text, you'll have trouble trimming them in memory and then showing them. What are you trying to do ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Sir, I want the coding for storing datas into access database.
|
|
|
|
|
Google broken where you live ? What have you tried ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
|
wrote: I want the coding for storing datas into access database
Can't really do that. You did not supply a clear/concise need or database information at all. Code for storing data in a database depends on the schema, etc of the database. There is no one clear answer to your need.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
|
It's with JS and AJAX concepts.
|
|
|
|
|
the moment , it changes the pic, i think that moment , the request should go to the server.I mean when it changes the pic automatically, after that , i click the ALT + Back button , it should take me to the previous pic , but the moment i click at the back button it is taking me to yahoo.com page.
Yesterday is a canceled check. Tomorrow is a promissory note. Today is the ready cash. USE IT.
|
|
|
|
|
Sonia Gupta wrote: i click at the back button it is taking me to yahoo.com page.
AJAX calls won't be stored by the browser to take you to the back. So pressing back button will take you the page where you came from.
|
|
|
|
|
I recommend the book 'AJAX in Action' as a way of understanding what's happening here.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: AJAX in Action
I was looking for this since last two months. Looks like indian edition is not available yet !
|
|
|
|
|
N a v a n e e t h wrote: indian edition is not available yet
As you know, Indian Edition is much cheaper than the original version.. I was in India last year and I was so happy to buy the books over there.
|
|
|
|
|
That's a pity. It's a great book. I guess it's not financially viable for you to buy from Amazon ? That sucks.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|