16,017,502 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by shivani 2013 (Top 200 by date)
shivani 2013
14-Oct-14 6:31am
View
thanks got same output .will need to see the code and will come back if faces issues
shivani 2013
14-Oct-14 6:21am
View
I have updated my quest pls see
shivani 2013
14-Oct-14 6:21am
View
I have updated my quest pls see
shivani 2013
14-Oct-14 6:21am
View
I have updated my quest pls see
shivani 2013
3-Sep-14 3:37am
View
I have already read this but is not serving my purpose as I want to add partucular prerequisite only for the users who have windows 8 its O.S and not for other users
shivani 2013
3-Sep-14 2:34am
View
Thanks but i searched a lot..There is a option for predefined prerequisite but not for custom prerequisites.
shivani 2013
1-Sep-14 2:41am
View
Thanks for your reply but if i have 100s of PC.Its very time consuming process.
shivani 2013
28-Aug-14 3:36am
View
Thanks ....i forgot the basic thing
shivani 2013
28-Aug-14 3:21am
View
then how to iterate this....i want everytime new invoiceentity data
shivani 2013
18-Aug-14 9:16am
View
leading zeros are dynamic.there can be 2 , 3 , 4 depending upon user
shivani 2013
18-Aug-14 9:08am
View
thanks for reply.its dynamic .... for more clarification i have updated my question.
shivani 2013
7-Aug-14 7:59am
View
hey i achieved it trogh datatable..thanks for structure and will query you again ...if face issue...thanks
shivani 2013
7-Aug-14 7:48am
View
sp is returning result with two records..
updated code is
public List<invoice> GetData()
{
var connectionString = ConfigurationManager.ConnectionStrings["csTcube"].ConnectionString;
List<invoice> resultList = new List<invoice>();
SqlConnection dbConnection = null;
SqlDataReader reader = null;
try
{
dbConnection = new SqlConnection(connectionString);
// IDbCommand dbCommand = new SqlCommand();
SqlCommand dbCommand = new SqlCommand();
dbCommand.Connection = dbConnection;
dbCommand.CommandType = CommandType.StoredProcedure;
dbCommand.CommandText = "TimeSummary_ForInvoice";
dbCommand.Parameters.Add("@StartDate", SqlDbType.DateTime).Value = "2014-05-31"; // dtFrom.Value;
dbCommand.Parameters.Add("@EndDate", SqlDbType.DateTime).Value = "2014-06-01";// dtTo.Value;
dbCommand.Parameters.Add("@Company", SqlDbType.Int).Value = 2;
dbCommand.Parameters.Add("@InvoiceStartNo",SqlDbType.Int).Value=1;
SqlDataAdapter adp = new SqlDataAdapter(dbCommand);
DataTable dt = new DataTable();
dbConnection.Open();
//
reader = dbCommand.ExecuteReader();
//adp.Fill(dt);
//if (dt.Rows.Count > 0)
//
while (reader.Read())
{
Invoice invoiceEntity = new Invoice();
invoiceEntity.Rowno=(int)reader["Rowno"];
invoiceEntity.ProjectName = (string)reader["ProjectName"];
invoiceEntity.EmployeeRoleTypeName = (string)reader["EmployeeRoleTypeName"];
invoiceEntity.WorkHours = (decimal)reader["WorkHours"];
invoiceEntity.InvoiceNo = (string)reader["@Invoice"];
invoiceEntity.CurrentDate=(DateTime)reader["CurrentDate"];
resultList.Add(invoiceEntity);
}
}
catch (SqlException exception)
{
// throw new MyExceptionClass(exception.Message, exception); //This is good to have!
}
finally
{
if (reader != null)
reader.Close();
dbConnection.Close();
}
//
return resultList.ToList();
}
shivani 2013
7-Aug-14 7:33am
View
I tried ur way but facing issue while(reader.read()) -- there is no data present and is skipping all code with in it..through sp i am returning table with multiple records.
shivani 2013
3-Jun-14 3:29am
View
its not working
shivani 2013
3-Apr-14 3:48am
View
I got cause..order of elements in xml and xsd are different but now issue is how to ignore the order
shivani 2013
3-Apr-14 0:27am
View
I just want to compare the schema structure of 2 xml.For that purpose I created xsd from one xml and then comparig that xsd (schema structure) with another xml...so that I can know whether both xml have same structure or not
shivani 2013
24-Mar-14 6:30am
View
Is there no one who can help me on this?
shivani 2013
22-Jan-14 7:33am
View
but same error
shivani 2013
22-Jan-14 1:27am
View
I have already done that
shivani 2013
14-Sep-13 8:20am
View
thanks for your reply .I have already looked this link but no help
if you do it over here .....it wld be really appreciable
shivani 2013
14-Sep-13 0:21am
View
its not working
shivani 2013
14-Sep-13 0:17am
View
no it won't tproperty can't be accessed
shivani 2013
10-Jul-13 2:41am
View
thanks a lot I learnt something new today...GOD bless you
shivani 2013
9-Jul-13 6:10am
View
thanks it worked, tried everything but not this neeways thanks once again
shivani 2013
26-Jun-13 7:48am
View
thanks for your effort but what i want is not serving my purpose
shivani 2013
30-Apr-13 4:14am
View
pls tell where to set compile to "any CPU" or X86.There is Build -> platform target .i have set it to X86
shivani 2013
22-Apr-13 7:13am
View
Thank you so much.very helpful.really appreciable....even got the way to ask the question and thanks for updating the question...never thought of derived tables to work on..
shivani 2013
20-Apr-13 7:57am
View
pls see to it .i have updated it ........
shivani 2013
20-Apr-13 3:48am
View
i have updated my question......do see
shivani 2013
20-Apr-13 3:48am
View
i have updated my question......do see
shivani 2013
18-Apr-13 8:58am
View
it doesn't worked thanks for ur effort
shivani 2013
18-Apr-13 7:18am
View
my scenario is :there are 2 students of V class having eng subject each getting respective marks 55 and 54.now when i list i should have one more column highest marks which will be shown in each row (here 55) .so in both rows it should show 55 marks of english subject with other detials(like student name,class.marks obtained) and same for maths subject of same student and the of different class student...i hope u got my scenario........
shivani 2013
18-Apr-13 7:08am
View
i Have 2 classes V and VI with respective 2 subjects english,maths and maths,science.now i want to list all students name with their respective marks opbtained,highest marks(respective class and subject),class,subject,gender and address.
i hope u got it
shivani 2013
19-Mar-13 6:00am
View
it is not fulfilling what i want.i want it in page load too
shivani 2013
19-Mar-13 5:52am
View
not working
shivani 2013
12-Mar-13 7:34am
View
i need to achieve through this only and one more thing .instance is i have two records for user A but when i need to show it on grid it is only displaying one record only thogh datatble having 2 records.pls tell how to achieve it
shivani 2013
13-Feb-13 5:50am
View
what is viewbag.and do ineed to add any reference to have viewstate??????????????
shivani 2013
12-Feb-13 6:00am
View
thanks.i got it.........
shivani 2013
9-Feb-13 4:13am
View
i have already done com.executenonquery for both
still i am not getting desired result
shivani 2013
8-Feb-13 7:07am
View
there is no problem in code.....i want to have option in web.config.i want to use only one connectoinstring at a time.if i use option of "test" it should fire only sqlconnection and if i use option of "test1" it should fire only oledb connection how can i achieve this
regards
shivani 2013
8-Feb-13 6:06am
View
I defined Transaction before the loop and commit in finally statement..i updated my question but again it is doing same and with error
"This SqlTransaction has completed; it is no longer usable.".
pls tell wat to modify here
regards
shivani 2013
8-Feb-13 5:48am
View
i have updated my question see to it
shivani 2013
8-Feb-13 5:24am
View
it is not serving my purpose........can you tell what mistake i did in this??????????
shivani 2013
8-Feb-13 5:15am
View
it has no affect ......it is again inserting first two rows and leaving third row....infact it should have not insert either of three
shivani 2013
7-Feb-13 7:42am
View
thanks.i have one more issue that i want when i click on particular item of i want its product cost should come in a given textbox .i am not able to achieve through ddlprd_selectedindexchange but same i can achieve on clicking button...y so ...how can i achieve through ddlprd_selectedindexchange ?
pls tell
regards
shivani 2013
7-Feb-13 2:53am
View
thanks i got it.......
shivani 2013
7-Feb-13 2:19am
View
in grid no data is filled..i need to fill the data through textboxes then how can i tale loop till grd.Rows.Count???????????
shivani 2013
7-Feb-13 2:13am
View
it is showing only current values in place of previous .....first row is only getting affected.....
pls tell
thanks
shivani 2013
6-Feb-13 14:04pm
View
wat u wrote now i did initially same ...but got that same error........secondly i want to add items into grid depending upon products in dropdownlist so i delebrately did that so that my loop should start from 0 till dropdownlist count
shivani 2013
6-Feb-13 13:49pm
View
i have updated my code.pls see to it...
regards
shivani 2013
6-Feb-13 13:43pm
View
ok i am posting my code.
i acknowledge you for my help....
shivani 2013
6-Feb-13 13:32pm
View
I need to add the data from textboxes to datagrid using datatable..........
in start, I entered data in respective textboxes and clicked "ädd" button .it entered into grid...now again i entered different data for respective textboxes...it should enter in to grid and should retain previous row data too.while doing this i am getting error told before
shivani 2013
6-Feb-13 13:23pm
View
4
shivani 2013
6-Feb-13 13:15pm
View
i am getting one error on dtDetails.Rows.Add(i + 1, grdDetails.Rows[i].Cells[1].Text, grdDetails.Rows[i].Cells[2].Text, grdDetails.Rows[i].Cells[3].Text, grdDetails.Rows[i].Cells[4].Text); when i click again add cart with another value
pls help
"Input array is longer than the number of columns in this table."
shivani 2013
6-Feb-13 11:03am
View
i dont want it to add in db...
shivani 2013
6-Feb-13 7:09am
View
sir it is done on a single table i want in multiple table
shivani 2013
6-Feb-13 6:57am
View
this is done only on a single table .......i am not able to achieve this in multiple tables.pls tell
shivani 2013
6-Feb-13 6:43am
View
if i want to affect more than one table........hw is it possible????????
shivani 2013
2-Feb-13 6:30am
View
i am sorry i couldnt write whole code,,sry for ur valuable time .pls see that
shivani 2013
2-Feb-13 6:30am
View
i am sorry i couldnt write whole code,,sry for ur valuable time .pls see that
shivani 2013
2-Feb-13 6:30am
View
i am sorry i couldnt write whole code,,sry for ur valuable time .pls see that
shivani 2013
2-Feb-13 6:28am
View
i passed state id through method.pls see that
shivani 2013
2-Feb-13 6:21am
View
thanks for this control but can't i use like this...m mean i what io am missing in this code....
shivani 2013
2-Feb-13 5:25am
View
i did what u said .i am getting an error after sending mail on
mailMessage.To.Add(email_to); that " The parameter 'addresses' cannot be an empty string.
Parameter name: addresses " and the message has been said to the persons to whom i send mail but without attachment.....pls resolve
regards
shivani 2013
1-Feb-13 7:41am
View
its in correct format
shivani 2013
1-Feb-13 7:39am
View
i have used foreach and an arraylist which it will take the addresses too whom to send..
shivani 2013
1-Feb-13 3:12am
View
not getting result..........
same msg
shivani 2013
25-Jan-13 4:46am
View
i have updated my ques...see to it
thanks
shivani 2013
25-Jan-13 4:45am
View
i made all changes what u did over here but nothing happened
shivani 2013
23-Jan-13 7:25am
View
thanks
shivani 2013
23-Jan-13 7:25am
View
thanks
shivani 2013
22-Jan-13 1:39am
View
i got my mistake............thanks for help.......i need to define a method in web form too..
shivani 2013
18-Jan-13 8:00am
View
is there no one who could help me out of this..........
shivani 2013
14-Jan-13 5:15am
View
thanks ............it works
shivani 2013
9-Jan-13 7:28am
View
i am getting all changes at design time but not on run time
shivani 2013
9-Jan-13 7:25am
View
why then why it has been given properties in grid view
shivani 2013
9-Jan-13 7:24am
View
no change
shivani 2013
9-Jan-13 6:59am
View
i created style sheet and wrote above code and linked it to the form source code but in headerstyle---->cssclass i wrote .GridHeaderRowClass bbut on run timne no change.have i missed something
shivani 2013
9-Jan-13 6:53am
View
for this i need to create style sheet or what.plz telll in detail.i m new to this
shivani 2013
9-Jan-13 6:34am
View
grid view
shivani 2013
2-Jan-13 7:11am
View
thanks
shivani 2013
18-Apr-12 0:43am
View
how to navigate from one form to another form(the value depending upon first form)
i want when the receipe name comes on the form from the database and there are 40 receipe names ...when they appear on the form...then clicking on the receipe name its all details(author,ingredients,instructions etc) come on another form e.g.
I have 40 receipes coming from database in form named receipe.aspx
and when i click on any one receipe ,its detals should come on another form....how can i achieve this
shivani 2013
17-Apr-12 14:12pm
View
can u expain it more in detail
shivani 2013
17-Apr-12 14:10pm
View
have u got what i want
??/
shivani 2013
17-Apr-12 14:09pm
View
i want when the receipe name comes on the form from the database and there are 40 receipe names ...when they appear on the form...then clicking on the receipe name its all details(author,ingredients,instructions etc) come on another form
shivani 2013
17-Apr-12 14:07pm
View
ok i explain it again
shivani 2013
17-Apr-12 13:09pm
View
in DataBinder.Eval (Container.DataItem, "recipe_name")
error is Container does not exist
Have you understood my case...i mean what i want in this code can be done through sessions or can be done through any other means
shivani 2013
17-Apr-12 12:06pm
View
nothing working out........
shivani 2013
17-Apr-12 0:13am
View
What should be written in parameters of eval as it is asking about eval(object container,string expression)?????
shivani 2013
10-Apr-12 6:15am
View
its not working
shivani 2013
9-Apr-12 7:35am
View
I got your point to some extent about making CurrentRating="0" but when i run i want user to select the star of his choice and then star get selected but no action is performed so help me out on this
shivani 2013
5-Apr-12 1:55am
View
thanks ..You really supported me on this .You are acknowledgeable
shivani 2013
3-Apr-12 6:57am
View
Could you pleaes tell how to add reference to ajaxtoolkit dll to my web application.
shivani 2013
6-Mar-12 5:06am
View
how to add the elements?
shivani 2013
6-Mar-12 4:29am
View
thanks
shivani 2013
1-Dec-11 6:56am
View
I am not getting answers thats why i came here
.it would be good if u help me for this
shivani 2013
1-Dec-11 6:49am
View
thanx
shivani 2013
18-Nov-11 4:32am
View
i want to say that filewatcher is used to monitor the files for a particular path we give ....here where i need to
shivani 2013
17-Nov-11 0:04am
View
I have only this data........
shivani 2013
15-Nov-11 0:06am
View
I am not getting what you are saying.I have made one database named Dorknozzle1 and in that there is a folder Programmability thereand in that there is stored procedure and in that ,"InserrtHelpdesk1" sp exists
shivani 2013
14-Nov-11 2:34am
View
stored procedure is in exist database
shivani 2013
14-Nov-11 2:18am
View
No, I have created this on Dorknozzle1 database
shivani 2013
14-Nov-11 0:32am
View
Sorry, I wrote wrong over here. I have written inserthelpdesk2 only in my code.I am getting same error.
shivani 2013
14-Nov-11 0:31am
View
Sorry, I wrote wrong over here. I have written inserthelpdesk2 only in my code.I am getting same error.
shivani 2013
9-Nov-11 5:31am
View
Thank you sir
shivani 2013
3-Nov-11 8:33am
View
Can u explain me one question with eg.
passing a value type variable into procedure as an argument.The procedure changes the variable,however when the procedure returns,the variable has not changed.What happened
I think its answer is that passing a value type into procedure creates a copy of the data.
Can u explain this with an e.g if this answer is correct
shivani 2013
3-Nov-11 8:27am
View
Thank you,the program has been run but I am not getting one thing that why compiler doesn't provide default one.........as i have read that default constructors are automatically called.
shivani 2013
3-Nov-11 8:18am
View
Thank you,I got it
shivani 2013
3-Nov-11 8:18am
View
Thank you,I got it
shivani 2013
1-Nov-11 5:29am
View
am i right
shivani 2013
1-Nov-11 5:17am
View
As u talked about taking sheets...what i got is i want to tell
in case of reference
1st sheet is just the label n1 and its actual value is stored in 2nd sheet (memory address)and when it is said n2=n1;it means n2 will access the value of n1 which is stored in 2nd sheet and the operations
n2.val+=1
n2.val+=2
will get access from 2nd sheet only
shivani 2013
18-Oct-11 0:43am
View
Why i need object obj;
int a=10;
obj=a;
I can simply write
int a=10;
console.writeLine(a);
i am getting same answer a=10;
then why to do this through object
shivani 2013
18-Oct-11 0:32am
View
Sir, I know the concept ogf polymorphism..how this is related ?
shivani 2013
18-Oct-11 0:29am
View
range means u can give value between -128 to 127 in case of sbyte
Code as follows:
sbyte a ;//8 bits
a=-128
binary form is 110000000(consisting of 8 bits)
Now, - is also given then one bit is reserved for it
then i am left with 7 bits only but binary form of 128 is of 8 bits...then how 8 bit can be placed .there are total 9 bits
so this dont satisfy the range
and binary form is
shivani 2013
14-Oct-11 1:01am
View
Thanx got it
shivani 2013
11-Sep-11 5:13am
View
Thank You for explaining.....I have a question in Turbo c we give the header file #include(graphics.h) and it is also console then why we cant use such namspaces for it though its not there in c# console
shivani 2013
6-Jul-11 8:23am
View
what will be the coding for it
shivani 2013
22-Jun-11 9:14am
View
sir file exists
shivani 2013
17-Jun-11 8:12am
View
sir i have visited this site already but not able to locate its exact implementaion in making web site
shivani 2013
13-Jun-11 7:21am
View
ah!then get an idea sir jeee
i mean there will be some logic for this
shivani 2013
13-Jun-11 7:03am
View
thanx
but why i got this error..i mean same thing written but now no error
shivani 2013
23-May-11 3:31am
View
Thanx i will keep it in mind
shivani 2013
23-May-11 3:30am
View
Thanx i will keep it in mind
shivani 2013
17-May-11 7:33am
View
thanx i got
shivani 2013
17-May-11 7:32am
View
thanx i got
shivani 2013
17-May-11 7:12am
View
Sir/Mam
on running project splash screen appears and them MDI parent form...wat shld I do so that after running splash screen i should get login page
shivani 2013
12-May-11 7:57am
View
rply sir
shivani 2013
12-May-11 5:41am
View
data is inserted, have seen in database but not for field resources its written "System.Data.DataRowView,System.Data.DataRowView"
shivani 2013
12-May-11 4:53am
View
i did
cmd.Parameters.Add(new SqlParameter("@Resources",listBox1.Items.Cast<object>().Aggregate((item1, item2) => item1 + "," + item2).ToString())); in place of
{
strC = strC + " ," + itm;
}
cmd.Parameters.Add(new SqlParameter("@Resources",strC);
insertion is successfully but in database in field resources data not fetched and written "System.Data.DataRowView,System.Data.DataRowView"
shivani 2013
12-May-11 3:23am
View
pls help
shivani 2013
12-May-11 3:23am
View
plz help
shivani 2013
12-May-11 3:11am
View
sir its desktop application .hw can i use </object>
shivani 2013
12-May-11 3:02am
View
what is listitem here
shivani 2013
11-May-11 4:24am
View
i just want that dropdownmenu should work as a menu
shivani 2013
11-May-11 4:20am
View
no.its not that what i need...........
shivani 2013
11-May-11 3:32am
View
No sir ,My question is not this....in combo box we have arrow in its design vertically(downwards) but i want to have combox whose arrow should be horizontallt(across)
shivani 2013
11-May-11 1:26am
View
thanx
shivani 2013
10-May-11 23:45pm
View
there is no error but data is not fetched ,the way it fetched the data for single table
shivani 2013
10-May-11 8:23am
View
no ,its not wrking data is not displayed
shivani 2013
10-May-11 7:33am
View
Thanx for ur answer but i want that data should also get displayed of both the tables
i have updated my question
shivani 2013
10-May-11 6:19am
View
if i want to add another table in data set after i created crystal report .Can i modify crystal report and how...thanx in advance
regards
shivani 2013
10-May-11 6:00am
View
thanx
shivani 2013
10-May-11 0:40am
View
thanx
shivani 2013
7-May-11 4:06am
View
can u explain it more using code
shivani 2013
7-May-11 4:06am
View
can u explain it more using code
shivani 2013
6-May-11 2:37am
View
i hve updated question see it
shivani 2013
6-May-11 2:37am
View
i hve updated question see it nw
shivani 2013
6-May-11 2:27am
View
can u pls explain it little bit more with eg
shivani 2013
6-May-11 2:27am
View
can u pls explain it little bit more with eg
shivani 2013
5-May-11 5:07am
View
thanx
shivani 2013
5-May-11 3:23am
View
Sir its string only
shivani 2013
5-May-11 3:22am
View
Sir its dtring onlt
shivani 2013
5-May-11 3:22am
View
please rectify me if i am wrong anywhere
shivani 2013
4-May-11 23:54pm
View
its string only
shivani 2013
4-May-11 8:40am
View
sir i am deleting it from database then how could i write the query
delete from Resources_Required where Resources='"+listBox1.SelectedItems[0].ToString()
shivani 2013
4-May-11 8:27am
View
achaa! isko kehte hai...ok
udhar toh query run ho gai there i need to specify
delete from PSM.dbo.Resources_Required where Resources="Team";(i have to specify the value which is present in field resources)
shivani 2013
4-May-11 8:06am
View
2008
shivani 2013
4-May-11 7:59am
View
getting an error"Failed to convert parameter value from a string to a Int16
shivani 2013
4-May-11 7:55am
View
can u tell how
m mean where is Sql Server Query Analyzer
shivani 2013
4-May-11 7:45am
View
warning
if (ro["Resources"] == listBox1.SelectedItem.ToString())
"Possible unintended reference comparison,to get a value comparison,cast the left hand side to type'string'
and nothing happened i mean not deleting the element
shivani 2013
4-May-11 7:39am
View
i have checked sir..no problem in query
shivani 2013
4-May-11 7:33am
View
it doesnt contain any definition for .item in
if (ro.Item["Resources"] == listBox1.SelectedItem.ToString())
and one more thing
its SqlParameter param = new SqlParameter();
instead of
SqlParameter param = New SqlParameter;
shivani 2013
4-May-11 7:18am
View
but no error
shivani 2013
4-May-11 7:18am
View
i have checked
shivani 2013
4-May-11 7:16am
View
getting error
instead of Tables() its Table[] in DataTable dt = ds.Tables("Resources_Required");
and warning
if (ro["Resources"] == listBox1.SelectedItem.ToString())
"Possible unintended reference comparison,to get a value comparison,cast the left hand side to type'string'
shivani 2013
4-May-11 7:05am
View
its not working I mean i am not getting any error while running but not deleting the elements too......and one more thing its listBox1.SelectedItems[0] not listBox1.SelectedItem[0] as it is giving error "cannt apply indexing with[] to an expression of type 'object' "
shivani 2013
4-May-11 5:17am
View
neah not working
no item was deleted
shivani 2013
4-May-11 5:10am
View
i have even tried before u wote..and this time i am getting an error
cannot find table[0]
shivani 2013
4-May-11 3:21am
View
no its not working....getting an error "listBox1.SelectedItems[0] does not contain definition of .Text"
shivani 2013
3-May-11 8:47am
View
u give solution to every problem of mine.thanx
regards
shivani 2013
3-May-11 8:38am
View
thanx
shivani 2013
3-May-11 8:37am
View
i got it
shivani 2013
3-May-11 8:32am
View
i dont get specified date in the text box which i inserted in database.i am always getting current date
shivani 2013
3-May-11 8:11am
View
But date value gets affected not text.I mean date is always shown in value not in text
shivani 2013
3-May-11 5:20am
View
got it
shivani 2013
3-May-11 5:19am
View
got it
shivani 2013
3-May-11 5:12am
View
how loop will work i mean can u tell the coding for looping items of listbox..i am not able to write
shivani 2013
3-May-11 4:45am
View
can u explain it more
shivani 2013
3-May-11 4:45am
View
as i need to add the items through listbox
can't i use like this
string resources =Convert.ToString(listBox1.Items);
cmd.Parameters.Add(new SqlParameter("@Resources", resources));
shivani 2013
3-May-11 3:38am
View
can u explain it in detail
shivani 2013
2-May-11 7:37am
View
thanks
shivani 2013
2-May-11 6:28am
View
yes sir i wont
shivani 2013
2-May-11 6:16am
View
thanks
shivani 2013
2-May-11 6:16am
View
thanks
shivani 2013
2-May-11 6:14am
View
thanks i got it.really thank you very very very very much
shivani 2013
2-May-11 5:22am
View
on loading form
private void Media_Method_of_Publicity_Load(object sender, EventArgs e)
{
SqlConnection con = new SqlConnection("Data Source=SW-PC-20;Integrated security =SSPI;Initial catalog=PSM");
con.Open();
SqlCommand com = new SqlCommand("select * from Media_Method", con);
SqlDataReader dr = com.ExecuteReader();
DataTable dt = new DataTable();
dt.Load(dr);
dataGridView1.DataSource = dt;
dr.Close();
con.Close();
}
on clicking particular row of data grid view
SqlConnection con = new SqlConnection("Data Source=SW-PC-20;Initial Catalog=PSM;Integrated Security=True");
con.Open();
//SqlCommand com = new SqlCommand("select * from Media_Method", con);
SqlCommand com = new SqlCommand("select * from Media_Method where Media_method_ID =dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString()", con);
SqlDataReader dr = com.ExecuteReader();
if (dr.HasRows)
{
txtmediaid.Text = dr[0].ToString();
txtmedianame.Text = dr[1].ToString();
txtaudience.Text = dr[2].ToString();
}
dr.Close();
con.Close();
and here Media_method_ID is field name of SQL
and when i run the application every the error shown is
incorrect syntax near e.RowIndex
shivani 2013
2-May-11 5:17am
View
just wait i""l provide u
shivani 2013
2-May-11 3:30am
View
i am getting following error
incorrect syntax near e.RowIndex
shivani 2013
2-May-11 3:05am
View
the coding which have given me nw.i have alredy dne this.........my question is wat to write in this ??????? in following code
select * from teacher2 Where teacherID=????"
as i am selecting a particular row of dat grid view
shivani 2013
2-May-11 3:05am
View
the coding which have given me nw.i have alredy dne this.........my question is wat to write in this ??????? in following code
select * from teacher2 Where teacherID=????"
as i am selecting a particular row of dat grid view
shivani 2013
2-May-11 2:54am
View
its window application using C#.NET and SQL SERVER 2008
shivani 2013
2-May-11 2:34am
View
i want is on loading form whole data should get displayed in data grid view and i am getting this..............but wen i click one particular row of dat grid view then i should get data for respective selected row in respective text boxes......nw wat coding should i give
m mean select * from teacher where teacher_id=???????????as i m selecting particular row from dat grid view.......
shivani 2013
2-May-11 2:14am
View
can u explain in detail
shivani 2013
2-May-11 1:47am
View
I am getting An error
Cannot bind to the new display member
Parameter name:newDisplayMemeber
shivani 2013
2-May-11 1:30am
View
my question is function getmew is to be written in notepad and save it as .javascript and then how to call it in application
shivani 2013
2-May-11 1:28am
View
i have too posted this doubt there also
shivani 2013
2-May-11 1:26am
View
can u tell how to write javascript code......
shivani 2013
2-May-11 1:25am
View
where to write this code????????????
shivani 2013
29-Apr-11 7:58am
View
thank you
Show More