Click here to Skip to main content
15,914,307 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Is this a bug, or what? Pin
mysorian19-Jan-06 12:00
professionalmysorian19-Jan-06 12:00 
QuestionLast Modified At... Pin
sujith3117-Jan-06 17:42
sujith3117-Jan-06 17:42 
AnswerRe: Last Modified At... Pin
D. Ram Prabhu17-Jan-06 18:31
D. Ram Prabhu17-Jan-06 18:31 
QuestionNewbie asp question Pin
TAlvord17-Jan-06 11:51
TAlvord17-Jan-06 11:51 
AnswerRe: Newbie asp question Pin
Guffa17-Jan-06 12:35
Guffa17-Jan-06 12:35 
AnswerRe: Newbie asp question Pin
D. Ram Prabhu17-Jan-06 18:01
D. Ram Prabhu17-Jan-06 18:01 
Questionwhois database?? Pin
Small Rat17-Jan-06 8:48
Small Rat17-Jan-06 8:48 
QuestionVar from Cookie into a SQL query in ASPX Pin
evlxtc17-Jan-06 6:20
evlxtc17-Jan-06 6:20 
I just need to get my cookie value as a variable into my SQL query. That is all. PLEASE can someone help. I just do not seem to get it done. The Cookie in the rest of the code reads in fine and displays, but I cannot get it to work in the SQL statement. Using Dreamweaver. Here is the code. Just the WHERE part of the SQL query? Thanks guys and gals.

-------------------
anguage="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 <b>WHERE username = Request.Cookies["AuthenticateGKDUser"]" </b>%>"
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) {
HttpCookie UserCookie = Request.Cookies["AuthenticateGKDUser"];
if (null == UserCookie)
{ Response.Write("No cookie");}
else{
String UserCookieValue = UserCookie.Value.ToString();
Response.Write(UserCookieValue);
}
Pen newpen = new Pen(Color.Black);
Pen PartnerPen = new Pen(Color.Blue);
Pen ClientPen = new Pen(Color.Red);
Bitmap bitmap4 = new Bitmap(500,500);
Graphics g4 = Graphics.FromImage(bitmap4);
g4.Clear(Color.White);
g4.DrawLine(newpen,250,250,250,0);
g4.DrawLine(newpen,250,250,367,29);
g4.DrawLine(newpen,250,250,457,110);
g4.DrawLine(newpen,250,250,499,224);
g4.DrawLine(newpen,250,250,482,344);
g4.DrawLine(newpen,250,250,411,442);
g4.DrawLine(newpen,250,250,302,495);
g4.DrawLine(newpen,250,250,181,490);
g4.DrawLine(newpen,250,250,70,424);
g4.DrawLine(newpen,250,250,12,327);
g4.DrawLine(newpen,250,250,3,211);
g4.DrawLine(newpen,250,250,48,103);
g4.DrawLine(newpen,250,250,137,27);

switch(cWork)
{
case 10:
cWorkStrX = 250;
cWorkStrY = 0;
break;
case 9:
cWorkStrX = 250;
cWorkStrY = 25;
break;
case 8:
cWorkStrX = 250;
cWorkStrY = 50;
break;
case 7:
cWorkStrX = 250;
cWorkStrY = 75;
break;
case 6:
cWorkStrX = 250;
cWorkStrY = 100;
break;
case 5:
cWorkStrX = 250;
cWorkStrY = 125;
break;
case 4:
cWorkStrX = 250;
cWorkStrY = 150;
break;
case 3:
cWorkStrX = 250;
cWorkStrY = 175;
break;
case 2:
cWorkStrX = 250;
cWorkStrY = 200;
break;
case 1:
cWorkStrX = 250;
cWorkStrY = 225;
break;
case 0:
cWorkStrX = 250;
cWorkStrY = 250;
break;
}


g4.DrawLine(ClientPen,cWorkStrX,cWorkStrY,cPartnerStrX,cPartnerStrY);


ImageCanvas4.bitmap = bitmap4;
}










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

And still more info


 






this is me
QuestionVBScript: in dialog windows box woes... :S Pin
kevingpo17-Jan-06 5:24
kevingpo17-Jan-06 5:24 
QuestionJavascript error callee on popup window Pin
stephmiddleton17-Jan-06 2:41
stephmiddleton17-Jan-06 2:41 
QuestionProblem in sending email using ASP Pin
Anaha17-Jan-06 0:59
Anaha17-Jan-06 0:59 
QuestionOrganised Directory Structure Pin
Brendan Vogt17-Jan-06 0:51
Brendan Vogt17-Jan-06 0:51 
Questionmethods used for implementing SPAM filter Pin
chippu16-Jan-06 17:51
chippu16-Jan-06 17:51 
AnswerRe: methods used for implementing SPAM filter Pin
Curtis Schlak.16-Jan-06 20:16
Curtis Schlak.16-Jan-06 20:16 
QuestionOpen IE if system idle for 5 minutes Pin
maneeshbakshi16-Jan-06 11:52
maneeshbakshi16-Jan-06 11:52 
QuestionI want to stop Marque effect on mouse move? Pin
vikas amin16-Jan-06 2:39
vikas amin16-Jan-06 2:39 
QuestionTo access client's directories through web application... Pin
Manjeet Singh0216-Jan-06 1:58
Manjeet Singh0216-Jan-06 1:58 
AnswerRe: To access client's directories through web application... Pin
Guffa16-Jan-06 2:18
Guffa16-Jan-06 2:18 
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 

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.