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
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
~17.2K People Reached
Favorite Tags
Member Avatar for diya45

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..

Member Avatar for cronynaval
0
4K
Member Avatar for diya45

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 …

Member Avatar for BMXDad
0
439
Member Avatar for diya45

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 …

Member Avatar for vsmash
0
134
Member Avatar for psathish2

this my code in aspx.. [code] <asp:GridView ID="GridView1" runat="server" OnRowDataBound="GridView1_RowDataBound" OnRowEditing="GridView1_RowEditing" OnSelectedIndexChanged="GridView1_SelectedIndexChanged" OnRowCommand="GridView1_RowCommand" > <Columns> <asp:TemplateField ShowHeader="False"> <ItemTemplate> <asp:CheckBox ID="allgc" runat="server" /> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Action" ShowHeader="False"> <ItemTemplate> <asp:LinkButton ID="gdviewlnk" runat="server" >View</asp:LinkButton> / <asp:LinkButton ID="LinkButton1" runat="server">Edit</asp:LinkButton> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> [/code] when i going to click the view linkbutton get …

Member Avatar for jdesk
-3
9K
Member Avatar for diya45

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

Member Avatar for LastMitch
0
170
Member Avatar for diya45

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 …

Member Avatar for LastMitch
0
999
Member Avatar for diya45

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 …

Member Avatar for BMXDad
0
271
Member Avatar for diya45

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 …

Member Avatar for JorgeM
0
254
Member Avatar for diya45

can any one tell me log out or sinout code in c# using windows from application

Member Avatar for sumantnit
0
110
Member Avatar for diya45

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 …

Member Avatar for samsylvestertty
0
173
Member Avatar for diya45

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.

Member Avatar for ddanbe
0
155
Member Avatar for diya45

can anyone tell me how i create search function like as in reservation i search thrugh id then how i create any help

Member Avatar for tinstaafl
0
185
Member Avatar for diya45

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", …

Member Avatar for samsylvestertty
0
107
Member Avatar for diya45

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 …

Member Avatar for samsylvestertty
0
204
Member Avatar for diya45

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; } …

Member Avatar for tinstaafl
0
102
Member Avatar for diya45

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

Member Avatar for JOSheaIV
0
182
Member Avatar for diya45

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 …

Member Avatar for yousafc#
0
165
Member Avatar for diya45

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 …

Member Avatar for diya45
0
178
Member Avatar for diya45

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

Member Avatar for deceptikon
0
90
Member Avatar for diya45

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 …

Member Avatar for ChrisHunter
0
120
Member Avatar for diya45

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

Member Avatar for diya45
0
99
Member Avatar for diya45

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

Member Avatar for arunkumars
0
212
Member Avatar for diya45

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 …

Member Avatar for arunkumars
0
313