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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
K

khurram rathor

@khurram rathor
About
Posts
13
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem with downloading arabic named file..
    K khurram rathor

    Hello, Thanks for your reply. I studied RFC 1806. But, i didn't solve the problem yet. What i understand is, you r right that filename parameter value is limited to US-ASCII. But i didn't find any range of valid values for "Content-Disposition". Can u send me the range of valid values and how i can use them in "Content-Disposition". Thanks khurram rathor

    ASP.NET help question

  • Problem with downloading arabic named file..
    K khurram rathor

    Hello, I'm working on some application. I'm getting file bytes by calling WebService Method and saving it on the server and then send it to client for download. My Code is Downloading the file perfectly on client PC, but the problem is with arabic named file, that its name shows Garbage Characters in SaveFile Dialog Box before downloading. I'm sending the file to the client PC like this.. Response.Clear() Response.ContentType = "APPLICATION/OCTET-STREAM" Response.AddHeader("Content-Disposition", "attachment; filename=" & ArabicFileName.Trim() & "." & FileType.Trim() & "; size = " & Bytes.Length.ToString()) Response.CharSet = "windows-1256" Response.AddHeader("Content-Length", Bytes.Length) Response.BinaryWrite(Bytes) Response.Flush() After that, Explorer displays Save Dialog box. But it corrupts Arabic FileName and if i will save this file, this will be downloaded perfectly but with garbage charaters in filename. Can anyone tell me that what is the problem with arabic named files, though English named files are fine. My window also support Arabic. Thanks. khurram rathor khurram rathor

    ASP.NET sysadmin help question

  • Problem with downloading arabic named file..
    K khurram rathor

    Hello, I'm working on some application. One of the form is getting file bytes by calling WebService Method. My Code is Downloading the file perfectly, but the problem is with arabic named file, that its name shows Garbage Characters in SaveFile Dialogue Box before downloading. I'm doing like this.. Response.Clear() Response.ContentType = "APPLICATION/OCTET-STREAM" Response.AddHeader("Content-Disposition", "attachment; filename=" & ArabicFileName.Trim() & "." & FileType.Trim() & "; size = " & Bytes.Length.ToString()) Response.CharSet = "1256" Response.AddHeader("Content-Length", Bytes.Length) Response.BinaryWrite(Bytes) Response.Flush() After that, Explorer displays Save Dialogue. But it corrupts Arabic FileName. Can anyone tell me that what is the problem with arabic named files, though English named files are fine. My window also support Arabic. Thanks. khurram rathor

    ASP.NET help question

  • redirect
    K khurram rathor

    The code i wrote is for Server side in codebehind. Just write this code in button event function. It will redirect the page in that frame. "Response" is a class u can use its "Write()" function to write javascript or vbscript code that will run on server side. Try that code. khurram rathor

    ASP.NET csharp asp-net sysadmin

  • Problem with downloading arabic named file..
    K khurram rathor

    Hello Everyone, I'm working on some application. One of the form is getting file bytes by calling WebService Method. My Code is Downloading the file perfectly, but the problem is with arabic named file, that its name shows Garbage Characters in SaveFile Dialogue Box before downloading. I'm doing like this.. Dim obj As tecra.BrowserInfo = CType(Session("objService"), tecra.BrowserInfo) Dim chk As Boolean Dim cookieJar As System.Net.CookieContainer If (Session("cookieJar") Is Nothing) Then cookieJar = New System.Net.CookieContainer Session("cookieJar") = cookieJar End If obj.CookieContainer = Session("cookieJar") chk = obj.DownloadDoc(Session("ID"), CType(Doc_Id, Long), bt, FileName, FileType) If chk = True Then Dim strPath As String = "C:\" & FileName.Trim() & "." & FileType.Trim() Dim Image_Bytes() As Byte = bt Dim File_Image = New System.IO.FileStream(strPath, IO.FileMode.Create, IO.FileAccess.ReadWrite) File_Image.Write(Image_Bytes, 0, Image_Bytes.Length) File_Image.Close() Dim ms As New System.IO.MemoryStream(bt) Response.Clear() Response.ContentType = "APPLICATION/OCTET-STREAM" Response.AddHeader("Content-Disposition", "attachment; filename=" & FileName.Trim() & "." & FileType.Trim() & "; size = " & bt.Length.ToString()) Response.CharSet = "1256" Response.AddHeader("Content-Length", bt.Length) Response.Flush() Dim chunkSize As Integer = 10994042 Dim i As Integer For i = 0 To bt.Length Step chunkSize If (Not Response.IsClientConnected) Then Exit For End If Dim size As Integer = chunkSize If (i + chunkSize >= bt.Length) Then size = (bt.Length - i) End If Dim chunk(size - 1) As Byte ms.Read(chunk, 0, size) Response.BinaryWrite(chunk) Response.Flush() Next ms.Close() bt.Clear(bt, 0, bt.Length) Response.Close() End If Can anyone tell me that what is the problem with arabic named files, though English named files are fine. My window also support Arabic. Thanks. khurram rathor

    ASP.NET csharp help question

  • redirect
    K khurram rathor

    Hi Aubyone, Yes, u can do it like this. Response.Write("") Response.Write("parent.<b>FRAMENAME</b>.location = ""<b>URL</b>""") Response.Write("") Put your FRAMENAME & URL. It redirect the page in specified Frame. see u. khurram rathor

    ASP.NET csharp asp-net sysadmin

  • How can i clear the history?
    K khurram rathor

    Hello, I want to clear history of my application so that explorer back and forward buttons will not effect the navigation. If we can disable back and forward explorer buttons. It will be better. Remember, i don't want to do it with window.open() function. Because this function can disable the whole toolbar not only back and forward buttons. I will appreciate your help. Thankx. khurram rathor

    ASP.NET question help

  • Disable Navigation Buttons in explorer toolbar...
    K khurram rathor

    Hello, I'm working on some Asp.Net web application and i want to have my own control in navigation between the pages. I don't want the user to use navigation buttons in explorer toolbar. Infact, i want to disable these buttons throughout my web application. Remember i'm already using this code.. Response.CacheControl = "no-cache" Response.AddHeader("Pragma", "no-cache") Response.Expires = 0 But in that case, the user can click the navigation back and forword buttons in explorer toolbar, which will display that the page has expired. I don't want the user to see this message. I will appreciate, if someone will help me out of this matter. "How to disable Navigation Back & Farword Buttons in explorer toolbar?" Thanks. khurram rathor

    ASP.NET csharp asp-net help tutorial question

  • Operation has timed out in ASP.Net
    K khurram rathor

    Yes, it did work, its working successfully.:rose: I really appreciate your help, you r great Bill. Thanks a lot. Hope for further cooperation.. in future. khurram rathor

    ASP.NET csharp asp-net wcf windows-admin question

  • focus
    K khurram rathor

    Hello, You can do it through JavaScript. Use "onload" event for a body tag and do focus in that event. Like.. < script language="javascript"> function StartFocuse() { document.Logon.txtName.focus(); } < /script> and declare event in the body Tag like.. < body MS_POSITIONING="GridLayout" onload="StartFocuse()"> < form id="Logon" method="post" runat="server"> ...... ...... < /form> < /body> khurram rathor

    ASP.NET com question

  • Operation has timed out in ASP.Net
    K khurram rathor

    Hello, I'm developing a web appliation in ASP.Net. My web appliation communicates with Web Services for several operations. Everything is working fine except one operation. Web application uploads a file and send it to web service in the form of Bytes by calling its function. Web Service do some operations on that file, which may take several minutes to let Web Application to wait. But after 90 seconds, my Web Application throughs an exception that the "Operation has timed out". I tried to change the timeout parameters in web.config file like... < httpRuntime executionTimeout="1000" maxRequestLength="409600" useFullyQualifiedRedirectUrl="false" /> also doing this < sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="1000" stateNetworkTimeout = "1000" /> But these things are not controlling that TimeOut Exception. I also tried to change the TimeOut Parameters from IIS but non prevail. Are there any other parameters in web.config file for controlling this Exception? or I will have to do something else. khurram rathor

    ASP.NET csharp asp-net wcf windows-admin question

  • How to print any type of file to printer
    K khurram rathor

    Hello everyone, I'm trying to make an application that will select any file like .doc, .txt, .excel, .pdf and etc and the file will be printed to printer. If anyone can give me the idea about that. I will appreciate. :-O khurram rathor

    C# tutorial

  • How to access DataSets in javascript
    K khurram rathor

    Hi everyone, I'm trying to access data in my datatable of dataset in javascript. So i'm not finding any way to access an instance of dataset i created in my code behind. If anyone can tell me the syntax. It will be very helpfull to me. Thanks. khurram rathor

    ASP.NET javascript tutorial
  • Login

  • Don't have an account? Register

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