- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
73 Posted Topics
Hi, I am trying to call the '`getMembershipDetsPrice()`' php function in the html drop down list 'duration'. I tried to follow the W3schools tutorial but when I changed the value the html printed again. When the dropdownlist changed the value the label needs to be filled by the returned value … | |
Hi I have the following code so far. Basically I have a drop down list were the user selects the type of membership he wants. When he clicks the button buy now from the database the membership cost and type are displayed in the pg. The problem is that I … | |
Hi, I encrypted two strings and returns example "euHK5s9h30Q=" then I am trying to convert the string given to GUID Guid tokenGuid = new Guid(encryptionString); and i is giving me ***Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).*** error how can i resolve it please? | |
Hi i have the following code public void allocateUserRole(CommonDB.user user, CommonDB.role role) { user.roles.Add(role); this.Entities.SaveChanges(); } It is giving me the following error because i am trying to insert the userRoles. Where tblUser haas an intermediary table with tblRole ** The relationship between the two objects cannot be defined because … ![]() | |
Hi i am using views in order to join 3 tables return (from p in this.Entities.priceTypes join userType in this.Entities.userTypes on p.userType equals userType.userTypeID // join product in this.Entities.products on p.product equals product.productID select new CommonDB.Views.PriceTypeView() { ProductName = p.product, Price=p.price, }); I managed to join two tables but i … | |
Hi, yesterday i installed vmware player and today i wanted to uninstall it but i can't as when i do so it tells me that it is running yet it is not opened. I am using Windows 7 32 bit could you please help me? thanks | |
I have been working all day on sql developer but now i am trying to work again and when i try to connect it is giving me the following error what shall i do? oracle.javatools.db.DBException: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection at oracle.jdevimpl.db.adapter.CADatabaseFactory.createConnectionImpl(CADatabaseFactory.java:66) at oracle.javatools.db.DatabaseFactory.createConnection(DatabaseFactory.java:534) … | |
Hi, I am using a tp-link router which is connected wireless with my laptop. Yesterday i was using it and it was working fine when suddenly it switched off without anyone touching it. Now the router isn't switching on and i changed the electric plug, resetted it etc.. The modem … | |
Hi i am trying to connect with the data base with the following code but it is giving me an error. [B]CODE:[/B] [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package dbaccess; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import … | |
Hi, I would like to know the code used for java to clear the screen as we do in c# using [COLOR="red"]Console.clear();[/COLOR] is it possible in Java aswell? If yes, what code should i use? | |
[COLOR="Red"]The item "obj\Debug\RestaurantBookingSystem.frmSchedule.resources" was specified more than once in the "Resources" parameters. Duplicate items are not supported be the "Resources" paramerets[/COLOR] what should i do pls? | |
Could you please tutor me on how to make this connection? (using visual studio 2008) @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\DBRestaurant.mdf;Integrated Security=True;Persist Security Info=False;User ID=annamarie;TrustServerCertificate=False;User Instance=True" | |
i have a register page which contains validation error checking (error providers) now i have a cancel button that leads to the home page. I need that this button is not stopped by the error messages. How can i remove the error messages on button click? | |
Hi, I am trying to figure out a problem but i cant my mind is totally blocked. I have to make conditions for this: When someone makes reservation it checks the availability of the table. the time of a reservation should last 3 hrs. Now i want a condition that … | |
Hi, I have the database of the application i am doing stored in the bin. Now i want to make a new connection how can i do so? | |
Hi, I am using windows form. Now in this window i have 2 textboxes which have their validation using the error provider. Now i want that when the user clicks on the close button it closes not rests until u enter something in the textboxes. How can i do so? | |
i want a regex pattern that accepts from 3 to 6 digits.. and only A,M or G at the end eg: 1234G | |
I have a combobox filled with usernames from teh database. And i have a gridview that display's the comments from database depending what username was choosed from combobox | |
Hi, I need a validation using regex just the pattern i have. The user has to enter digits and after the digits one letter. User can have up to six digits or less eg: 1234(G) 123456(K) 12(O) | |
Hi i am using ASP.NET and C# now i wnat a continuosly changing date and time in my website using a label. How can i do so? | |
This is my code and it is giving me an SMTP Exception. I tried to change my port to 25 but didn't work. Plus i am connected to the internet i can't figure out whats the problem [CODE]private void RecovaryEmail(string username) { ManagerUserAccount mgrUserAccount = new ManagerUserAccount(); UserAccount ua = … | |
Hi i have the following code to export a datagrid view and save it. Now i want that after the user saves the export file it opens. What to do? [CODE]private void ExportDGV(DataGridView dgv) { SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "Comma Separated Values (*.csv)|*.csv"; if (sfd.ShowDialog() == DialogResult.OK) … | |
Can i use one report viewer and use it to view more than one report? I have a combobox and depending on what user chooses a repored is viewed in the report viewer | |
i have buttons and i would liek to make shortcuts from the keyboard to press them. eg. btnAdd = CTRL+A | |
Hi, I have a value in a string with a semicolene and i would like to remove that semi colene and put a dot. [B]FROM[/B] string a = 10:12; [B]TO[/B] string a = 10.12; | |
how can i change the textcolor of the datetime picker from code? | |
I am using SQL Server 2005 and Visual Studio 2008. I would like to add a report using an existing dataset. I want to group by Reservation Month BUT the field is dateTime. How can i only display reservvations per month? | |
Hi i have a dataset already created (which may consist of many tables) now i would liek to fill the datagrid view from it. BY CODE how can i do so? | |
How can i make [COLOR="Green"]ColumnHeaderName to HH:mm [/COLOR] format? [CODE]string columnHeaderName = dgvSchedule.Columns[i].HeaderText.ToString(); DateTime timeColumn = Convert.ToDateTime(columnHeaderName);[/CODE] | |
Hi, i have a datagridview where i create new rows and give the name of the header myself eg: table 1 table 2 table 3 As you know the datagridview has the column headers and the rows.. The attachment with this thread has a red circle where i would like … | |
I have trhe following code which prints the datagridview.. now i want to print a [COLOR="Green"]label and a textbox [/COLOR]under the datagridview.. how can i do so? [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Collections; namespace ResturantBookingSystem { public partial … | |
Hi how do i merge all columns in one row in a datagridview and enter some text in it pls? | |
How do i use a master page? and display it when i run my website pls? | |
i have these two tables connected to each other [B]tblOrder[/B] ID - int (P.K.) DateTime - datetime TotalPrice - money StaffID - int OrderTypeID - int ReservationID - int (F.K.) [COLOR="Green"]can be null[/COLOR] Paid - bit [B]tblReservation[/B] ID - int (P.K.) DateTimeReservation - datetime NumberOfPeople - int DateTimeOfEvent - datetime … | |
i would like to show an image in a datagridview cell giving the path of the image.. how can i do so? | |
I haver this piece of code. which is giving me a nullreferenceexception.. [CODE]private void dgvMessages_SelectionChanged(object sender, EventArgs e) { if (dgvMessages.CurrentRow == null) { return; } try { int select = dgvMessages.CurrentRow.Index; //NULL REFERENCE EXCEPTION DateTime dateTimeMessage = Convert.ToDateTime(dgvMessages.Rows[select].Cells[1].Value.ToString()); string date = dateTimeMessage.ToLongDateString(); string time = dateTimeMessage.ToLongTimeString(); lblDate.Text = "Date: … | |
i have datagrid view which uses dataset.. i would like to filter my datagridview by idCardNumber (getting it from the textbox1) how can i do so? could u explain pls? | |
[COLOR="Red"]txtIDCardNo.Text = c.IDCardNumber.ToString();[/COLOR] why is it giving me a [COLOR="Red"]nullreferenceexception[/COLOR]? | |
Form 1 contains label1 and buttonOk (form1 NOT closed) on buttonOk click the opens Form 2 Form 2 contiant a numericupdown and button1 on button1 click value of numericupdown should be displayed in label1 i tried to do this using the constructor and did not work.. help pls | |
I am in d form1 code and i would like to initialize d current.. form1 frm = .... help pls how can i do so? | |
I would like to create a message box which has a textbox to enter a string in it how is this possible? | |
i have a datagridview which has a column name of tableNumber. i would like to fill this column from the code. this is my method which i call in formload [CODE]public void GetAndFillReservationTables() { ManagerTableReservation mgrTableReservation = new ManagerTableReservation(); for (int a = 0; a < dgvReservation.Rows.Count; a++) { int … | |
I am getting nullPointerException at this point and this is my code: [COLOR="Red"]int reservationID = Convert.ToInt32(dgvReservation.Rows[a].Cells[0].Value.ToString());[/COLOR] [CODE]public void GetResrervationTables() { ManagerTableReservation mgrTableReservation = new ManagerTableReservation(); for (int a = 0; a < dgvMenuItems.Rows.Count; a++) { int reservationID = Convert.ToInt32(dgvReservation.Rows[a].Cells[0].Value.ToString()); List<int> listOfReservationTables = mgrTableReservation.GetReservationTablesByReservationID(reservationID); string tables = ""; foreach (int t … | |
HI, i have the following code and i am getting the error [CODE]private Reservation getReservationDetails() { Customer c = GetCustomerDetails(); ManagerCustomers mgrCustomer = new ManagerCustomers(); int customerID = mgrCustomer.SearchCustomerByIDCardNumber(c.IDCardNumber); DateTime reservationAdded = DateTime.Now; int numberOfPeople = Convert.ToInt32(nudNumberOfPeople.Value.ToString()); string dateOfEvent = dtpReservationDate.Value.ToLongDateString(); string timeOfEvent = dtpEventTime.Value.ToLongTimeString(); DateTime dateTimeOfEvent = Convert.ToDateTime(dateOfEvent + … | |
Hi i have two values of type dateTime [CODE]DateTime dateOfEvent = Convert.ToDateTime(dtpReservationDate.Value.ToLongDateString()); DateTime timeOfEvent = Convert.ToDateTime(dtpEventTime.Value.ToLongTimeString());[/CODE] now i would like to assign these date and time to one variable of datatype dateTime. How can i do so? [COLOR="Red"]DateTime dateTimeOfEvent = ??????[/COLOR] | |
i am trying to get the picture string from the database and when it is a null it gives me this error. [COLOR="Red"]Unable to cast object of type 'System.DBNull' to type 'System.String [/COLOR] [B]This is my code[/B][CODE]public List<Item> GetAllItemFromMenuID(List<int> ListOfItemIDs) { conn.Open(); List<Item> listOfItems = new List<Item>(); try { foreach … |
The End.