Click here to Skip to main content
15,896,730 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionException Message Pin
Deepak the Cool2-Aug-07 1:34
Deepak the Cool2-Aug-07 1:34 
AnswerRe: Exception Message Pin
N a v a n e e t h2-Aug-07 2:34
N a v a n e e t h2-Aug-07 2:34 
AnswerRe: Exception Message Pin
Urs Enzler2-Aug-07 3:30
Urs Enzler2-Aug-07 3:30 
QuestionHow to disable Cookies for a single web page Pin
Kuricheti2-Aug-07 1:22
Kuricheti2-Aug-07 1:22 
AnswerRe: How to disable Cookies for a single web page Pin
Christian Graus2-Aug-07 1:28
protectorChristian Graus2-Aug-07 1:28 
AnswerRe: How to disable Cookies for a single web page Pin
Bino B3-Aug-07 7:16
Bino B3-Aug-07 7:16 
GeneralRe: How to disable Cookies for a single web page Pin
Kuricheti3-Aug-07 19:18
Kuricheti3-Aug-07 19:18 
QuestionCustom Control with Images Pin
Christopher Stratmann2-Aug-07 1:02
Christopher Stratmann2-Aug-07 1:02 
What is the best way to do this? I am making a custom control (not a user control) which shows an image to the user through a web page. How do I get the image from the custom control into my web page images directory?

Right now I have the custom control in a class library project. I have the image stored within the Resources.resx file in the class library. The custom control has a property where the programmer enters in the image directory location (a relative location) of the web site. The custom controls protected override void RenderContents(HtmlTextWriter writer) function goes into the given image directory location with the help of Page.MapPath() and checks to see if the image exists and if it doesn't exist then the image is copied from the Properties.Resources.MyImage to that location.

Problems that I am having with the above method:
1. It does seem very efficient to check to see if the image file exists every time the custom control is rendered.
2. At design time (within visual studio 2005), when I place the control on a web page and set the image directory location the image doesn't show up. Instead, I get some weird error message. But when I run the web page the image shows up fine.


Is there a better way of doing this?


Chris
Questionhow open connection wizard on asp.net page Pin
Piyush Vardhan Singh2-Aug-07 0:55
Piyush Vardhan Singh2-Aug-07 0:55 
AnswerRe: how open connection wizard on asp.net page Pin
Christian Graus2-Aug-07 1:29
protectorChristian Graus2-Aug-07 1:29 
GeneralRe: how open connection wizard on asp.net page Pin
Piyush Vardhan Singh2-Aug-07 1:41
Piyush Vardhan Singh2-Aug-07 1:41 
GeneralRe: how open connection wizard on asp.net page Pin
Christian Graus2-Aug-07 1:51
protectorChristian Graus2-Aug-07 1:51 
GeneralRe: how open connection wizard on asp.net page Pin
Piyush Vardhan Singh2-Aug-07 2:26
Piyush Vardhan Singh2-Aug-07 2:26 
QuestionWebservice and dll.config problems Pin
Anders Molin2-Aug-07 0:40
professionalAnders Molin2-Aug-07 0:40 
QuestionUser Control Problem Pin
Captain Trips2-Aug-07 0:07
Captain Trips2-Aug-07 0:07 
AnswerRe: User Control Problem Pin
just3ala22-Aug-07 0:59
just3ala22-Aug-07 0:59 
AnswerRe: User Control Problem Pin
jc.net2-Aug-07 1:39
jc.net2-Aug-07 1:39 
AnswerRe: User Control Problem Pin
Captain Trips2-Aug-07 2:54
Captain Trips2-Aug-07 2:54 
QuestionRunning Window Media Player Pin
.NET- India 2-Aug-07 0:03
.NET- India 2-Aug-07 0:03 
AnswerRe: Running Window Media Player Pin
Christian Graus2-Aug-07 0:07
protectorChristian Graus2-Aug-07 0:07 
QuestionDataBind and check a CheckBox Pin
Rohde2-Aug-07 0:01
Rohde2-Aug-07 0:01 
QuestionDatagrid in asp.net 2005 Pin
zareee1-Aug-07 23:51
zareee1-Aug-07 23:51 
AnswerRe: Datagrid in asp.net 2005 Pin
just3ala22-Aug-07 1:04
just3ala22-Aug-07 1:04 
QuestionCookies Pin
#realJSOP1-Aug-07 23:40
professional#realJSOP1-Aug-07 23:40 
AnswerRe: Cookies Pin
Christian Graus2-Aug-07 0:04
protectorChristian Graus2-Aug-07 0:04 

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.