I use F12 (right mouse click, GoToDefinition) to go to the Definition of a function. What key can be used to go back to the source please? Thanks
fmardani
Posts
-
shortcutkey -
trusted connectionHi, How is it possible to use trusted connection for an Intranet site? Intranet is using a webservice which is hosted on a web server on LAN. This is the connectionstring that I am currently using for the intranet website in the company LAN. Data Source=SQLMachineName1\MSQL_DEV;Initial Catalog=DBdatabaseName;Persist Security Info=True;User Id=WebUserAccountName;Password=password; I would like to use this connectionstring instead so that I can have more control over the logged in users. If I do use this connectionstring the error it gives is: Login failed for user (null). Not associated with a trusted sql server connection. Data Source=SQLMachineName1\MSQL_DEV;Initial Catalog=DBdatabaseName;Integrated Security=True
-
loginI have created a .net 2.0 windows application. Trusted connection to connect to sql server. Using sql server System_User, the application gets the loginname for the user in sql server. Now I have created webservices to be used in this project. It seems that I can not use my existng method (Trusted connection) to get the loginName of the user. So in sql server, created a webuser account. Everyone now is using the system using the webuser account. But, this way I do not know exactly which user is using the application because all I see is webuser hitting the database through the application. How do you suggest I log the users? I was thinking may be I should create roles on the network. i.e. NormalUsers, managers, chairmen, etc,... Then add the appropriate users to these roles on the network. I can then create a login screen. Windows application can then find the user identity. This user can then be traced from the users table in sql server and get it's ID. ID can be used to be inserted into the Audit table. What do you think please? THnaks
-
connecting to webserviceThere is a webserver "windows server 2003" on local network. It has VS2005 with SP1 and latest updates for win server 2003. This server also has IIS. The webservices that are created in .net 2.0 are sitting in this server (virtual directory). Using a client workstation (development machine), I can pipng the ip address of the webserver. The problem is when trying to add webreference to these webservices in web server. i.e. http://webserverName/CodeServicces/intest.asmx The client gives an error as follows: The proxy settings on this computer are not configured correctly for web discovery. Server Error in '/' Application. -------------------------------------------------------------------------------- The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /codesservices/inTest.asmx
-
visual styleI am using .net 2.0 The project has an mdi and several child forms... running win xp pro. I do not get the new visual style in .net 2.0 Any ideas please? This is the code present is Program.cs static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new CodexMainForm()); } }
-
connecting to webserviceFrom PC1 I am trying to connect to a webservice on my machine. This path works fine on my machine. http://gbws-00201234/codeservice/inger.asmx It lets me see all the functions. But when browsing from any other machine on the network, it gives an error: The page can not be displayed. page is unavailable... On my machine I have got firewall turned off. Other pcs can ping my machine and vice versa. Any ideas please? Thanks
-
.net 2.0 - developing webserviceHi, Using .Net 2.0 I have created webservices inside a project. These services are in a solution on my machine which I am developing. To reference these services, I use Add Web Reference, webservices in this solution (Because the services are saved in my local machine). At what stage should I place these webservices in the virtual directory of a webserver? Should these webservices be developed in a virtual directory on my local machine as opposed to in the local C drive as it is now? The intension is that others be able to see these webservices as they are being developed. For an example, from my machine to reference one of the webservices, this is the path I use: http://localhost:2144/inTest.asmx does this mean that other developers to reference this webservice should use: http://MyMachineName:2144/inTest.asmx ?? Thanks
-
datatableSeveral combo boxes on the UI winform are populated using a DataTable. ie. dtUsers dtUsers is a table in a dataset. Several combo boxes are populated using this datatable. Not sure why when an item in one of the combo boxes is selected, then all the other combo boxes get changed too. This is a sample of how the combo boxes are populated: dtUsers = dsUsers.Tables["Users"]; cbo1.DataSource = dtUsers; cbo1.DisplayMember = "Name"; cbo1.ValueMember = "UserID";
-
multiple selectUsing .net 2.0 Is it possible to have a stored procedure with several select statements so that a dataset can be populated with all of the select statements. So the dataset will end up with several tables (One table for one select statement). At present I use the dataadapter to fill the dataset. I do this for each stored procedure which holds a select statement each. But rather than repeating this method several times (One for each select), I would like to do all this in one stored procedure and populate a dataset with the results of these tables. Is this to do with MultipleResultSet (MRS)? Any suggestions please? Thanks
-
winformHi, The menu item freezes for a few seconds each time it is clicked on. It basically brings up another form i.e. form2. In form2 (load event) data is retrieved from a database. The menu in form1 freezes for a few seconds until form2 is displayed. Is it possible to avoid the menu to freeze? Thanks
-
.net 2.0 visual styleHi, I am using winforms .net 2.0 It seems that the visualStyle does not have any effect on the controls looks. for example a button looks as if you are using .net 1.0 Any thoughts please?
-
checkedlistBox .net 2.0Has anyone had any issues with checkedlistBox control when clicking on the items checkboxes? Every time, I click on the checkboxes, it appears as if the checkbox image partly dissapears. This does not happen if I click on the item itself. Thanks
-
listitemIs there a listItem class in winform 2.0 ? For example, in 1.x I can declare a variable as ListItem but do not find this in .net 2.0 Thanks
-
allocate percentage to each selected userHi, I would like to get help on designing a .net 2.0 winform. One or more Users should be able to be assigned to one Assignment. A percentage of the Assignment is allocated to the selected user(s). Each assignment can have one or more users assigned to it. For example: A manager opens the form. Selects an assignment (AssignmentNo 5) from a combo box. From a Listbox control he then selects one or more users (User1, User2,...) to be assigned to that selected Assignment (AssignmentNo 5). AND then somewhere and somehow each selected user has to be given a percentage of the assignment (i.e. User1 to be given 80%, User2 to be given 20%) of AssignmentNo 5. Later on the manager may want to add User3 to the same assignment and to give the user3 10% of AssignmnetNo 5. Please note that there is no need to limit the percentages to add up to 100%. I can select the users from the listbox but not sure how to design the interface to allocate percentages for each user. Thanks
-
retrieve selectedvalues from checkedlistbox ion .net 2.0This is how a checkedlistcontrol is populated: chklstUserRoles.DataSource = dsUsersAndRoles.Tables["Roles"].DefaultView; chklstUserRoles.DisplayMember = "Name"; chklstUserRoles.ValueMember = "RoleID"; I would like to loop through a checkedlistBox control and collect the IDs that is allocated to each checked item in the control. This does not quite work: for (int i = 0; i <= chklstUserRoles.CheckedItems.Count - 1; i++) { strRoleIds += chklstUserRoles.SelectedValue.ToString() + ","; //strRoleIds += chklstUserRoles.CheckedItems[i].ToString() + ","; } Thanks
-
reference to webserviceHi, I have added a web reference to the web service from the client project. The webservice is called ItemsWebService The webservice has two .asmx files i.e. orders.asmx and employees.asmx from the client I would like to call the ItemsWebService. So that the relevant forms on the client calls the appropriate .asmx file. i.e. the orders form in client calls ItemsWebService.Orders and the employees form on the client calls ItemsWebService.Employees At present when I add a web refernce to this webservice from the client I get the two names i.e. orders and employees. I think I should get just the itemsWebService. Am I right? Thanks
-
dll getting updated on clientsHi, There is a project with classes (businessLayer) referenced from the clients (WinForms) project. So the BusinessLayer dll is sitting on the client. What happens if the businessLayer changes in the future? How will the clients pick up the new dll? Please note that for business purposes this is how the solution is setup. Thanks
-
n-tier designHi, I am trying to build an n-tier architecture for my project. At present this is what I have: There is one Solutioin which contains the following: 1) The client (WinForms) project has a reference to the BusinessLayer project. 2) BusinessLayer project has a reference to the WebService 3) WebService has a reference to the DataLayer project. 4) DataLayer project calls the sql server. Would you say if I call the webservice direct from the client (WinForms) then this is a good idea or do you think the above 4 steps construct a good design? Thanks
-
dataset changesHi, Assuming you are using an n-tier architecture for a windows application. Let say you populate a dataGridView (in winform .net 2.0 control) from a dataSet. Then you make several changes (i.e. delete, update, insert, ...) to this dataSet in the control. How can you then update the database with these changes. Should you use dataAdapter.Update(dataSet) in the datalayer or should you pass the dataset changes to the dataLayer and loop through each record in the dataset in a transaction and commit according to the changes i.e. .modified, added, deleted... Thanks
-
.net 2.0 datagridview column header widthHi, How is it possible to increase the width of a column header in datagridview? At present all the column headers are the same width but would like to increase the width of one of the column headers. Thanks