pdf how to wirte code for down loading pdf

Category: ASP.NET Questions, Dot Net Questions, Latest Questions, Latest Topics    |    0 views    |    Add a Comment

 

i am giving code

  string fileurl = cmd.ExecuteScalar().ToString();
        int index = fileurl.LastIndexOf("/");
        string filename = fileurl;
      
        filename = filename.Remove(0, index + 1);
        
       Response.AppendHeader("content-disposition", "attachment; filename=" + filename);
       Response.WriteFile(fileurl);
            Response.ContentType = "Application/pdf";

        Response.End();

 

Share/Save/Bookmark

 

Storing login information in Session variable

Category: ASP.NET Questions, Dot Net Questions, Latest Questions, Latest Topics    |    0 views    |    Add a Comment

In my website, I have different Users, whose information I store in Session variable. I now realised it is not a smart thing to do. I want to know what is the best way to store the login id of users as global variable in ASP.Net

Share/Save/Bookmark

 

Functional Programming Unit Testing - Part 5

Category: ASP.NET Questions, Dot Net Questions, Latest Questions, Latest Topics    |    0 views    |    Add a Comment

In the last installment in this series, we talked about code coverage, what they are, and how you should use them.  I gave examples in both Haskell and F# to accomplish this goal.  One thing we've touched briefly in this conversation is around refactoring and cleaning up our code, and it’s about time we come back to that subject. But, before we continue, let's get caught up to where we are today: Part 1 - xUnit Frameworks - HUnit Part 2 - Property-Based Tests - QuickCheck Part 3 - QuickCheck + xUnit Tests Together Part 4 - Code Coverage   Refactoring I want to revisit our topic of refactoring that I talked about with my foray into testing with HUnit.  In this post and the next couple of posts, I want to explore three…(read more)

Share/Save/Bookmark

 

ALT.NET Seattle 2009 is happening.

Category: ASP.NET Questions, Dot Net Questions, Latest Questions, Latest Topics    |    0 views    |    Add a Comment

If you attended ALT.NET Seattle least year, you might be wondering whether or not it's happening this year. While at Kaizenconf , a bunch of us wondered the same thing. David Laribee , Chris Bilson , Kelly Leahy and I chatted about hosting another ALT.NET Seattle conference. David basically told us it was time to pass the reigns, if we wanted it to happen, we had to make it happen. Well after returning from the conference, we started brainstorming on the idea at our local ALT.NET monthly open-space and thanks to a bunch of efforts from our local guys…. I am excited to announce that we are actually going to host an ALT.NET Seattle conference this year. What: ALT.NET Seattle 2009. (The site is still being worked on. Thanks to Justin Bonozier…(read more)

Share/Save/Bookmark