Search results for query: *

  1. J

    ASP Authentication and with my own database

    I am using ASP .Net forms membership in a site which allows users to log on and allows me to use the methods built in etc. With this in mind i have my own database which collects data from the user. I would like to use the logged on users details but in my own database. I could retrieve the...
  2. J

    Tableheader

    I have a function with an array, where i am trying to set the header text in a dynamically created table. Dim Headers() As String={"One", "Two", "Three"} For Header As Integer = 1 To 3 thc = New TableHeaderCell For Each hdr As String In Headers...
  3. J

    Textbox in gridview

    I have a Gridview which has its datasource set to a DataTable. This has been done due to the data required which is not held in a database. Two columns are generated in this fashion. What i need is a third column to have a textbox, so users can enter their comments etc. My code is Dim dt...
  4. J

    Exchange Server email gets stuck in drafts folder not being sent

    Is there any reason why you dont you use System.Net.Mail? System.Net.Mail Namespace ()
  5. J

    Export <templatefield to Excel

    I am using a HttpContext to write all gridview data to Excel. The problem i have is with any templatefields that are bound their data is not exported i.e. <asp:TemplateField HeaderText="Value"> <ItemTemplate> <asp:LinkButton ID="Completevalue" runat="server" Text='<%# Eval("SalesValue") %>'...
  6. J

    Missing item from combo

    I dont think thats what im after. An example is if they are selecting a pencil it is saved as a record which also includes other fields that are later filled by another department (cost, number of pencils given etc etc). If they decide to not include pencils in the dropdown because employees...
  7. J

    Missing item from combo

    ...some textboxes and a combo box. The combo list items are generated by calling a stored proc on a SQL server. The SQL is similar to Select * from table where Item=1 Item in the above code is a bit type in sql so it returns only the items that are available by setting the value to...
  8. J

    Close previous form

    A little bit of a strange issue that i thougt would have been straight forward. I have two forms. 1 a login form, 2 The default application. I would like the user to be verified by form 1 (Login Form) and if verified to open up form 2 (Default Application). I cant get this to work.... My code...
  9. J

    Autocomplete using AD as source

    I got over this by iterating all the items into a List(of string) and then adding it to the autocomplete source, for anyone that likes to know
  10. J

    Autocomplete using AD as source

    I have some code that calls to Active Directory and gets a list of users then adds them into a ComboBox. I would like to extend this feature by allowing the combo box to autocomplete when a user starts to type. Ive read a few articles but they seem to be based on data coming from SQL server...
  11. J

    Splash screen

    I'm trying to use a splash screen to check the logged on users rights and if all meets criteria it loads the default form. Currently in my load event of the spash form i had some code along the lines If CriteriaMet Then OpenForm Else msgbox("You do not have access to this app") End If However...
  12. J

    Valid internet connection

    Another point i thought to add. When the file is being downloaded and the connection drops, if the connection is back up in under 20 seconds, the downloading continues. Any longer than that then either i get one of the errors from before or i get timeout errors. So to me it seems the server is...
  13. J

    Valid internet connection

    Ill double check to see if its handling multiple files correctly. I tried using WebClient which started to work but i cant extend the timeout property as one doesnt exist. Im not sure if it supports redownloading from where the connection broke but i noticed the timeout error popped up and...
  14. J

    Valid internet connection

    The file definately exists. I checked the path in my webRequest and its the same. I have now reset the fileStream and Stream variables. The error i get when trying to download (whilst inside the loop) and after resetting the internet connection is "Unable to read data from the transport...
  15. J

    Valid internet connection

    When i download the file, its within the loop. I reset the connection and the loop returns the error above. At this point everytime it tries to execute the line Its falls into the Try Catch block and reports the above error. The internet connection is backup now and although i get the same...
  16. J

    Valid internet connection

    Thanks everyone. I managed to catch an exception on the line and get the error: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. The reason why this happened was i deliberately resetted the ineternet connection. Just so...
  17. J

    Valid internet connection

    Hello ProtekNickz. Im not so sure that method would work as whilst the file is being downloaded its writing to disk too and it would need to ping whilst in the loop in case the connection fails? I dont have the project to hand but from the top of my head this is the code running in the loop...
  18. J

    Valid internet connection

    ProtekNickz - Thanks will take a look.
  19. J

    Valid internet connection

    No exception is thrown inside the loop when the net connection is terminated. The loop runs with incorrect results.
  20. J

    Valid internet connection

    Whilst in the loop no exception is thrown?
Back
Top