Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for GrantB

Hi I'm trying to end a user's session when they close the browser, because they never logout properly. I need to change a value in the db after they close the browser only. <script type="text/javascript"> window.onbeforeunload = check; function check() { return "Are you sure you want to exit this …

Member Avatar for wazz
0
112
Member Avatar for GrantB

Im trying to create a random 6 digit numeric code that will not repeat. I have tried using guid but that was unsuccessful. random rnd = new random(); int num = rnd.next(000001,999999); I would prefer not to use Random , or to have to iterate through all the previous codes …

Member Avatar for Ketsuekiame
0
2K
Member Avatar for GrantB

Hi I have been told that it is possible to call an ArrayList Method in a WebService from a console App. [Method] " public ArrayList AuthenticateUsers(string username, string password, string IncomingIP, decimal Pin) " [call] Service1 serv = new Service1(); ArrayList ar = serv.AuthenticateUsers("test", "12345","192.168.0.5", 29); Error Cannot implicitly convert …

Member Avatar for muhammadehsaan
0
158
Member Avatar for GrantB

I have a Rad gridview that databinds and popluates date according to a seacrh. There is a linkbutton that i want to be able to change on column from saying false to true or vice-versa. Please help protected void rgUsers_ItemCreated(object sender, GridItemEventArgs e) { if (e.Item is GridDataItem) { GridDataItem …

Member Avatar for GrantB
0
312
Member Avatar for GrantB

My select new statement get values from two different tables but it does not data bind in the grid view please help. var search = (from u in db.Users ` join s in db.Sites on u.SiteID equals s.SiteID` where u.FirstName.Contains(tbSearch.Text.Trim()) select new { u.FirstName, u.LastName, u.Username, u.Password, s.SiteName, u.Active }); …

Member Avatar for GrantB
0
187
Member Avatar for GrantB

Hi Im still pretty new to c# and I have been struggling with a few things in assesment interviews. When I studied I wasnt exposed to csv files and retrieving specific data from those files... Is there anywhere someone could point to me to show me in the right direction …

Member Avatar for GrantB
0
150