15,903,854 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by raviram123 (Top 18 by date)
raviram123
3-Nov-15 12:19pm
View
sir just for checking i have written response.write.ihave checked using breakpoint there also coming firstname values side by side like ram,raj
raviram123
12-Oct-15 5:52am
View
yes sir
raviram123
12-Oct-15 5:12am
View
thank u
very nice what u told and is correct
raviram123
6-Aug-15 4:38am
View
Modify the comment. Delete the comment.
sir what u have submitted is nice but what i want is already i have entered some records in to database which contains birthday images and Current date column with datatype date so when i inserted from ui i have inserted like 1985-08-06 so my sys date is like 2015-08-06 so images related to this date is coming but not 1985-08-06 so plz give my idea
raviram123
6-Aug-15 4:38am
View
Modify the comment. Delete the comment.
sir what u have submitted is nice but what i want is already i have entered some records in to database which contains birthday images and Current date column with datatype date so when i inserted from ui i have inserted like 1985-08-06 so my sys date is like 2015-08-06 so images related to this date is coming but not 1985-08-06 so plz give me any idea
raviram123
6-Aug-15 4:37am
View
sir what u have submitted is nice but what i want is already i have entered some records in to database which contains birthday images and Current date column with datatype date so when i inserted from ui i have inserted like 1985-08-06 so my sys date is like 2015-08-06 so images related to this date is coming but not 1985-08-06 so plz give my idea
raviram123
16-Jul-15 8:06am
View
I want to make new image(uploaded image) slightly transparent on the top of MainImage and save in db
raviram123
16-Jul-15 0:32am
View
sir u have sent the code for file upload,what i want is when uploading only i want to edit and upload to database
raviram123
15-Jul-15 12:33pm
View
sir when i click on file upload ctrl ie browse some images in folder wil appear and when i selected it i want to edit the image like crop,inserting another image in it, i want to write text any where
raviram123
15-Jul-15 12:29pm
View
sir this the .aspx.cs code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.IO;
public partial class upload_site : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
if (Add.Checked == true)
{
try
{
string CS = "Data Source=HOME;Initial Catalog=Registration;Integrated Security=True";
using (SqlConnection con = new SqlConnection(CS))
{
SqlCommand cmd = new SqlCommand();
//string filename = FileUpload1.FileName;
string pc = FileUpload1.FileName;
//FileUpload1.PostedFile.SaveAs(Server.MapPath(@"~\Upload\"));
FileUpload1.PostedFile.SaveAs(Server.MapPath(@"~\Upload\" + pc.Trim()));
// string path = @"~\Upload\" + filename.Trim();
//string path = @"~\Upload\";
cmd = new SqlCommand("insert into imagepath(ID,ImageName,CurrentDate,pc)values('" + TextBox1.Text + "','" +TextBox2.Text + "','" + TextBox3.Text + "','" + pc + "')", con);
cmd.CommandType = CommandType.Text;
con.Open();
cmd.ExecuteNonQuery();
con.Close();
lblStatus.Text = " Uploaded Successfully ";
}
}
catch
{
lblStatus.Text = "Please try again later!";
}
}
else if (Delete.Checked == true)
{
string CS = "Data Source=HOME;Initial Catalog=Registration;Integrated Security=True";
SqlConnection con = new SqlConnection(CS);
SqlCommand cmd = new SqlCommand("delete from imagepath where ID='" + TextBox1.Text + "'", con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
lblStatus.Text = " deleted successfully ";
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("separate.aspx");
}
}
raviram123
15-Jul-15 12:27pm
View
sir this the code below
.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="upload site.aspx.cs" Inherits="upload_site" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%-- <style type="text/css">
.auto-style1 {
width: 647px;
background-color: #00FF00;
}
.auto-style2 {
height: 323px;
width: 406px;
color: #FF0066;
background-color: #0066FF;
}
/*.auto-style3 {
color: #000000;
background-color: #FFFF99;*/
}
.auto-style4 {
width: 407px;
color: #00FF00;
height: 320px;
}
</style>--%>
<style type="text/css">
#Form1 {
width: 743px;
background-color: #33CCFF;
height: 388px;
}
.auto-style2 {
color: #FF33CC;
height: 387px;
width: 749px;
}
.auto-style3 {
color: #0000FF;
}
.auto-style4 {
background-color: #0000FF;
}
.auto-style5 {
background-color: #0000FF;
color: #FFFFFF;
}
.auto-style6 {
color: #CC3300;
}
.auto-style7 {
color: #FFFFFF;
background-color: #0000FF;
}
.auto-style8 {
color: #FFFFFF;
background-color: #0000FF;
}
.auto-style9 {
color: #FFFFFF;
}
</style>
</head>
<body>
<form id="Form1" runat="server" class="auto-style4">
<table border="0" color:"blue" cellspacing="5" cellpadding="5" class="auto-style2">
<tbody><tr>
<td class="auto-style1">
<span class="auto-style9">ID</span><span class="auto-style3"> </span>
<asp:TextBox ID="TextBox1" runat="server" CssClass="auto-style3">
<span class="auto-style3">
<asp:Label ID="Label1" runat="server" CssClass="auto-style4" ForeColor="#FFFFCC" Text="ADD/DEL">
<asp:CheckBox ID="Add" runat="server" Text="ADD" CssClass="auto-style7" />
<asp:CheckBox ID="Delete" runat="server" Text="DEL" CssClass="auto-style8" />
</span>
<asp:Button ID="Button2" runat="server" CssClass="auto-style5" Height="23px" OnClick="Button2_Click" Text="GO" Width="58px" />
</td>
</tr>
<tr>
<td class="auto-style1">
<span class="auto-style9">name</span><span class="auto-style3"> </span> <asp:TextBox ID="TextBox2" runat="server" CssClass="auto-style3">
<span class="auto-style3">
<br />
<br />
</span>
<span class="auto-style9">
date</span><span class="auto-style3"> </span>
<asp:TextBox ID="TextBox3" runat="server" CssClass="auto-style3">
</td>
</tr>
<tr>
<td class="auto-style1">
<span class="auto-style9">image</span><span class="auto-style6"> </span>
<asp:FileUpload ID="FileUpload1" runat="server" CssClass="auto-style3" />
<asp:Label ID="lblStatus" runat="server" CssClass="auto-style3">
raviram123
15-Jul-15 4:36am
View
sir iwant not from databse imag to edit when uploading from fileupload ctrl i want to edit image and insert to database
raviram123
14-Jul-15 14:37pm
View
sir, in one page i have three fields like id,name,img when i click on save these insert into database after that inthe next page 8 images slide continuously so if any image related to sys date is there it should slide but i have done this also.but what i want is id,name,img related to sysdate should placed in one image and it should slide with these 8 images
raviram123
10-Jul-15 0:38am
View
this wil insert file to folder and path to database but i want to insert image to database any way thank u
raviram123
10-Jul-15 0:35am
View
ok i wil write by my own no problem complete code only links not to implement u
ok
raviram123
8-Jul-15 5:37am
View
actually iam uploading images to database its working but when uploading means when i click on browse ie fileupload ctrl some images in my system will open so if i selected birthday image i want to edit it ie i want to insert some image in to birthday image after editing i want to save to database
raviram123
8-Jul-15 5:36am
View
actually iam uploading images to database its working but when uploading means when i click on browse ie fileupload ctrl some images in my system will open so if i selected birthday image i want to edit it ie i want to insert some image in to birthday image after editing i want to save to database
raviram123
6-Jul-15 0:41am
View
thanks sir its workings
Show More