Click here to Skip to main content
12,699,214 members (24,835 online)
   

ASP.NET

 
GeneralRe: related to itext sharp Pin
Member 97985416-Feb-13 20:21
memberMember 97985416-Feb-13 20:21 
GeneralRe: related to itext sharp Pin
Member 97985416-Feb-13 19:08
memberMember 97985416-Feb-13 19:08 
Answerrelated to itext sharp-iText use for commercial purpose Pin
Abhishek Pant6-Feb-13 20:07
memberAbhishek Pant6-Feb-13 20:07 
AnswerRe: related to itext sharp Pin
Sandeep Mewara2-Feb-13 1:24
mvpSandeep Mewara2-Feb-13 1:24 
QuestionDisplay image using handler.ashx what wrong my code Pin
Michael511931-Jan-13 21:43
memberMichael511931-Jan-13 21:43 
AnswerRe: Display image using handler.ashx what wrong my code Pin
Richard Deeming1-Feb-13 3:17
memberRichard Deeming1-Feb-13 3:17 
GeneralRe: Display image using handler.ashx what wrong my code Pin
Michael51191-Feb-13 5:16
memberMichael51191-Feb-13 5:16 
GeneralRe: Display image using handler.ashx what wrong my code Pin
Richard Deeming1-Feb-13 6:36
memberRichard Deeming1-Feb-13 6:36 
If you want to use a cookie instead of a query-string value, change your Image to:
<Image ID="Image1" runat="server" ImageUrl="Handler.ashx" Height="150px" Width="150px"/>

and change the start of the ProcessRequest method to:
var cookie = context.Request.Cookies["userid"];
if (null == cookie) throw new HttpException(404, "Cookie not found.");
string imageid = cookie.Value;

NB: You'll still need to use a parameterized command to avoid SQL injection. Cookie values can be altered by the user almost as easily as query-string values.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Display image using handler.ashx what wrong my code Pin
Michael51191-Feb-13 6:58
memberMichael51191-Feb-13 6:58 
GeneralRe: Display image using handler.ashx what wrong my code Pin
Michael51191-Feb-13 8:03
memberMichael51191-Feb-13 8:03 
GeneralRe: Display image using handler.ashx what wrong my code Pin
Richard Deeming1-Feb-13 9:12
memberRichard Deeming1-Feb-13 9:12 
GeneralRe: Display image using handler.ashx what wrong my code Pin
Michael51198-Feb-13 21:10
memberMichael51198-Feb-13 21:10 
GeneralRe: Display image using handler.ashx what wrong my code Pin
Richard Deeming11-Feb-13 2:29
memberRichard Deeming11-Feb-13 2:29 
QuestionImagesIn Gridview Pin
Member 941611331-Jan-13 21:13
memberMember 941611331-Jan-13 21:13 
QuestionImporting Excel into Gridview, doesn't import all rows Pin
Craist31-Jan-13 9:29
memberCraist31-Jan-13 9:29 
AnswerRe: Importing Excel into Gridview, doesn't import all rows Pin
Craist31-Jan-13 10:22
memberCraist31-Jan-13 10:22 
QuestionWeb Pages Authentication Pin
Jassim Rahma30-Jan-13 22:22
memberJassim Rahma30-Jan-13 22:22 
AnswerRe: Web Pages Authentication Pin
Rahul Rajat Singh30-Jan-13 23:14
mvpRahul Rajat Singh30-Jan-13 23:14 
QuestionAuthentication with database MVC4 Pin
AghaKhan30-Jan-13 21:44
memberAghaKhan30-Jan-13 21:44 
QuestionAutocomplete List hides behind Grid's horizontal scrollbar Pin
Ponka_developer30-Jan-13 13:01
memberPonka_developer30-Jan-13 13:01 
AnswerRe: Autocomplete List hides behind Grid's horizontal scrollbar Pin
jkirkerx30-Jan-13 13:50
memberjkirkerx30-Jan-13 13:50 
QuestionMVC 4 & jquery Pin
Collin Jasnoch29-Jan-13 5:39
memberCollin Jasnoch29-Jan-13 5:39 
QuestionHow to create and get the user input in alert message in asp.net webservice Pin
Rocky2327-Jan-13 23:22
memberRocky2327-Jan-13 23:22 
AnswerRe: How to create and get the user input in alert message in asp.net webservice Pin
Sandeep Mewara28-Jan-13 0:28
mvpSandeep Mewara28-Jan-13 0:28 
AnswerRe: How to create and get the user input in alert message in asp.net webservice Pin
Ali Al Omairi(Abu AlHassan)28-Jan-13 4:41
memberAli Al Omairi(Abu AlHassan)28-Jan-13 4:41 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170118.1 | Last Updated 20 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid