Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Var from Cookie into a SQL query in ASPX

Var from Cookie into a SQL query in ASPX

Scheduled Pinned Locked Moved Web Development
graphicsdatabasecsharpjsonhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    evlxtc
    wrote on last edited by
    #1

    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" %> <%@ 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 = 25</x-turndown>

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups