Search results for query: *

  1. J

    Sort multiple columns in gridview

    Never mind i noticed i forgot to set the view state again..... Although if anyone knows how to sort multiple view then please advise.
  2. J

    Sort multiple columns in gridview

    I am trying to sort a gridview which contains around 10 columns. I have the below code which works to an extent but i cant reverse the procedure (i.e. Ascend the row). In addition im not sure how i could sort multiple columns rather than just one? page_Load ViewState("sort") = "" End Sub...
  3. J

    How to display data

    True, but i wouldnt have asked this question if i knew the answer now would i? Point was that i thought in case there were third party controls or a way that anyone else has done something similar, however the approach i took was to have a repeater with a table and insert a label within the cell...
  4. J

    How to display data

    I have an app where user1 would log in send a message to the Support team. The Support personnel would then see it on their system and can send a reply back to them and so forth. What control would be appropriate to display the conversation? I understand i could use a SQL Stored proc to order...
  5. J

    Advice on getting detauls from employee

    I would like to get all of an employee details along with their previous employment history. What controls could I use to get the employees details at stage one and then prev employers at stage two? Especially when they have multiple employers. What could the database look like?
  6. J

    N Tier layer questions

    Thanks Ian. The way i read the code i think it would make two calls to get two details as opposed to making one call loading the object with the data and then using that object?
  7. J

    N Tier layer questions

    I created a website using the following structure: Class Project - Called DataAccessLayer > Added a Dataset > Add a tableAdapter and Datatable with a query called GetcustomersByID(ID) Class Project - Called BusinessLayer > Created some code to call into the DataAccessLayer and return the...
  8. J

    Class creation questions

    Where could i find this tool if one has been used? I don't think it has as most tools would have a comment stating a tool has been used but i could be wrong? Are there any links/tutorials where i could read up how this class has integrated with the data model? Or even a book? Thanks again
  9. J

    Class creation questions

    I have a project that im maintaining. I have come across the following class <MetadataType(GetType(Customer.CustomerMeta))> _ Partial Public Class Customer Friend Class CustomerMeta <Required(), StringLength(20)> Public FirstName As String End Class Questions are: 1. Is this the 'standard'...
  10. J

    Linq to XML data and service

    I am consuming a web service which i believe is raw XML (in case my terminology is incorrect then the service address is http://site/service). If i send a request then i send it as http://site/service/?name=MyNameIs. Once i do that i see an XML page in my browser. I would like to have the...
  11. J

    Create a popup

    Im looking to create a pop up so when a user clicks a button on a webpage it opens up in a new window. Ive seen a few articles but not sure which one may apply to this situation. In short i would like a user to click a button a small window (200px x 300px) shows up and the user can enter some...
  12. J

    Cannot be converted to '1-dimensional array

    Ok so if i have Dim myhouseList as Array then is that along the right line? No, not a list it has to be an array (Im sure i tried a List and it didnt work)
  13. J

    Cannot be converted to '1-dimensional array

    This is a little trickier than i thought...... Dim arrHouseList() as HouseList but none of the houselist properties appear?
  14. J

    Cannot be converted to '1-dimensional array

    Im using a service to get a list of houses based on the input from a customer. When i pass in GetListHouse i get the error "Value of type 'HouseList' cannot be converted to '1-dimensional array of HouseList'.". So i understand that i need to insert the item that im referring to i.e...
  15. J

    N Tier structure

    Using Linq to SQL I am wondering if the below procedure is correct? (DAL= Data Access Layer, DTO= Data Transfer Object, BLL= Business Logic Layer Add a Class Library project and call it DAL. Delete the existing class and add a Linq to SQL file. Drag/drop required tables etc. Add another Class...
  16. J

    Lambda Expressions

    Thanks for that. Its getting a little clearer :-). So correct me if im wrong but i assume this isnt limited to arrays/collections etc? If i had a function such as Private Function AddNumbers (Byval num1 as integer, byval num2 as integer) as Integer Return num1 + num2 End Function Therefore a...
  17. J

    Lambda Expressions

    Has anyone used Lambda expressions? If so im looking for a simple example to see how i could use them. I have read a few examples on the internet but fail to see what advantage it gives. If anyone can, i would prefer to have an example of what i could do without Lambda and one with Lambda to get...
  18. J

    Gridview Edit mode Dropdown

    I have a SQL statement that brings back a few rows which is then linked to my data access and in turn is linked in my Business Layer. The statement is similar to SELECT col1ID, col2, col3, col4ID, (SELECT value from Sometable where sometable.ID = Table.col4ID) As Country From Table WHERE colID...
  19. J

    Failed to convert parameter value from string to guid

    Thanks i tried that but it didnt work. It treated it as a passed in value therefore no parameter was accepted. I tried adding single quotes around value im passing in too (When you click Preview Data i added the single quotes in the box at the top) which didnt work either.
  20. J

    Failed to convert parameter value from string to guid

    In my database table i have a field that is of type UniqueIdentifier. I then have a tableadapter in my dataset (of course in a project) that contains a query as below select name, address1, address2 from myTable where ID=@ID ID is the field that is of type UniqueIdentifier. When i run the...
Back
Top