Click here to Skip to main content
15,899,679 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: show picture with mouseover Pin
Ankur\m/21-Jun-10 1:22
professionalAnkur\m/21-Jun-10 1:22 
GeneralRe: show picture with mouseover Pin
ptvce21-Jun-10 1:29
ptvce21-Jun-10 1:29 
Questionclearing a asp:listbox takes too much of time Pin
sanjubaba20-Jun-10 21:06
sanjubaba20-Jun-10 21:06 
AnswerRe: clearing a asp:listbox takes too much of time Pin
thatraja20-Jun-10 21:26
professionalthatraja20-Jun-10 21:26 
GeneralRe: clearing a asp:listbox takes too much of time Pin
Gaurav Dudeja India20-Jun-10 21:37
Gaurav Dudeja India20-Jun-10 21:37 
AnswerRe: clearing a asp:listbox takes too much of time Pin
Satish Mahapatra20-Jun-10 23:27
Satish Mahapatra20-Jun-10 23:27 
AnswerRe: clearing a asp:listbox takes too much of time Pin
Abhijit Jana21-Jun-10 2:18
professionalAbhijit Jana21-Jun-10 2:18 
Questionprocedure returning no data even though data is present in database Pin
developerit20-Jun-10 20:23
developerit20-Jun-10 20:23 
hi, iam using asp.net2.0 with c#, with backend sql server2000

in my client system i have to create dynamically procedure and return the result

but when iam using in my local system the code is working fine but at client system it it not working can you correct my code which helps me


string strcon = "Data Source=";strcon += Request.Params["REMOTE_ADDR"] + ";" + "Initial Catalog=POS;User ID=sa;Password=xx103";


SqlConnection conproc = new SqlConnection(strcon);
        conproc.Open();
        SqlCommand cmdproc = new SqlCommand("getsum", conproc);
        cmdproc.CommandType = CommandType.StoredProcedure;


        cmdproc.Parameters.AddWithValue("@BranchKey", Convert.ToInt32(Session["BranchKey"]));
        DateTime dt = Convert.ToDateTime(txtfrom.Text.ToString());
        string fromDate = dt.ToShortDateString();
        DateTime dt1 = Convert.ToDateTime(txtto.Text.ToString());
        string toDate = dt1.ToShortDateString();


        cmdproc.Parameters.AddWithValue("@FromDate", SqlDbType.SmallDateTime).Value = fromDate;
        cmdproc.Parameters.AddWithValue("@ToDate", SqlDbType.SmallDateTime).Value=toDate;

        SqlParameter p1 = cmdproc.Parameters.Add("@tot", SqlDbType.Decimal);
        p1.Direction = ParameterDirection.Output;
        if ((Convert.ToInt32(cmdproc.ExecuteNonQuery())!= -1) && (cmdproc.Parameters["@tot"].Value)!= DBNull.Value)
        {
            decimal ot = Convert.ToDecimal(cmdproc.Parameters["@tot"].Value);
            //decimal ot = Convert.ToDecimal(p1.Value);
            if (ot != null)
            {
                txttotal.Text = ot.ToString();
                conproc.Close();
            }
        }
        else
        {


            clsdataset.ShowAlertMessage("No Data");
            txttotal.Text = "";

        }

AnswerRe: procedure returning no data even though data is present in database Pin
thatraja20-Jun-10 21:15
professionalthatraja20-Jun-10 21:15 
GeneralRe: procedure returning no data even though data is present in database Pin
developerit20-Jun-10 21:49
developerit20-Jun-10 21:49 
GeneralRe: procedure returning no data even though data is present in database Pin
thatraja20-Jun-10 22:51
professionalthatraja20-Jun-10 22:51 
AnswerRe: procedure returning no data even though data is present in database Pin
Satish Mahapatra20-Jun-10 23:33
Satish Mahapatra20-Jun-10 23:33 
QuestionWeb Application Compatibility Issue? Pin
Razanust20-Jun-10 19:49
Razanust20-Jun-10 19:49 
AnswerRe: Web Application Compatibility Issue? Pin
PSK_20-Jun-10 20:02
PSK_20-Jun-10 20:02 
AnswerRe: Web Application Compatibility Issue? Pin
meilixueshan20-Jun-10 21:30
meilixueshan20-Jun-10 21:30 
AnswerRe: Web Application Compatibility Issue? Pin
Ankur\m/20-Jun-10 23:32
professionalAnkur\m/20-Jun-10 23:32 
QuestionRandom number Pin
idea_00720-Jun-10 19:12
idea_00720-Jun-10 19:12 
AnswerRe: Random number Pin
Abhijit Jana20-Jun-10 19:13
professionalAbhijit Jana20-Jun-10 19:13 
AnswerRe: Random number Pin
PSK_20-Jun-10 19:55
PSK_20-Jun-10 19:55 
Questionhow to handle users at the same time to get different primarkey value Pin
developerit19-Jun-10 23:15
developerit19-Jun-10 23:15 
AnswerRe: how to handle users at the same time to get different primarkey value Pin
Not Active20-Jun-10 1:49
mentorNot Active20-Jun-10 1:49 
AnswerRe: how to handle users at the same time to get different primarkey value Pin
Tej Aj20-Jun-10 21:20
Tej Aj20-Jun-10 21:20 
GeneralRe: how to handle users at the same time to get different primarkey value Pin
developerit20-Jun-10 21:47
developerit20-Jun-10 21:47 
QuestionAdding control and serverside script to page dynamically Pin
Fayu19-Jun-10 17:26
Fayu19-Jun-10 17:26 
AnswerRe: Adding control and serverside script to page dynamically Pin
Not Active20-Jun-10 1:43
mentorNot Active20-Jun-10 1:43 

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.