zeeshanef's Profile User Rating: -----

Reputation: 18 Tradesman
Group:
Active Members
Active Posts:
76 (0.08 per day)
Joined:
14-April 12
Profile Views:
1,523
Last Active:
User is offline Nov 16 2014 08:19 AM
Currently:
Offline

Previous Fields

Country:
PK
OS Preference:
Who Cares
Favorite Browser:
Opera
Favorite Processor:
Intel
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Icon   zeeshanef has not set their status

Posts I've Made

  1. In Topic: Sql Connection Error

    Posted 12 Oct 2014

    Set command type as StoredProcedure again:

    cmd = new SqlCommand("CreatePerson");
    cmd.CommandType = CommandType.StoredProcedure;
  2. In Topic: login page not redirect to reports page in asp.net mysql

    Posted 12 Oct 2014

    Put this following: in if (dr.HasRows)

    if (dr.HasRows)
    {
       
         while(dr.Read())
          {
            Session["UName"] = dr[0].ToString();
            Session["UPasword"] = dr[1].ToString();
            Session["UserType_ID"] = dr[2].ToString();
          }
         if (dr[2].ToString() == "1")
         {
              Response.Redirect("View_Reports.aspx");
         }
         else
         {
            Response.Redirect( "gallery.aspx" );
         }
    }
    
  3. In Topic: How to connect text search with data in access table

    Posted 22 Sep 2014

    What is the version of your MS Access and what is the Extension of your database file is it MDB or accdb?
  4. In Topic: ListBox Values and Arrays

    Posted 20 Sep 2014

    Please show your logic code and your Database interaction code.
  5. In Topic: SESSION’S -- Passing values between pages. HELP

    Posted 20 Sep 2014

    You can pass values by session object.
    Create a class which contains property Fields like:

    public class SalesData
        {
            public decimal SalesPrice { get; set; }
            public decimal DiscountPrice { get; set; }
            public decimal TotalPrice { get; set; }
        }
    
    


    Now on your submit button:
    protected void Button1_Click(object sender, EventArgs e)
        {
            SalesData sale = new SalesData();
            sale.SalesPrice = TextBox.txtSalesPrice;
            sale.DiscountPrice = Label.lblDiscountAmount;
            sale.TotalPrice = label.lblTotalPrice);
    
            session["saleData"] = sale;
            Response.Redirect("Confirm.aspx")
        }
    
    


    Now on you Confirm.aspx page_load event get these values and print:
    protected void Page_Load(object sender, EventArgs e)
    {
     if (session["saleData"] != null) //check if session exists with given index
      {
       SalesData sale = (SalesData)session["saleData"]; //unboxing object into SalesData type
       lblSalesPrice.Text = sale.SalesPrice.ToString();
       lblDiscountAmount.Text = sale.DiscountPrice.ToString();
       lblTotalPrice.Text = sale.TotalPrice.ToString();
      }
    }
    
    

My Information

Member Title:
D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

Comments

zeeshanef has no profile comments yet. Why not say hello?