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
Z

zeeShan anSari

@zeeShan anSari
About
Posts
176
Topics
92
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Gridview in Repeater
    Z zeeShan anSari

    Hi All, let's suppose

    DataSet ds = new DataSet();
    ds.Tables.Add(datatable1)
    ds.Tables.Add(datatable2);

    Repeater1.DataSource = ds;

    then what would be the DataSource="?????" in gridview. Thanks,

    ASP.NET question

  • Multiple Inhertance solution
    Z zeeShan anSari

    OK i find it ...just make the public.

    class A
    {
    public int iA1{ get; set; }
    public int iA2{ get; set; }
    }

    Is it better way for multiple inheritance? Thanks,

    C#

  • Multiple Inhertance solution
    Z zeeShan anSari

    Hi All, let's suppose

    class A
    {
    int iA1{ get; set; }
    int iA2{ get; set; }
    }
    class B
    {
    int iB1{ get; set; }
    int iB2{ get; set; }
    }
    class C
    {
    int iC1{ get; set; }
    int iC2{ get; set; }
    }

    Now i want make type ABC1 for List<<ABC1> and this ABC1 contain iA1,iB1,iC1 and iC2. But bellow code is not working...plz suggest me, i just want List.

    public interface IABC1
    {
    A a { get; set; }
    B b { get; set; }
    C c { get; set; }
    }
    public class ABC1:IABC1
    {
    #region IABC1 Members
    ....
    ...
    }

    Thanks,

    C#

  • get type of anonymous list
    Z zeeShan anSari

    Hi all, let suppose var res = result.Select(s=> new {id=s.id,name=s.name}).ToList(); now i want pass this res in another method like func(res). Please tell me that how can i get the type of this res or how i can get data from res.

    C# question

  • Create download link for csv file on client-side in javascript.
    Z zeeShan anSari

    yes all data save in string strCSV

    ASP.NET javascript html

  • Create download link for csv file on client-side in javascript.
    Z zeeShan anSari

    Hi all! i have a html table with data.i convert the data into the csv format and save in an string strCSV on client side.Now i want user can download this strCSV value as .csv file on client side. thanks

    ASP.NET javascript html

  • Create mail acount in exchange server
    Z zeeShan anSari

    hi all, i just want create an email account through MAPI or whatever in exchange server . how it is possible?

    C# sysadmin question

  • GZipStream problem
    Z zeeShan anSari

    Thanks.........u r right :cool:

    C# help question

  • GZipStream problem
    Z zeeShan anSari

    hi all, for compress the pdf file i use below code:

    byte[] bufferWrite;

            FileStream fsSource;
    
            FileStream fsDest;
            GZipStream gzCompressed;
            fsSource = new FileStream(@"C:\\Invoice.pdf", FileMode.Open, FileAccess.Read, FileShare.Read);
    
            bufferWrite = new byte\[fsSource.Length\];
    
            fsSource.Read(bufferWrite, 0, bufferWrite.Length);
    
            fsDest = new FileStream(@"C:\\Invoice.zip", FileMode.OpenOrCreate, FileAccess.Write);
    
            gzCompressed = new GZipStream(fsDest, CompressionMode.Compress, true);
    
            gzCompressed.Write(bufferWrite, 0, bufferWrite.Length);
    
            fsSource.Close();
            gzCompressed.Close();
            fsDest.Close();
    

    pdf file compress successfully but without extension(.pdf) .......where is problem?

    C# help question

  • play video clips sequentially
    Z zeeShan anSari

    hi, i use ASPNetFlashVideo ,i have many clips i want playing these clips one by one on same ASPNetFlashVideo player. thanks

    ASP.NET

  • Block downloading .flv movies
    Z zeeShan anSari

    hi, i have an asp.net page where is a flash media player (ASPNetFlashVideo) now i want user can only watch the video and can not downloading this video specially in Maxthon explorer .Thanks

    ASP.NET csharp asp-net adobe

  • Redirect URL problem
    Z zeeShan anSari

    it does not working. and bellow message show on page Server Error in '/exxnew' Application. -------------------------------------------------------------------------------- The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /exxnew/~/PresentationLayer/Forms/Main.aspx now i use

    Response.Redirect("/PresentationLayer/Forms/Main.aspx",false);

    it's work well on local host but on live host its append /~

    ASP.NET com security help tutorial question

  • Redirect URL problem
    Z zeeShan anSari

    hi all , this my codebehind on login button click

    FormsAuthentication.Initialize(); FormsAuthenticationTicket ObjTicket = new FormsAuthenticationTicket(1, txtLoginId.Text, DateTime.Now, DateTime.Now.AddMinutes(60), false, txtLoginId.Text + "," + txtPassword.Text, FormsAuthentication.FormsCookiePath); string encTicket = FormsAuthentication.Encrypt(ObjTicket); string sLoginId = txtLoginId.Text; sLoginId = sLoginId.Replace(" ", ""); Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encTicket)); Response.Redirect(FormsAuthentication.GetRedirectUrl(txtLoginId.Text, false)+"?id="+txtLoginId.Text);

    and this is web config code

    <authentication mode="Forms"> <forms defaultUrl="~/PresentationLayer/Forms/Main.aspx" loginUrl="~/Default.aspx" > </forms> </authentication>

    above code well working on local host .......but on live host "~/" append with url for example i want www.abc.com/abc/PresentationLayer/Forms/Main.aspx but i get www.abc.com/abc/~/PresentationLayer/Forms/Main.aspx can anybody tell me that where is problem

    ASP.NET com security help tutorial question

  • Redirect URL problem
    Z zeeShan anSari

    hi all :) , this my codebehind on login button click

     FormsAuthentication.Initialize();
                FormsAuthenticationTicket ObjTicket = new FormsAuthenticationTicket(1, txtLoginId.Text, DateTime.Now, DateTime.Now.AddMinutes(60), false, txtLoginId.Text + "," + txtPassword.Text, FormsAuthentication.FormsCookiePath);
                string encTicket = FormsAuthentication.Encrypt(ObjTicket);
                string sLoginId = txtLoginId.Text;
                sLoginId = sLoginId.Replace(" ", "");
                                              
                Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encTicket));
                           Response.Redirect(FormsAuthentication.GetRedirectUrl(txtLoginId.Text, false)+"?id="+txtLoginId.Text);
    

    and this is web config code

    <authentication mode="Forms">
    <forms defaultUrl="~/PresentationLayer/Forms/Main.aspx" loginUrl="~/Default.aspx" >
    </forms>

    	</authentication>
    

    above code well working on local host .......but on live host "~/" append with url for example i want www.abc.com/abc/PresentationLayer/Forms/Main.aspx but i get www.abc.com/abc/~/PresentationLayer/Forms/Main.aspx can anybody tell me that where is problem

    C# com security help tutorial question

  • Add Hashtable into the arraylist in javascript
    Z zeeShan anSari

    hi all, i have html table with some data.......now i want collect the data from this html table and then send the all data to the server-side through page method. My logic is that in for-loop collect all data from html table and put in hashtable and then add this hashtable in an arraylist and then send this arraylist to server side. Can anybody solve my problem? :)

    ASP.NET javascript html sysadmin help question

  • Convert html to pdf in javascript or c#
    Z zeeShan anSari

    thanks........actually i have html page where is html table with data and there is an email send button.......i want when user click on send button then this html table send into the .pdf file to email

    ASP.NET csharp javascript html asp-net

  • Convert html to pdf in javascript or c#
    Z zeeShan anSari

    hi all, can any body tell me that hoe to i convert the html into the pdf file in asp.net or javascript

    ASP.NET csharp javascript html asp-net

  • PageMethods return value !!!!!!!
    Z zeeShan anSari

    hi all :) , Does pagemethods returns records has limits? if yes then how to increase the returns values limit? thanks

    ASP.NET tutorial question

  • Pass dataview to javascript [modified]
    Z zeeShan anSari

    hi all, this is code behind:

    [System.Web.Services.WebMethod, System.Web.Script.Services.ScriptMethod()]

    public static DataView getAccounts()
    {
        try
        {
            string strCon = ConfigurationManager.ConnectionStrings\["TFConnectionString"\].ToString();
            SqlDataSource db = new SqlDataSource();
            db.ConnectionString = strCon;
            db.SelectCommandType = SqlDataSourceCommandType.StoredProcedure;
            db.SelectCommand = "getAccounts";
            db.SelectParameters.Add("loginId", "K");
            DataSourceSelectArguments args = new DataSourceSelectArguments();
            DataView lst = (DataView)db.Select(DataSourceSelectArguments.Empty);
    
         
            return lst;
        }
        catch (Exception ex)
        {
            return null;
        }
    }
    

    and this is javascript:

    function f1()
    {

    PageMethods.getAccounts(callSuccess, callFailuer);

    }
    function callSuccess(result)
    {

    alert(result[0]["account_nick"]);

    }
    function callFailuer()
    {
    alert('Fail');
    }

    in codebehind lst [DataView] shows records but on javascript its call failuer methode why? i just want pass the data to javascript as a list. thanks

    modified on Thursday, August 13, 2009 12:33 PM

    ASP.NET javascript database tools question

  • send xml file to client site
    Z zeeShan anSari

    hi all, how to i send xml file to client side and than how to use this xml in javascript? thanks

    ASP.NET javascript xml tutorial question
  • Login

  • Don't have an account? Register

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