Click here to Skip to main content
15,908,843 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow would you store a zip code in a database? Pin
MY120116-Jan-06 1:51
MY120116-Jan-06 1:51 
AnswerRe: How would you store a zip code in a database? Pin
Guffa16-Jan-06 2:25
Guffa16-Jan-06 2:25 
QuestionVisual Interdev problem. Pin
Prakash Nadar15-Jan-06 19:56
Prakash Nadar15-Jan-06 19:56 
AnswerRe: Visual Interdev problem. Pin
Prakash Nadar17-Jan-06 1:07
Prakash Nadar17-Jan-06 1:07 
QuestionSpell Checker Pin
progman13-Jan-06 14:44
progman13-Jan-06 14:44 
AnswerRe: Spell Checker Pin
Curtis Schlak.16-Jan-06 14:17
Curtis Schlak.16-Jan-06 14:17 
QuestionFLASH Pin
lukas.malik13-Jan-06 10:44
lukas.malik13-Jan-06 10:44 
QuestionServer Application Unavailable Pin
evlxtc13-Jan-06 7:15
evlxtc13-Jan-06 7:15 
Error msg that I get now running my ASPX page (With graphics stuff in created in Dreamweaver)

All was running fine. Had .NET installed. All working. Had to change the access permissions on my folders to allow IUSER_SERVER access so that my DB's will work. (WHICH they now do) BUT since I have changed my access permissions, my ASPX page just gives me this error msg. Any ideas? What would the access permissions have to do with this and how to fix it?

ERROR :
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

CODE: ASPX Page
<%@ Page Language="C#" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<mm:dataset
id="DataSet1"
runat="Server"
isstoredprocedure="false"
connectionstring="<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_STRING_loginaccess"] %>"
databasetype="<%# System.Configuration.ConfigurationSettings.AppSettings["MM_CONNECTION_DATABASETYPE_loginaccess"] %>"
commandtext="<%# "SELECT * FROM Users" %>"
debug="true"
="">
<mm:pagebind runat="server" postbackbind="true">
<%@ Register TagPrefix="Portal" TagName="ImageCanvas" Src="ImageCanvas.ascx" %>
<%@ import Namespace="System.Drawing" %>


void Page_Load(Object sender, EventArgs e) {
Pen newpen = new Pen(Color.Black);
Bitmap bitmap4 = new Bitmap(300,300);
Graphics g4 = Graphics.FromImage(bitmap4);
g4.Clear(Color.White);
g4.DrawLine(newpen,5,5,20,20);
g4.DrawLine(newpen,5,5,50,5);
ImageCanvas4.bitmap = bitmap4;
}










<portal:imagecanvas id="ImageCanvas4" runat="server" imagetype="Jpeg">

And still more info



CODE : ASCX PAGE
<%@ Control Language="C#" %>
<%@ import Namespace="System.Drawing" %>
<%@ import Namespace="System.Drawing.Imaging" %>


public Bitmap bitmap;
public ContentType ImageType = ContentType.Jpeg;

void Page_Load(Object sender, EventArgs e) {

if (Request.Params[ID] != null) {
Response.Clear();
Response.ContentType = "Image/" + ImageType.ToString();
bitmap.Save(Response.OutputStream,getFormat((int)ImageType));
Response.End();
}

String Url = Request.Url.ToString();
if (Url.IndexOf("?") == -1) {
DyImage.ImageUrl = Url + "?" + ID + "=Show";
}else{
DyImage.ImageUrl = Url + "&" + ID + "=Show";
}
}

ImageFormat getFormat(int i){
ImageFormat imgfmt = ImageFormat.Jpeg;
switch(i){
case 0:
imgfmt = ImageFormat.Gif;
break;
case 1:
imgfmt = ImageFormat.Jpeg;
break;
case 2:
imgfmt = ImageFormat.Png;
break;
}
return imgfmt;
}

public enum ContentType{
Gif=0,Jpeg=1,Png=2
}


<asp:image id="DyImage" runat="server">


this is me
QuestionOrder data in table by header Pin
Serpiente13-Jan-06 4:06
Serpiente13-Jan-06 4:06 
AnswerRe: Order data in table by header Pin
Serpiente13-Jan-06 5:33
Serpiente13-Jan-06 5:33 
QuestionError Occurred creating Report Object: Pin
Rajkamal_dfine12-Jan-06 23:20
Rajkamal_dfine12-Jan-06 23:20 
QuestionSuggestions on implementation approach Pin
LongRange.Shooter12-Jan-06 11:46
LongRange.Shooter12-Jan-06 11:46 
GeneralRe: Suggestions on implementation approach Pin
Guffa12-Jan-06 22:54
Guffa12-Jan-06 22:54 
QuestionLooking for Recommendations to Setup a Forum Pin
Warren Stevens12-Jan-06 11:32
Warren Stevens12-Jan-06 11:32 
AnswerRe: Looking for Recommendations to Setup a Forum Pin
alex.barylski12-Jan-06 16:55
alex.barylski12-Jan-06 16:55 
AnswerRe: Looking for Recommendations to Setup a Forum Pin
Arkett13-Jan-06 4:51
Arkett13-Jan-06 4:51 
Questionupdate Access DB Pin
leezardd12-Jan-06 9:54
leezardd12-Jan-06 9:54 
AnswerRe: update Access DB Pin
Hesham Amin15-Jan-06 9:14
Hesham Amin15-Jan-06 9:14 
GeneralRe: update Access DB Pin
leezardd18-Jan-06 8:31
leezardd18-Jan-06 8:31 
Questioncount the items in listbox Pin
Vipin.d12-Jan-06 0:46
Vipin.d12-Jan-06 0:46 
AnswerRe: count the items in listbox Pin
Guffa12-Jan-06 2:26
Guffa12-Jan-06 2:26 
QuestionFree weblog template Pin
Meysam Mahfouzi11-Jan-06 19:15
Meysam Mahfouzi11-Jan-06 19:15 
AnswerRe: Free weblog template Pin
mrabaya14-Jan-06 7:32
mrabaya14-Jan-06 7:32 
QuestionDom Tree View Change needed Pin
akarnik11-Jan-06 13:09
akarnik11-Jan-06 13:09 
QuestionHow to make the Grid scrollable Pin
satishrg11-Jan-06 4:24
satishrg11-Jan-06 4:24 

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.