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
T

TurokHan

@TurokHan
About
Posts
5
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Server.Transfer("somepage.aspx") from within Session_End
    T TurokHan

    This is not possible. Session_End fires (standard) 30 minutes after the user made his last action on the website. It is not possible to transfer your user to a page when he leaves the site. (Not with asp.net anyway, maybe with javascript or something)

    ASP.NET sysadmin question

  • Session variable disapearing
    T TurokHan

    You anwsered you're own question. ASP.NET stops the application (and with that dumps all sessions) when files in the bin folder are changed. This is because ASP.NET expects an assembly (dll) to be changed and wants to recompile the application. Same happens when you change web.config or Global.asax. You should use your bin folder only for dll files.

    ASP.NET csharp asp-net database xml help

  • Active Directory
    T TurokHan

    I have not done any writing to AD myself, but i use these lines for reading: System.DirectoryServices.DirectorySearcher mySearcher = new System.DirectoryServices.DirectorySearcher(directoryEntry); mySearcher.Filter = ("(objectClass=user)"); mySearcher.Sort = new SortOption("sn", System.DirectoryServices.SortDirection.Ascending); Maybe you should user objectClass=user instead of just user. I'm not sure that is the sollution, but maybe i got you in the right direction

    ASP.NET windows-admin help question

  • Something goes wrong with converting bytes
    T TurokHan

    I'm thinking that it is the bytes --> string --> bytes convertion that currupts the info, so i was wondering if anyone knows a way in wich I can parse these headers out, just using byte[]. I think i would need a sort of byte[].Split(byte[] originalArray, byte[] splitOnFindingThis); Or is there a better way? I was also thinking, maybe i could split on \r\n, but that would also split up the file itself, so i don't think that is a good idea.

    ASP.NET database question

  • Something goes wrong with converting bytes
    T TurokHan

    I'm trying to create a progressbar for downloading. I can catch the raw postback info: -----------------------------7d4204b3f043c Content-Disposition: form-data; name="__VIEWSTATE" dDwtMTI3OTMzNDM4NDs7Pp/0hcX8BMxmXMGOJJC27tgAEod8 -----------------------------7d4204b3f043c Content-Disposition: form-data; name="file"; filename="P:\logo.gif" Content-Type: image/gif GIF89an (lot of code for gif image) -----------------------------7d4204b3f043c-- Now i need to filter out the headers to be able to save it to a gif image(on disk). I tryed this by converting everything to string and filtering out the info. This worked, but for some reason my imagedata gets corrupted. Original: 00000000h: 47 49 46 38 39 61 14 01 6E 00 F7 00 00 F7 F7 F7 ; GIF89a..n.÷..÷÷÷ 00000010h: FF FB FF E7 E7 E7 D6 D3 D6 EF EB EF CE CB CE AD ; ÿûÿçççÖÓÖïëïÎËέ 00000020h: 14 00 DE DB DE 18 45 AD 18 49 B5 10 34 84 10 3C ; ..ÞÛÞ.E­.Iµ.4„.< After filter: 00000000h: 47 49 46 38 39 61 14 01 6E 00 77 00 00 77 77 77 ; GIF89a..n.w..www 00000010h: 7F 7B 7F 67 67 67 56 53 56 6F 6B 6F 4E 4B 4E 2D ; {gggVSVokoNKN- 00000020h: 14 00 5E 5B 5E 18 45 2D 18 49 35 10 34 04 10 3C ; ..^[^.E-.I5.4..< I'm probably doings something wrong in converting, or because i'm cutting in the string. Anybody know why this happens?

    ASP.NET database question
  • Login

  • Don't have an account? Register

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