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?
ViewState("sort") = ""
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...
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...
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?
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...
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?
I have a project that im maintaining. I have come across the following class
Partial Public Class Customer
Friend Class CustomerMeta
<Required(), StringLength(20)> Public FirstName As String
1. Is this the 'standard'...
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...
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...
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...
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...
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
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...
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...
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.
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...