Click here to Skip to main content
16,021,169 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
i have a image control in form.. i have some label .. i drag and drop labels on that image


at run time i want to save image to sql....



USING ASP.NET
Posted

Wait - you're telling me that you got the drag and drop of labels onto an image to work ? You already posted your code to save images to SQL, so if you got the drag and drop working, I don't see why you have a question.

How did you get the drag and drop to work ? What is your actual question ?
 
Share this answer
 
"yes the image we can save in sql..

i had to drag and drop some labels on a image control in asp.net
its image changing after we drapg and drop label... so the drag and dropped image should be saved ...

how we do it... Any Idea friends"

You've been posting the same question for weeks, and you still can't work out to edit your post to add detail instead of posting non answers ?

How did you make the drag and drop work ? As I've explained to you already, there is no way you can capture an image from the client. Your only bet would be to try to recreate it on the server. How you do that, I'm not sure, but an explanation of how you manage to drag and drop labels onto an image in a web app would be helpful in trying to figure out an answer.
 
Share this answer
 
"on design it self i drag and dropped the label on image and run time it will display value for label from sql


My question is at run time i want to save the image containg the drag and dropped labels....."

EDIT YOUR DAMN POST !!!! It's very hard to respond when your replies disappear when I hit 'post an answer'.

OK, so you don't have, nor did you need, any sort of drag and drop functionality. You used to web designer, which creates CSS, which places your labels over your image in a fixed position. Drag and drop has nothing to do with it, the user will never drag the images.

Your best bet is to write image processing code that loads the image on the server, then places the text on it. There is NO WAY to capture the actual image that is rendered on the client side. I've been telling you that for weeks now. If it took you this long to work out how to use the designer, I'd be surprised if you'll be able to write the code to create a bitmap on the server that matches the one on the client. If it was me, I'd actually generate the image on the server, with the text, and send that down, not render one thing then generate another.

Can I ask, seriously, is the outsourcing fiasco in India really so bad that someone is paying for this code ? Because, seriously, I'd fire anyone who produced the code you've been posting, and if you want to be an actual developer, as opposed to being a joke, you should really buy some books and learn, and get out of a situation that forces you to code well outside your meagre abilities, and produce terrible, unmaintainble, illegible code as a result. If you are just studying, then buy a book and work through it, instead of working on a project that is clearly beyond you. It took you this long to work out how to use the designer, and your understanding of hte problem was such that you kept asking for ways to add drag and drop to your web form, when you didn't need it at all ?

The software industry today is very depressing to me.
 
Share this answer
 
As usual, you just keep posting answers instead of editing your posts. I am left wondering if you read anything we say to you. Seriously.

"since im new one to developing.. i cant say to my boss that i unable to do i.. I came here for help to finish my project ..."

Again - if you're new to developing, why do you have a job writing software ? How does that make sense ? someone is paying for your code, and you have no idea what you are doing. You CANNOT do what you're asking for, and your boss is obviously as clueless as you are, to not have told the client as much. I've given you the answer, you need to generate the image, with the text, on the server, and send it down. I doubt you're capable, but that's the answer.


"I am so depressed to put a question Here... The project may contain Many form and many requirements.. i cannot able to ask every thing in single forum..."

This is the core issue. You've taken a job that you're not capable of doing, which is more your bosses fault than yours. It is a disgrace. You've posted quite a bit of code here, and none of it is CLOSE to being code that anyone should pay for, especially as your database code is not secure, and any malicious user can destroy the database on your website as a result. You're right. You cannot take a job, write code for someone who is paying for it, and then get it done by posting all your questions here and waiting for someone to present code you can copy and paste, because when you're told how to do it yourself, you don't know nearly enough to understand the answers, let alone act on them. That is not our fault. It's yours, and (moreso) that of your boss, who is a charlatan and a lying thief, to accept a spec that includes tasks that are not possible, then expect someone who doesn't know how to code, to do them.

"so i just asking if i get a doubt.....

Is not a sin to ask question.. "

It's not a sin, it's what we're here for, to help developers. The issue is, you're not really a developer. If you were a student, I would not be hard on you. It's because you're helping your boss steal from a paying client that I am pushing to make you realise how immoral your actions are, and that you're in over your depth and need instead to study programming, if you want to become a developer.

"Hope Everyone Understand the Problem faces by Every software developer....."

Perhaps by most developers working on outsourced projects in India. Real programmers do not face the issues you're facing, we educated ourselves before taking a job in the industry. We still need help sometimes, but we tend to know how to write readable, secure, maintainable code ( yours is none of these things ).
 
Share this answer
 
What i understand is you have all the code to do drang and drop and all what you need is to save the out put image after all the drag and drop to sql database

to create new image you can
// Create graphics object for alteration.
System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(100, 100, System.Drawing.Imaging.PixelFormat.Format32bppPArgb);
System.Drawing.Graphics newGraphics = System.Drawing.Graphics.FromImage((System.Drawing.Image)bmp);
newGraphics.DrawImage(orginalimageFile, new PointF(0.0F, 0.0F));
// Alter image.
newGraphics .DrawString(drawString, drawFont, drawBrush, drawPoint);
newGraphics.DrawImage(anotherimageFile, new PointF(10.0F, 30.0F));
///
///
//
 
Share this answer
 
yes the image we can save in sql..

i had to drag and drop some labels on a image control in asp.net
its image changing after we drapg and drop label... so the drag and dropped image should be saved ...

how we do it... Any Idea friends
 
Share this answer
 
on design it self i drag and dropped the label on image and run time it will display value for label from sql


My question is at run time i want to save the image containg the drag and dropped labels.....
 
Share this answer
 
this project for a small company to develop id cards fast...

giving design in image
drag and drop required labels and save it....


this is concept to do id cards fast..
As u unable to reply pl Be patient that i had problem dono to do... i asking some sugession to forum to do .. You are Experienced .. since im new one to developing.. i cant say to my boss that i unable to do i.. I came here for help to finish my project ...

You guys are Brilliant .. Thats why im asking here on.. K.. Cool dude...
 
Share this answer
 
I am so depressed to put a question Here... The project may contain Many form and many requirements.. i cannot able to ask every thing in single forum...


so i just asking if i get a doubt.....

Is not a sin to ask question..


Hope Everyone Understand the Problem faces by Every software developer.....

Keep Smiling.. Have a great day....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900