- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
23 Posted Topics
hi everyone i have 1 question regarding array in c# application how i arrange numbers in ascending or descending order in array using c# software i do this int array=new int[1,2,3,4,5] furhter i cant processed plz can anyone tell me about this thankx.. | |
i try to show documents with specific department id computer-science admin will be able to view only computer-science documents and hr admin view only hr documents here i create a sp ALTER procedure [dbo].[sphrdocid1] @DepID int as SELECT DocumentInfo.DocID, dbo.DocumentInfo.DocName, dbo.DocumentInfo.Uploadfile, dbo.DocType.DocType, dbo.Department.DepType , dbo.ApproveType.ApproveType AS ApproveID FROM dbo.DocumentInfo left … | |
I HAVE A SCANERI THAT THER IS DEFAULT ADMIN IN TABLE AND THIS ADMIN ADD FURHTER SUPERVIOSR,MANAGERS AND SENIOR MANAGERS THEN WHEN ADMIN FIRST TIME LOGIN AND CREATE ACCOUNTS OF SUPERVISOR,MANAGER,DIRECTOR AND HERE IS THE TABLE UserID UserName Password UserTypeID DepID FullName CreateDate DocID Email PhoneNumber DesigID 51 Noreen Fatima … | |
Re: where u show ur values...??? | |
i try to approve documents through dropdownlist... when i select approve/reject/pending then i have submit button when i click on button document will be approve/reject...what should i code on submit button?? here is the code of dropdown protected void DropDownList4_SelectedIndexChanged(object sender, EventArgs e) { DropDownList ddl = sender as DropDownList; … ![]() | |
previously i try to approve /reject thrugh buttons and i try to code it but now i try to approve/reject through dropdownlist but i dont know how i code though dropdownlist.... this is code when i add buttons of approve and reject.. protected void GrdFileApprove_RowCommand(object sender, GridViewCommandEventArgs e) { if … ![]() | |
now i set insert query and reject query like this ALTER procedure [dbo].[sprejectapprove] @UserID int, @DocID int, @ApproveType nvarchar(50) as Insert into Approval(UserID,DocID,ApproveType) values(@UserID,@DocID,@ApproveType) Reject ALTER procedure [dbo].[spinsertapprove] @UserID int, @DocID int, @ApproveType nvarchar(50) as Insert into Approval(UserID,DocID,ApproveType) values(@UserID,@DocID,@ApproveType) and i call this sp's in this codes protected void GrdFileApprove_RowCommand(object … | |
hey all i complete with task upload file that is user upload their files and download it now here i want to ask when user upload file then this file forward to manager for approval .. then when manger login and view the uploaded file, and click an "approve or … | |
can any one tell me log out or sinout code in c# using windows from application | |
in this when i updated data then not updated it is deleted in update button but there is update fuction how i solve this problem that data are update????/ here is updated fuction { string constring = @"Data Source=.\SQLEXPRESS;Database=htm;Integrated Security=True"; SqlConnection con = new SqlConnection(constring); con.Open(); DataTable dt = new … | |
when i run rertrive data the error shown private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { txt_reser.Text = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); text_guest.Text = dataGridView1.SelectedRows[0].Cells[1].Value.ToString(); txt_room.Text = dataGridView1.SelectedRows[0].Cells[2].Value.ToString(); txt_servce.Text = dataGridView1.SelectedRows[0].Cells[3].Value.ToString(); txt_days.Text = dataGridView1.SelectedRows[0].Cells[4].Value.ToString(); check_in.Text = dataGridView1.SelectedRows[0].Cells[5].Value.ToString(); check_out.Text = dataGridView1.SelectedRows[0].Cells[6].Value.ToString(); MessageBox.Show("Data Retrived", "Information", MessageBoxButtons.OK, MessageBoxIcon.Information); } String was not recognized as a valid DateTime. | |
can anyone tell me how i create search function like as in reservation i search thrugh id then how i create any help | |
i hve reservation form add function and add button public void addreserve() { string constring = @"Data Source=.\SQLEXPRESS;Database=htm;Integrated Security=True"; SqlConnection con = new SqlConnection(constring); con.Open(); DataTable dt = new DataTable(); SqlCommand com = new SqlCommand("insertreserveinfo", con); com.CommandType = CommandType.StoredProcedure; com.Parameters.Add(new SqlParameter("@Reservation_id", myreserv.Reservation_ID1)); com.Parameters.Add(new SqlParameter("@Guest_id", myreserv.Guest_name)); com.Parameters.Add(new SqlParameter("@Room_ID", myreserv.Room_no)); com.Parameters.Add(new SqlParameter("@Service_ID", … | |
i have a form whcih is room and in this there is when i add a data on it that is room id,room no and service type and room type then when i add the data like as room id=1 room no=2 room type=double service type=luxury then when i again … | |
i disable delete button when reception is login but this is not disable private void Room_Load(object sender, EventArgs e) { if (Validate_Password.isadmin == true) { Add.Visible = true; update.Visible = true; Delete.Visible = true; } if (Validate_Password.isrecp == true) { Add.Visible = true; update.Visible = true; Delete.Visible = false; } … | |
hi all add button coding rec.Gender = gender.SelectedValue.ToString(); rec.Martial_status= martial.SelectedValue.ToString(); when i run the code the following error occur in gender Object reference not set to an instance of an object | |
hi all store procedure set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO ALTER procedure [dbo].[insertguestinfo] @Guest_ID int, @first_name nvarchar(50), @Last_name nvarchar(50), @Gender_ID int, @Martial_ID int, @Phone_number int, @email_address nvarchar(50) as begin insert into GuestInfo(Guest_ID,First_name,Last_name,Gender_ID,Martial_ID,Phone_number,Email_address) values(@Guest_ID,@first_name,@Last_name,@Gender_id,@Martial_id,@Phone_number,@email_address) END public void add() { Guest_info gst_info=new Guest_info(); string ConString = @"Data Source=USER-PC\SQLEXPRESS;Initial Catalog=htm;Integrated Security=True"; SqlConnection … | |
WHEN I RUN AND CLICK ON IN ONE ROW THEN THERE IS AND ERROR ON IT HO TO SOLVE THIS AND ERROR IN EMAIL private void dataGridView1_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e) { guest_id.Text = dataGridView1.SelectedRows[0].Cells[0].Value.ToString(); first_name.Text = dataGridView1.SelectedRows[0].Cells[1].Value.ToString(); last_name.Text = dataGridView1.SelectedRows[0].Cells[2].Value.ToString(); txt_gender_status.Text = dataGridView1.SelectedRows[0].Cells[3].Value.ToString(); txt_martial_status.Text = dataGridView1.SelectedRows[0].Cells[4].Value.ToString(); phone_numb.Text = dataGridView1.SelectedRows[0].Cells[5].Value.ToString(); email_id.Text … | |
hi guyzzz in visual studio the form guest i added guest info i added it is added but not show in datagirdview and also not display in girdview but it is added in database SQL but not show in girdview plzzzzz any one tell me | |
hi In room table the roomtype and roomtypeid i created columns then the problem is that when i run the form and add data in database then in roomtypeID the show is double or single i want that in roomtypeID they show as 1 or 2 in roomtypeid column which … | |
hi all i update guestinfo all are update but the gender and martial status is not updated which is in comobox here is the button code private void button7_Click(object sender, EventArgs e) { guests myguest = new guests(); myguest.Guest_id = Convert.ToInt32(guest_id.Text); myguest.First_name = first_name.Text; myguest.Last_name = last_name.Text; myguest.Gender_status = Convert.ToString(gender_status.SelectedValue); … | |
hi all now guyz i add a info in datagrid view also displau now i hve some probelms that when i create a update fuction in guestinfo table then the guest_id is autogenerte then can i delete through guest_id or not and it is also not updated public void update() … | |
hi all i make a store procdeure in visual studio wpf when i run a code the error is not solve here is error "Procedure getguestinfo has no parameters and arguments were supplied." and here is the code public class guests { private int guest_id; public int Guest_id { get … |
The End.