Click here to Skip to main content
15,909,324 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: MoveNext is not moving next!! Pin
Bomb_shell7-Apr-11 8:05
Bomb_shell7-Apr-11 8:05 
Questionhow to use reusuable control in ajax tab control? Pin
Dhyanga6-Apr-11 4:38
Dhyanga6-Apr-11 4:38 
AnswerRe: how to use reusuable control in ajax tab control? Pin
Ali Al Omairi(Abu AlHassan)7-Apr-11 11:00
professionalAli Al Omairi(Abu AlHassan)7-Apr-11 11:00 
GeneralRe: how to use reusuable control in ajax tab control? Pin
Dhyanga12-Apr-11 5:25
Dhyanga12-Apr-11 5:25 
GeneralRe: how to use reusuable control in ajax tab control? Pin
Ali Al Omairi(Abu AlHassan)12-Apr-11 20:15
professionalAli Al Omairi(Abu AlHassan)12-Apr-11 20:15 
QuestionDownloading files from server. Pin
sarang_k6-Apr-11 2:18
sarang_k6-Apr-11 2:18 
AnswerRe: Downloading files from server. Pin
meeram3956-Apr-11 2:32
meeram3956-Apr-11 2:32 
Questionimage filepath name not stored Pin
kannan 26-Apr-11 1:34
kannan 26-Apr-11 1:34 
namespace photoshops
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
         {
             onflbload(sender, e);
         }
        public void onflbload(object sender, EventArgs e)
        {
        // Create a byte[] from the input file

        int len = flbload.PostedFile.ContentLength;
        byte[] pic = new byte[len];
        flbload.PostedFile.InputStream.Read(pic, 0, len);
        
        // Insert the image and comment into the database

        SqlConnection connection = new SqlConnection(@"Data Source=DEVI\SQLEXPRESS; 
                          Initial Catalog =cat; Integrated Security=SSPI");
        SqlConnection con = new SqlConnection();
        con.ConnectionString = @"Data Source=DEVI\SQLEXPRESS; Initial Catalog =cat; Integrated Security=SSPI";

        try
        {
            connection.Open();
            SqlCommand cmd = new SqlCommand("insert into tblphotosettings " + "(BillNo,CustomerName,Address,StartDate,EndDate,Numberofcopies,) values (@BillNo,@CustomerName,@Address,@StartDate,@EndDate,@Numberofcopies,)", connection);
            cmd.Parameters.Add("@BillNo", SqlDbType.NVarChar).Value = TextBox1.Text;
            cmd.Parameters.Add("@CustomerName", SqlDbType.NVarChar).Value =TextBox2.Text;
            cmd.Parameters.Add("@Address", SqlDbType.NVarChar).Value = TextBox3.Text;
            cmd.Parameters.Add("@StartDate", SqlDbType.NVarChar).Value =Rdbsdate.SelectedDate;
            cmd.Parameters.Add("@EndDate", SqlDbType.NVarChar).Value =Rdbddate.SelectedDate;
            
            cmd.Parameters.Add("@Numberofcopies", SqlDbType.NVarChar).Value =TextBox7.Text;
            
            

            cmd.CommandText = "photosets";
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Connection = con;
            cmd.Parameters.Add("@Systemurl", SqlDbType.Image).Value = pic;
            SqlParameter Src = new SqlParameter("@FilePath", SqlDbType.VarChar, 450);
            cmd.Parameters.Add("@Amount", SqlDbType.NVarChar).Value = TextBox8.Text;
            cmd.Parameters.Add("@Total", SqlDbType.NVarChar).Value = TextBox9.Text;
           
            cmd.Parameters.Add(Src);
            con.Open();
            cmd.ExecuteNonQuery();

        }

        finally
        {
            connection.Close();
        }
    }
}
}    
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[photosets]
(
@Systemurl image,
@Filepath varchar,
@Amount NVarchar,
@Total NVarchar
)
	
AS
BEGIN
	insert into tblphotosettings
(

Systemurl,
Filepath,
Amount,
Total
)
	values
(
@Systemurl,
@Filepath,
@Amount,
@Total
)
END
Procedure or function photosets has too many arguments specified.and then i need store to image and image path name and record Dead | X| Smile | :)
AnswerRe: image filepath name not stored Pin
Pete O'Hanlon6-Apr-11 2:12
mvePete O'Hanlon6-Apr-11 2:12 
AnswerRe: image filepath name not stored Pin
dpkchhirang6-Apr-11 2:20
dpkchhirang6-Apr-11 2:20 
QuestionGoogle map with multiple markers Pin
venu6565-Apr-11 21:21
venu6565-Apr-11 21:21 
AnswerRe: Google map with multiple markers Pin
De_Novice8-Apr-11 11:32
De_Novice8-Apr-11 11:32 
QuestionWill you please post some code. Pin
Sheikh Sajid Ali5-Apr-11 20:20
Sheikh Sajid Ali5-Apr-11 20:20 
AnswerRe: Will you please post some code. Pin
Pete O'Hanlon6-Apr-11 2:19
mvePete O'Hanlon6-Apr-11 2:19 
QuestionRefresh Parent Window And Close Popup Window Pin
Orcun Iyigun5-Apr-11 15:09
Orcun Iyigun5-Apr-11 15:09 
Questiononly get one last record with the same field value during sorting database records Pin
Farhad Eft5-Apr-11 7:46
Farhad Eft5-Apr-11 7:46 
AnswerRe: only get one last record with the same field value during sorting database records Pin
Wendelius5-Apr-11 8:34
mentorWendelius5-Apr-11 8:34 
AnswerRe: only get one last record with the same field value during sorting database records Pin
Viral Upadhyay5-Apr-11 8:35
Viral Upadhyay5-Apr-11 8:35 
QuestionProblem with DropDownList and RequiredFieldValidator Pin
kbalias5-Apr-11 3:10
kbalias5-Apr-11 3:10 
AnswerRe: Problem with DropDownList and RequiredFieldValidator Pin
Not Active5-Apr-11 7:00
mentorNot Active5-Apr-11 7:00 
AnswerRe: Problem with DropDownList and RequiredFieldValidator Pin
Parwej Ahamad5-Apr-11 8:47
professionalParwej Ahamad5-Apr-11 8:47 
AnswerRe: Problem with DropDownList and RequiredFieldValidator Pin
Prasanta_Prince14-Apr-11 0:59
Prasanta_Prince14-Apr-11 0:59 
GeneralRe: Problem with DropDownList and RequiredFieldValidator Pin
kbalias27-Apr-11 21:06
kbalias27-Apr-11 21:06 
GeneralRe: Problem with DropDownList and RequiredFieldValidator Pin
Prasanta_Prince28-Apr-11 3:42
Prasanta_Prince28-Apr-11 3:42 
QuestionPaypal Tax Pin
Ramkumar_S5-Apr-11 2:28
Ramkumar_S5-Apr-11 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.