Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
G

gopinathtamil

@gopinathtamil
About
Posts
11
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Properties error in C#
    G gopinathtamil

    i have tried using below coding for shopping cart functionality...but it shows below error... Error: CS0501: 'CartItem.Quantity.get' must declare a body because it is not marked abstract or extern Coding

    using System;

    public class CartItem : IEquatable {
    #region Properties

    public int Quantity
    {
        get;
        set;
    }
    
    private int \_productId;
    
    public int ProductId 
    {
    	get 
        { 
            return \_productId; 
        }
    	set 
        {
    		\_productId = value;
    	}
    }
    
    private Product \_product = null;  
    
    public Product Prod 
    {
    	get 
        {
    		if (\_product == null) 
            {
    			\_product = new Product(ProductId);
    		}
    		return \_product;
    	}
    }
    
    public string Description 
    {
    	get 
        { 
            return Prod.Description; 
        }
    }
    
    public decimal UnitPrice 
    {
    	get 
        { 
            return Prod.Price; 
        }
    }
    public string productname
    {
        get
        {
            return Prod.Productname;  
        }
    }
    
    public decimal TotalPrice 
    {
    	get 
        { 
            return UnitPrice \* Quantity; 
        }
    }
    
    #endregion
    
    public CartItem(int productId) 
    {
    	this.ProductId = productId;
    }
    
    public bool Equals(CartItem item) 
    {
    	return item.ProductId == this.ProductId;
    }
    

    }

    C# csharp help

  • Cookies storing Problem in C#
    G gopinathtamil

    public void GetCookie() { string subkeyName,subkeyValue; string str = null; str = Request.QueryString["productid"]; Addtocart.Value = str; Addtocart.Expires = DateTime.Now.AddDays(1); Response.Cookies.Add(Addtocart); for (int i = 0; i < Request.Cookies.Count; i++) { AppCookie = Request.Cookies[i]; output.Append("Name = " + AppCookie.Name + "
    "); if (AppCookie.HasKeys) { for (int j = 0; j < AppCookie.Values.Count; j++) { subkeyName = Server.HtmlEncode(AppCookie.Values.AllKeys[j]); subkeyValue = Server.HtmlEncode(AppCookie.Values[j]); output.Append("Subkey name = " + subkeyName + "
    "); output.Append("Subkey value = " + subkeyValue + "

    "); } } else { output.Append("Value = " + Server.HtmlEncode(AppCookie.Value) + "

    "); } } CacheMsg.Text = output.ToString(); } Through above coding we try to store more than two cookies but we didn't achieved.....so is there any way to store more then two cookies

    C# csharp sysadmin help

  • Add problem of HttpCookie
    G gopinathtamil

    Is it possible to store more than one value in HttpCookie ...

    ASP.NET

  • i am passing querystring through this coding is it correct way
    G gopinathtamil

    i need to pass two values using querystring. Dim myDataAdapter1 As SqlDataAdapter = New SqlDataAdapter("SELECT i.imageid,i.IMAGE,p.productname,p.Price,p.productid,p.ourprice FROM Product p,IMAGE i WHERE p.Typeid='1' AND i.Productid=p.Productid and p.productid in(170)", myConnection) Dim ds1 As DataSet ds1 = New DataSet myDataAdapter1.Fill(ds1, "image") Dim str As String str = "<table><tr><td align=center><table border=0 cellpadding=0 cellspacing=0><tr><td><Img Width=100 height=100 src=Image.aspx?id=" & ds1.Tables(0).Rows(i)("imageId") & "></Img></td></tr></table></td></tr><tr><td align=center> <a href=productdetailview.aspx?typeid=1&Productid=" & ds1.Tables(0).Rows(i)("productid") & " > " & ds1.Tables(0).Rows(i)("productname") & "</a></td></tr><tr><td align=center><font color=#ff6900>MRP Rs:-<strike>" & ds1.Tables(0).Rows(i)("price") & "</strike><font></td></tr><tr><td align=center><font color=green>Our Price Rs:-" & ds1.Tables(0).Rows(i)("ourprice") & "<font></td></tr></table>" Response.Write(str & "<br>") This is a dynamic creating table on vb.net...which i was mentioned on bold letters. that is called hyperlink tag which i am going to pass the value using querystring.....it correct way to mention querystring like this......

    ASP.NET

  • i am passing querystring through this coding is it correct way
    G gopinathtamil

    <table><tr><td align=center><table border=0 cellpadding=0 cellspacing=0><tr><td><Img Width=100 height=100 src=Image.aspx?id=" & ds1.Tables(0).Rows(i)("imageId") & "></Img></td></tr></table></td></tr><tr><td align=center><a href=productdetailview.aspx?typeid=1&Productid=" & ds1.Tables(0).Rows(i)("productid") & ">" & ds1.Tables(0).Rows(i)("productname") & "</a></td></tr><tr><td align=center><font color=#ff6900>MRP Rs:-<strike>" & ds1.Tables(0).Rows(i)("price") & "</strike><font></td></tr><tr><td align=center><font color=green>Our Price Rs:-" & ds1.Tables(0).Rows(i)("ourprice") & "<font></td></tr></table>

    ASP.NET

  • Update panel error on my site
    G gopinathtamil

    any of the other stuff it mentions ?... it means what your trying to i didn't get properly.. can you come again once again....

    ASP.NET sysadmin debugging json help announcement

  • Update panel error on my site
    G gopinathtamil

    Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. Details: Error parsing near '

    ASP.NET sysadmin debugging json help announcement

  • Ajax Autocomplete problem in asp.net
    G gopinathtamil

    The below code is i tryed for ajax auto complete on my site.. plz say if their is any bugs... default2.aspx ]]> function IAmSelected(source, eventArgs) { alert(" Key : " + eventArgs.get_text() + " Value : " + eventArgs.get_value()); }

    BehaviorID="AutoCompleteEx" TargetControlID="TextBox1" ServicePath="WebService.asmx" MinimumPrefixLength="3" EnableCaching="true" ServiceMethod="GetCompletionList">

    autocomplete.cs using System; using System.Collections.Generic; using System.Web.Services; using System.Data; using System.Data.SqlClient; using System.Web.Script.Services; /// /// Summary description for WebService /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. // [System.Web.Script.Services.ScriptService] public class WebService : System.Web.Services.WebService { public WebService () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod] public string[] GetCompletionList(string prefixText) { { string sql = "select Aname From Pincode Where Aname like @prefixText"; SqlDataAdapter da = new SqlDataAdapter(sql, "Server=sql346.mysite4now.com;uid=aitts_85478;password=aitts;database=aitts_85478"); da.SelectCommand.Parameters.Add("@prefixText", SqlDbType.VarChar, 50).Value = prefixText + "%"; DataTable dt = new DataTable(); da.Fill(dt); // List items = new List(); string[] items = new string[dt.Rows.Count]; int i = 0; foreach (DataRow dr in dt.Rows) { items.SetValue(dr["Aname"].ToString(), i); //items.Add(dr["Location_Name"].ToString()); i++; } // return items.ToA

    ASP.NET database csharp asp-net com sysadmin

  • Ajax autocomplete in asp.net
    G gopinathtamil

    **The below code is i tryed for ajax auto complete on my site..
    plz say if their is any bugs...
    default2.aspx

    **]]> function IAmSelected(source, eventArgs) { alert(" Key : " + eventArgs.get_text() + " Value : " + eventArgs.get_value()); }

    BehaviorID="AutoCompleteEx" TargetControlID="TextBox1" ServicePath="WebService.asmx" MinimumPrefixLength="3" EnableCaching="true" ServiceMethod="GetCompletionList">

    autocomplete.cs using System; using System.Collections.Generic; using System.Web.Services; using System.Data; using System.Data.SqlClient; using System.Web.Script.Services; /// /// Summary description for WebService /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. // [System.Web.Script.Services.ScriptService] public class WebService : System.Web.Services.WebService { public WebService () { //Uncomment the following line if using designed components //InitializeComponent(); } [WebMethod] public string[] GetCompletionList(string prefixText) { { string sql = "select Aname From Pincode Where Aname like @prefixText"; SqlDataAdapter da = new SqlDataAdapter(sql, "Server=sql346.mysite4now.com;uid=aitts_85478;password=aitts;database=aitts_85478"); da.SelectCommand.Parameters.Add("@prefixText", SqlDbType.VarChar, 50).Value = prefixText + "%"; DataTable

    C# database csharp asp-net com sysadmin

  • Query
    G gopinathtamil

    may i know what you mean custom page control

    ASP.NET help database

  • Modelpopup with dropdownlistbox
    G gopinathtamil

    Anybody plz help to solve the problem of dropdownlist with modelpopup.here i need to use modelpopup with dropdownlistbox. When i am trying to use selectedindex change the event of dropdownlistbox should fill the value of another field to the another textbox .

    C# help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups