Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
3
Posts with Downvotes
2
Downvoting Members
3
1 Commented Post
0 Endorsements
~17.3K People Reached
Favorite Tags

73 Posted Topics

Member Avatar for xanawa

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 …

0
162
Member Avatar for xanawa

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 …

0
213
Member Avatar for xanawa

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?

Member Avatar for Ketsuekiame
0
265
Member Avatar for xanawa

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 …

Member Avatar for LastMitch
0
95
Member Avatar for xanawa

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 …

Member Avatar for mwatson81
0
310
Member Avatar for xanawa
Member Avatar for sheikhali449
-1
121
Member Avatar for xanawa

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

Member Avatar for Ritesh_4
0
167
Member Avatar for xanawa

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) …

0
103
Member Avatar for xanawa

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 …

Member Avatar for getnit
0
124
Member Avatar for xanawa

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 …

Member Avatar for stephen84s
0
232
Member Avatar for xanawa

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?

Member Avatar for Taywin
0
146
Member Avatar for xanawa

[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?

Member Avatar for sknake
0
98
Member Avatar for xanawa

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"

Member Avatar for k.d.m
0
116
Member Avatar for xanawa

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?

Member Avatar for matricol
0
87
Member Avatar for xanawa

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 …

Member Avatar for oredigger
0
129
Member Avatar for xanawa

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?

Member Avatar for de Source
0
125
Member Avatar for xanawa

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?

Member Avatar for xanawa
0
308
Member Avatar for xanawa

i want a regex pattern that accepts from 3 to 6 digits.. and only A,M or G at the end eg: 1234G

Member Avatar for samueal
0
108
Member Avatar for xanawa

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

Member Avatar for chwong
0
139
Member Avatar for xanawa

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)

Member Avatar for xanawa
0
801
Member Avatar for xanawa

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?

Member Avatar for jbisono
0
86
Member Avatar for xanawa
Member Avatar for KenPeterson
0
108
Member Avatar for xanawa

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 = …

Member Avatar for xanawa
0
178
Member Avatar for xanawa

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) …

Member Avatar for Mitja Bonca
0
122
Member Avatar for xanawa

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

0
83
Member Avatar for xanawa

i have buttons and i would liek to make shortcuts from the keyboard to press them. eg. btnAdd = CTRL+A

Member Avatar for Momerath
0
130
Member Avatar for xanawa

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;

Member Avatar for Mitja Bonca
0
118
Member Avatar for xanawa
Member Avatar for xanawa
0
287
Member Avatar for xanawa

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?

Member Avatar for virusisfound
0
103
Member Avatar for xanawa

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?

Member Avatar for xanawa
0
104
Member Avatar for xanawa

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]

Member Avatar for xanawa
0
215
Member Avatar for xanawa

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 …

Member Avatar for xanawa
0
137
Member Avatar for xanawa

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 …

Member Avatar for xanawa
0
177
Member Avatar for xanawa

Hi how do i merge all columns in one row in a datagridview and enter some text in it pls?

Member Avatar for xanawa
0
106
Member Avatar for xanawa
Member Avatar for xanawa
Member Avatar for xanawa
0
127
Member Avatar for xanawa

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 …

Member Avatar for xanawa
0
252
Member Avatar for xanawa

i would like to show an image in a datagridview cell giving the path of the image.. how can i do so?

Member Avatar for Mitja Bonca
0
1K
Member Avatar for xanawa

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: …

Member Avatar for xanawa
0
218
Member Avatar for xanawa
Member Avatar for xanawa

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?

Member Avatar for xanawa
0
98
Member Avatar for xanawa

[COLOR="Red"]txtIDCardNo.Text = c.IDCardNumber.ToString();[/COLOR] why is it giving me a [COLOR="Red"]nullreferenceexception[/COLOR]?

Member Avatar for xanawa
0
104
Member Avatar for xanawa

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

Member Avatar for xanawa
0
101
Member Avatar for xanawa

I am in d form1 code and i would like to initialize d current.. form1 frm = .... help pls how can i do so?

Member Avatar for xanawa
0
95
Member Avatar for xanawa

I would like to create a message box which has a textbox to enter a string in it how is this possible?

Member Avatar for Mitja Bonca
0
4K
Member Avatar for xanawa

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 …

Member Avatar for xanawa
0
159
Member Avatar for xanawa

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 …

Member Avatar for xanawa
0
104
Member Avatar for xanawa

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 + …

Member Avatar for xanawa
0
1K
Member Avatar for xanawa

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]

Member Avatar for xanawa
0
147
Member Avatar for xanawa

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 …

Member Avatar for xanawa
0
82

The End.