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
A

Agweet

@Agweet
About
Posts
85
Topics
39
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • convert wsdl inline schema imports into xsd
    A Agweet

    Hi All, Kinda need some help with this. i have a WSDL with inline schema imports to different xsds, i would like to take the entire wsdl and convert it into a single xsd.

    how can i achieve this in C# code? thanks in advance!

    living life on the flip side

    C# question csharp database wcf xml

  • Download file from server to local folder
    A Agweet

    Hi Ravi, thanks for the reply, i tried downloading the file to the users application data but still get the error.

    living life on the flip side

    C# help sysadmin workspace

  • Download file from server to local folder
    A Agweet

    well, 1. i am not an idiot, and that was not truly called for, but anyways, 2. i did however try a new path after i posted reply, no change, still get the error. is it a permissions issue with the server accessing the local file? or is there something else i am missing? living life on the flip side

    C# help sysadmin workspace

  • Download file from server to local folder
    A Agweet

    Hi All, thanks for the replies, i haven't tried a different path yet. is there anyway i can get this download to work. all i really need to do is allow the user to download the image from the website which is hosted on the server to their local machine, preferably their desktop. living life on the flip side

    C# help sysadmin workspace

  • Download file from server to local folder
    A Agweet

    Hi All, i am trying to download a file from my website on my server, but i keep getting a error: Access to the path 'c:\ImageName.gif' is denied. this is my code i am using: using (WebClient wcDownload = new WebClient()) { try { webRequest = (HttpWebRequest)WebRequest.Create("http://www.XXXXXXXXXXX.XX.XX/Images/" + strImgName); webRequest.Credentials = CredentialCache.DefaultCredentials; webResponse = (HttpWebResponse)webRequest.GetResponse(); Int64 fileSize = webResponse.ContentLength; strResponse = wcDownload.OpenRead("http://www.XXXXXXXXXXX.XX.XX/Images/" + strImgName); string strFolder = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); strLocal = new FileStream(strFolder + "\\" + strImgName, FileMode.Create, FileAccess.Write, FileShare.ReadWrite); int bytesSize = 0; byte[] downBuffer = new byte[2048]; while ((bytesSize = strResponse.Read(downBuffer, 0, downBuffer.Length)) > 0) { strLocal.Write(downBuffer, 0, bytesSize); } string strAlert = "alert('" + strImgName + " downloaded to " + strFolder + "');"; ScriptManager.RegisterStartupScript(Page, Page.GetType(), "", strAlert, true); } finally { strResponse.Close(); strLocal.Close(); } } Any help is much appreciated. living life on the flip side

    C# help sysadmin workspace

  • Socket Connection
    A Agweet

    Hi All, Thanks for the answers, will take them into account and will post my results. living life on the flip side

    C# sysadmin xml help question

  • Socket Connection
    A Agweet

    Hi All, i am trying to create a socket connection to a server and send it a XML string and receive the results. For some reason it does not work, here is my code: XML String: XXXXXXXXXXXXXXXX and my socket connection code: try { TcpClient socketForServer; socketForServer = new TcpClient(xxx.xxx.xxx.xxx, 6000); socketForServer.SendTimeout = 300000; socketForServer.ReceiveTimeout = 300000; NetworkStream networkStream = socketForServer.GetStream(); System.IO.StreamReader streamReader = new System.IO.StreamReader(networkStream); System.IO.StreamWriter streamWriter = new System.IO.StreamWriter(networkStream); string outputString; // read the data from the host and display it streamWriter.WriteLine(XML String goes here); streamWriter.Flush(); outputString = streamReader.ReadToEnd(); networkStream.Close(); return outputString; } catch (Exception ex) { return ex.Message.ToString(); } it shows that i am connected to the server but i don't get any results back. can anyone please help me with this? thanks in advance! living life on the flip side

    C# sysadmin xml help question

  • Passing variable from code to Reporting Services Subscriptions
    A Agweet

    Hi Henry, umm...sorry but i dont follow, i used this Int32.TryParse(Session["Accounts"],Int32) but i get an error on the last Int32: 'int' is a 'type' but is used like a 'variable' can i maybe ask you t0o provide me with a sample on how to achieve this method? thnaks in advance

    living life on the flip side

    C# question help

  • Passing variable from code to Reporting Services Subscriptions
    A Agweet

    Hi, sorry for the late reply, firstly: this has alot todo with C# seeing as i want to pass the parametervalue from C# to Reporting Services and then secondly: i stated in my subject and i Quote "Passing variable from code to Reporting Services Subscriptions"!

    living life on the flip side

    C# question help

  • Passing variable from code to Reporting Services Subscriptions
    A Agweet

    Hi, i was wondering if someone could help me, i am trying to send a parameter to a report to create subscriptions. the parameter datatype on the report is set to an Integer Value...now the report parameter value in code can only accept string values...how can i pass my parameter from code as a integer?

    living life on the flip side

    C# question help

  • Convert
    A Agweet

    Hi All, i am busy trying to convert an int to a ReportWS.MonthlyDOWRecurrence, this is what i got MonthlyDOWRecurrence pattern = new MonthlyDOWRecurrence(); pattern.WhichWeekSpecified = true; pattern.WhichWeek = Convert.ToInt16(Combobox1.SelectedItem.Value); but i always get the following error: Cannot implicitly convert type 'int' to 'ReportWS.WeekNumberEnum'. An explicit conversion exists (are you missing a cast?) In VB.Net it works if you say: pattern.WhichWeek = CInt(Combobox1.SelectedItem.Value); can someone please tell me how to correct this?

    living life on the flip side

    C# csharp regex help tutorial

  • Window Close Button
    A Agweet

    so wat you saying is i should create a timer and set it as a count down timer...but then what will happen if a user click close, then how will it log them out?...i fail to understand what exactly you are saying!

    living life on the flip side

    ASP.NET help question

  • Window Close Button
    A Agweet

    Hi, can u please elaborate for me on how i could use a session to log a user out?

    living life on the flip side

    ASP.NET help question

  • Window Close Button
    A Agweet

    what i am doing is creating a application where a certain user can only login with a specific username once at a time...so if a user logs in with administrator then some 1 else cant use that username, now the reason i want to disable the close button is that if a user pushes the close button then they need to get logged out in the database...hence i want to force them to use my logout button so i can execute the function to log them out...if that makes sense...please ask me any more questions if there is something you dont understand.

    living life on the flip side

    ASP.NET help question

  • Window Close Button
    A Agweet

    So is there anything i can do...such as hide or disable the button?

    living life on the flip side

    ASP.NET help question

  • plz check y there is an erro in reading data
    A Agweet

    Hi, what u can do is replace

    SELECT * FROM user

    with

    SELECT * FROM [user]

    then it will get recognized as a table name...

    living life on the flip side

    ASP.NET help database design

  • Window Close Button
    A Agweet

    Hi all, i am stuck on a huge problem, i want to either hide, disable or be able to capture the event of the close button on a window. Is there a way i can do this? Thanks in advance!

    living life on the flip side

    ASP.NET help question

  • Byte Conversion
    A Agweet

    Hi Giorgi, thanks for everything, to all the people that replied :laugh:

    living life on the flip side

    C# help database

  • Byte Conversion
    A Agweet

    Hi Giorgi, sorry but i have never used filestreams or binary files before, how would i go about using the overload that writes byte[]?

    living life on the flip side

    C# help database

  • Byte Conversion
    A Agweet

    thanks once again for the reply, i know that i posted other code...im trying to retrieve a binary file stored in the database and write it to my local machine, with use of creating a folder and using a filestream. thanks for all the advise :)

    living life on the flip side

    C# help database
  • Login

  • Don't have an account? Register

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