Jump to content
Xtreme .Net Talk

Montie

Members
  • Posts

    15
  • Joined

  • Last visited

Personal Information

  • .NET Preferred Language
    VB

Montie's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Montie

    Ftp & Nlst

    Hello! I have a problem with an ftp class. When I say "give me the list of files on FTP remote folder", it gets me only a part of them. Code: SendCommand("NLST " & sMask) If (Not (m_iRetValue = 150 Or m_iRetValue = 125)) Then MessageString = m_sReply Throw New IOException(m_sReply.Substring(4)) End If m_sMes = "" Do While (True) m_aBuffer.Clear(m_aBuffer, 0, m_aBuffer.Length) bytes = cSocket.Receive(m_aBuffer, m_aBuffer.Length, 0) m_sMes += ASCII.GetString(m_aBuffer, 0, bytes) If (bytes < m_aBuffer.Length) Then Exit Do End If Loop If I just execute this, I get only a part of the list (some 50 files out of 120something). If I debug and go line per line, I get all files :confused: . Can anyone help? Thanks in advance
  2. I have a specific situation. We have many asp.net applications (projects) situated on one web server. Along with it, there is one "wrapper" application, handling the login and user rights. What it does is, when a user logs in into this application, it sets a cookie, so that all other applications on that server can read it and allow users to see them. (It also builds a tree with links to pages a user can see.) But, what if I want to allow some asp.net or php pages on other web servers (within the same intranet) to be handled by the same "wrapper" application? Can I do this? That means, a user logs in server1 wrapper application, that forms a tree that, among others, has a link to a web application on server2. The problem is that I can't get the server2 application to read the cookie values, because the cookie's name is different :). Any clues on how to solve this? Please pose some questions if I was unclear. Thanks in advance!
  3. I ran xsd.exe with name.xml as an argument and it made two xsd files (name.xsd and name_app1.xsd). Then, when I tried to run wsdl.exe with only the first file (name.xsd), I got an error that schema could not be validated. When I put both files as arguments, there was no error, but just a message "Warning: no classes were generated"... ? p.s. Is the output class that I should get with wsdl.exe the same as the one that I can get with running xsd.exe with /classes as an additional argument?
  4. Thanks, I will try that!
  5. I want to use a web service, for which I do have examples of both request and response XMLs (with SOAP envelopes), but it would be very convenient if I had a WDSL document describing the service. I checked for it, using disco.exe, but nothing was found and I suppose that it doesn't exists. The question is... Can I make WDSL document from the XMLs I do have? Is there a tool for it to do it automatically, or at least to help it?
  6. Thanks, will do that...
  7. It will work... Dim d1970 As DateTime = #1/1/1970# Dim dNow As New DateTime.Now 'calculate timestamp mTS = DateDiff(DateInterval.Second, dNow, d1970)
  8. Ali G would say "Aaaaiight"! ;) I say, it looks like a nice suggestion. Thanks! :) What do you think about converting timestamp to datetime? Should I hustle with the seconds, or is there a smoother way out? p.s. Yes, I know, I really didn't check the number, I just put it on the road ;)
  9. Timestamp is number of second since January 1st, 1970. For example - 134343235223444. I mentioned that I got it from XML, but it really doesn't matter where I get it from, it could be from a text file. Can I use anything else then XMLConvert? How do I convert VB DateTime type to timestamp?
  10. How can I convert timestamp data that I got from an XML into a "normal" datetime format, that I would prefer (AND vice versa)? Of course, using Visual Basic .NET... Thanks!
  11. Can anybody tell me how can I assign a background image to a IE Treeview webcontrol? I tried the CssClass property, but I must be doing something wrong, because it doesn't work...
  12. I would be even satisfied with a chance to reload the menu page in the left frame on a click button event in the upper banner frame... The treeview control I'm using in the menu page has a "target" property, so I just point it to the contents page. It would be nice if I could do something simiral in the banner page. I could use a basic login page and then move on to the main page with frames and I will do that if nothing else works, but I would like for users to access some menus just by accessing the page and let them login in and reload the menu (either by calling a function, or reloading the whole page, it doesn't matter) and add additional ones according to their user rights.
  13. We posted almost in the same moment. Sharing data between frames (and pages) wont be the problem, but calling a function from one frame to another is... as I wrote in my last post.
  14. I guess that passing (accessing) values is not actually a problem, using session variables. My main trouble is how to raise event or call a function from one frame to another! With clicking on submit button in one frame, how do I call a procedure in another?
  15. Hello! I'm trying to make an usual "contents" frame page, with banner page in the top part, navigation menu on the left and contents on the right (main) part. I'm generation menu from the database (I'm using treeview web control) and links with it that point to the pages being viewed in the main frame. I would like to let the user login in the "banner" top frame and then generate the menu in the "left" frame. How do I do that? In more details, when the user types in his username and password and then clicks on "log in" button, I would like to generate the menu (I have a function for it), or it's hole page, in the "left"-menu frame. So, my menu page (which is in the left frame) needs to react to the event in the upper frame. In order to generate the appropriate menu for the user, I have to know his username in the "left", menu frame, so I also need to have information passed. Can anyone help me with a tip or solution? I'm kinda new to asp .net, so that's why I'm wondering about with it. I tried with Transfer method, but it reads my menu page in the same frame as the banner frame (and I want it it the left frame).
×
×
  • Create New...