Use Try Catch End Try Look into sqlException..something like this i tthink Try ..your delete here catch e as SQLException ...alert user or write to log file end try But do look into SQLException.
eramgarden
Posts
-
How to catch SQL Exception? -
"Dynamic" textbox /TEXTAREAI have a checkboxlist, that can have from 1 to 32 checkboxes... When a checkbox is clicked, I want to display a TextBox/TextArea... How can I reserve a place for this textbox next to each checkboxlist? How can I have it as textarea since the text can be a paragraph or more?
-
checkboxlist: need idea/sampleThis is what I want to do: Have a checkboxlist, when user clicks on any checkbox, display a text field under it with the information pulled from database and displayed in the textbox... [b] The textboxes are then updated back to the database [/b] Something like this: http://www.w3schools.com/aspnet/showasp.asp?filename=demo\_checkboxlist [b] But my issues/questions are these: [/b] 1. I want the textbox to be hidden ( but have the data from database already pulled into it). Only make the textboxes visible when a checkbox is clicked. 2. Is there another option besides "textbox"..because I dont know how big the field is going to be in the database..it could be one line, it could be a paragrah..[b] is there a dynamic control I can use?? [/b] 3. Is this doable on a datagrid/datalist? Thanks so much for any help
-
insert value error!!!you need to replace the single quote with 2 single quotes. insert into table1 (clientname) values ('o''neil')
-
doable in Java but doable in .Net?I'm not a Java developer..just have her code to look over and see what she's done...If I knew there's a PDFWrite class, I wouldnt be asking..I looked at the folder she gave us and didnt see such class.. There's no shame in asking and getting help..is there? This helps a lot. Thanks.
-
doable in Java but doable in .Net?ex-coworker did it in Java... but she was laid off and we cant use her code anymore... these are some of her code: Document document = new Document(PageSize.A4, 50, 50, 50, 50); ..... PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("tiffTest.pdf"));
-
doable in Java but doable in .Net?I'm working on a "image processing" application... This is what I want to do... Take a TIF file, convert to PDF with 10 dpi and add couple of texts to the bottom of the image... This is doable in Java but I'm not familiar with Java and like to know if it can be done in .Net? if so, any ideas, sample websies would be great..
-
followed this example but mine doesnt workfound my answer
-
Image Centerfound my answer.
-
Image CenterI have 700x500 canvas. I have an image. [b] how can I center the image on the canvas?[b] If i have: [b]gr.DrawImage(b, 0.0F, 0.0F)[/b]..this draws it on the left hand corner of the canvas.. This is what i have: [code] Dim g As Graphics = Graphics.FromImage(b) Dim gr As Graphics = Graphics.FromImage(Canvas) Dim imageH As Single = Convert.ToSingle(b.Height) Dim imageW As Single = Convert.ToSingle(b.Width) Dim CanH As Single = Convert.ToSingle(Canvas.Height) Dim canW As Single = Convert.ToSingle(Canvas.Width) Dim bgBrush = New SolidBrush(System.Drawing.Color.White) gr.FillRectangle(bgBrush, New Rectangle(0, 0, 700, 500)) gr.DrawImage(b, 0.0F, 0.0F) [/code] any ideas?