15,896,118 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 Python 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 ythisbug (Top 200 by date)
ythisbug
23-Mar-18 15:43pm
View
Dear Mr.Griff,
thank you for your reply.
can you give me link 2013 vs link to download? i tried visual studio website but unable to download..
thank you.
ythisbug
23-Mar-18 15:35pm
View
Dear Mr.Giskard,
thank you for your reply.
i tried before downloading earlier but am getting this error
"Sorry, we couldn't find any downloads for you.
To continue, please join Visual Studio Dev Essentials or purchase a Visual Studio Subscription.
If your Visual Studio Subscription has recently been migrated from the legacy MSDN Subscriptions portal, and you are unable to find your subscription here, please ensure you are using the same sign-in credentials that you were using to sign-in to the legacy MSDN portal. You may need to log out and log back in. Make sure to select personal account if given a choice when logging in.
Still having trouble? Please review our FAQ , or contact Support."
ythisbug
20-Mar-18 13:20pm
View
thanks Mr.Richard Deeming
am trying to install sql server but am getting this error now ""Prior Visual studio 2010 instances requiring update"
Note: i downloaded link which provided(full setup file but "VS10sp1-KB983509.msp" how can i install) i checked in google for this issue. asking me to install VS10sp1-KB983509.msp" this file.
can any one solve this issue?
ythisbug
24-Nov-13 10:03am
View
ok thank u..any other like textbox text changed??
ythisbug
18-Nov-13 12:17pm
View
hmmm
ythisbug
18-Nov-13 3:40am
View
ok thank you..but error is not using caching rite..now i solved this ..thank you...
in my database time format saved in "2013-11-15" and while fetching i was getting value as "15-11-2013"..so that was the issue..
thanks again
ythisbug
18-Nov-13 2:47am
View
I mentioned in last line
ythisbug
13-Nov-13 13:29pm
View
OK THANK YOU
ythisbug
21-Sep-13 5:59am
View
no.not working only
ythisbug
29-Mar-13 2:04am
View
thank you
ythisbug
28-Mar-13 3:01am
View
ok thank u
ythisbug
28-Mar-13 2:51am
View
in this no update delete.am binding data to dat dropdownlist i.e cmbEPS
ythisbug
28-Mar-13 2:38am
View
no
ythisbug
7-Mar-13 0:01am
View
thank you.but i want to fetch records from database..how can i do that..?
ythisbug
28-Feb-13 1:34am
View
k.but that link.but i want to display from sql .
ythisbug
28-Feb-13 0:45am
View
thanks for your artical..
ythisbug
27-Feb-13 5:18am
View
ok thank you
ythisbug
27-Feb-13 4:45am
View
for example i told request..
actually am selecting itemid and two dates to get total count withing 30 days
ythisbug
25-Feb-13 1:03am
View
null value is not there ..0 values are there so i dont want to display 0 values..
ythisbug
25-Feb-13 0:38am
View
sorry that is not view that is function am using in my sp
ythisbug
25-Feb-13 0:23am
View
am joining all tables to get tat total quantity from different different tables quantity..as am Getting Quantity
ythisbug
25-Feb-13 0:11am
View
Qty is not colum..am getting as Qty
ythisbug
25-Feb-13 0:03am
View
thank you..but am using view inside sp..so how can i use dat Qty to filter with where condition
ythisbug
24-Feb-13 23:55pm
View
thank you.but this query counting all.nt like within one month i mean in 30 days hw many request i gt
ythisbug
24-Feb-13 6:30am
View
k can u give me any examples?
ythisbug
24-Feb-13 4:54am
View
ok.i updated query
ythisbug
8-Feb-13 8:48am
View
thank you. but machinery is value nt column field..
ythisbug
8-Feb-13 8:34am
View
ALTER PROCEDURE [dbo].[usp_RptVacantPropertyByUnits]
@PropertyID int=null,
@DateFrom datetime=null,
@DateTo datetime=null
AS BEGIN
if @PropertyID is null
Begin
SELECT tblContractDetails.*,tblContractHeader.*,tblAssetRegister.*
FROM
tblContractDetails
INNER JOIN
tblContractHeader ON tblContractDetails.cdeDID = tblContractHeader.chDID AND
tblContractDetails.cdeDocType = tblContractHeader.chDocType
left outer join tblAssetRegister on tblContractHeader.chPropertyID=tblAssetRegister.asID
WHERE (@DateFrom IS NULL OR
tblContractHeader.chDocumentDateTime >= @DateFrom) AND (@DateTo IS NULL OR
tblContractHeader.chDocumentDateTime <= @DateTo)
AND tblContractHeader.chIsDelete=0 and tblAssetRegister.asDocType='PRE1' and tblAssetRegister.asID is null
ORDER BY tblContractHeader.chDocumentDateTime
End else if @PropertyID is not null
Begin
SELECT tblContractDetails.*,tblContractHeader.*,tblAssetRegister.*
FROM
tblContractHeader
INNER JOIN
tblContractDetails ON tblContractHeader.chDID = tblContractDetails.cdeDID AND tblContractHeader.chDocType = tblContractDetails.cdeDocType
left outer join tblAssetRegister on tblContractHeader.chPropertyID=tblAssetRegister.asID
WHERE
tblContractHeader.chIsDelete=0 and tblAssetRegister.asID is null and tblContractHeader.chPropertyID in(select asID from tblAssetRegister where asID=@PropertyID and tblAssetRegister.asDocType='PRE1')
ORDER BY tblContractHeader.chDocumentDateTime
End
END
this is my query but am not getting records.. can any one suggest me wats the issue..
thank you
ythisbug
5-Feb-13 23:41pm
View
that ok but how to get unmatched records..inleft outer join will get all records rite..i want non repeated records in second table. i.e tblSales.
ythisbug
29-Jan-13 6:12am
View
ya thats da issue
ythisbug
28-Jan-13 23:41pm
View
which i pasted query for that am getting records but am getting all records..bt not for perticualr id..
in my report format am selecting company name(party name) and two date fields start and end..within that ddate i want to fetch records..
ythisbug
25-Jan-13 10:00am
View
thanks griff
ythisbug
25-Jan-13 9:23am
View
ya i tried.i want to join three tables to get some details related to perticular id.i mean cmcompanyid
ythisbug
25-Jan-13 8:53am
View
i want some fields not all.
ythisbug
25-Jan-13 8:53am
View
i want some fields not all.thank u
ythisbug
25-Jan-13 1:31am
View
thank you..but in second page am not using and html code i mean textbox or dropdown list..so how can i use here/...
ythisbug
23-Jan-13 2:38am
View
thank you.i modified question.
ythisbug
15-Dec-12 0:40am
View
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
if (((LinkButton)GridView1.Rows[0].Cells[0].Controls[0]).Text == "Insert")
{
SqlConnection con = new SqlConnection(WebConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "INSERT INTO tblTimeSheet(tsProject,tsStartDate,tsEndDate,tsMonday,tsTuesday,tsWednesday,tsThursday,tsFriday,tsSaturday) VALUES(@Project,@StartDate,@EndDate,@Monday,@Tuesday,@Wednesday,@Thursday,@Friday,@Saturday)";
cmd.Parameters.Add("@Project", SqlDbType.VarChar).Value = ((DropDownList)GridView1.Rows[0].Cells[2].Controls[0]).SelectedItem.Text;
//cmd.Parameters.Add("@Project", SqlDbType.VarChar).Value = ((DropDownList)GridView1.Rows[0].Cells[2].FindControl("ddlProject"));
cmd.Parameters.Add("@StartDate", SqlDbType.DateTime).Value = ((TextBox)GridView1.Rows[0].Cells[3].Controls[0]).Text;
cmd.Parameters.Add("@EndDate", SqlDbType.DateTime).Value = ((TextBox)GridView1.Rows[0].Cells[4].Controls[0]).Text;
cmd.Parameters.Add("@Monday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[5].Controls[0]).Text;
cmd.Parameters.Add("@Tuesday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[6].Controls[0]).Text;
cmd.Parameters.Add("@Wednesday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[7].Controls[0]).Text;
cmd.Parameters.Add("@Thursday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[8].Controls[0]).Text;
cmd.Parameters.Add("@Friday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[9].Controls[0]).Text;
cmd.Parameters.Add("@Saturday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[10].Controls[0]).Text;
cmd.Connection = con;
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
else
{
SqlConnection con = new SqlConnection(WebConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString);
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "UPDATE tblTimeSheet SET tsProject=@Project,tsStartDate=@StartDate,tsEndDate=@EndDate,tsMonday=@Monday,tsTuesday=@Tuesday,tsWednesday=@Wednesday,tsThursday=@Thursday,tsFriday=@Friday,tsSaturday=@Saturday WHERE tsID=@ID";
cmd.Parameters.Add("@Project", SqlDbType.VarChar).Value = ((DropDownList)GridView1.Rows[0].Cells[2].Controls[0]).Text;
cmd.Parameters.Add("@StartDate", SqlDbType.DateTime).Value = ((TextBox)GridView1.Rows[0].Cells[3].Controls[0]).Text;
cmd.Parameters.Add("@EndDate", SqlDbType.DateTime).Value = ((TextBox)GridView1.Rows[0].Cells[4].Controls[0]).Text;
cmd.Parameters.Add("@Monday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[5].Controls[0]).Text;
cmd.Parameters.Add("@Tuesday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[6].Controls[0]).Text;
cmd.Parameters.Add("@Wednesday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[7].Controls[0]).Text;
cmd.Parameters.Add("@Thursday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[8].Controls[0]).Text;
cmd.Parameters.Add("@Friday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[9].Controls[0]).Text;
cmd.Parameters.Add("@Saturday", SqlDbType.Decimal).Value = ((TextBox)GridView1.Rows[0].Cells[10].Controls[0]).Text;
cmd.Parameters.Add("@ID", SqlDbType.Int).Value = Convert.ToInt32(GridView1.Rows[e.RowIndex].Cells[1].Text);
cmd.Connection = con;
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
GridView1.EditIndex = -1;
BindData();
ythisbug
11-Dec-12 1:26am
View
thank you..
am getting error..
literal does not contain a defination for selecteditem or no extension method..??
ythisbug
10-Dec-12 6:16am
View
i tried ur code.but no output only..
i tried this code bt am getting 3 rows
here is my code..
in gridview row created event
headerCell = new TableCell();
headerCell.Text = (dt.AddDays(1 - (int)dt.DayOfWeek)).ToShortDateString();
// headerCell.Text = dt.AddDays(0).DayOfWeek.ToString();
HeaderGridRow.Cells.Add(headerCell);
headerCell = new TableCell();
headerCell.Text = (dt.AddDays(2 - (int)dt.DayOfWeek)).ToShortDateString();
HeaderGridRow.Cells.Add(headerCell);
headerCell = new TableCell();
headerCell.Text = (dt.AddDays(3 - (int)dt.DayOfWeek)).ToShortDateString();
HeaderGridRow.Cells.Add(headerCell);
headerCell = new TableCell();
headerCell.Text = (dt.AddDays(4 - (int)dt.DayOfWeek)).ToShortDateString();
HeaderGridRow.Cells.Add(headerCell);
headerCell = new TableCell();
headerCell.Text = (dt.AddDays(5 - (int)dt.DayOfWeek)).ToShortDateString();
HeaderGridRow.Cells.Add(headerCell);
headerCell = new TableCell();
headerCell.Text = (dt.AddDays(6 - (int)dt.DayOfWeek)).ToShortDateString();
HeaderGridRow.Cells.Add(headerCell);
GridView1.Controls[0].Controls.AddAt(0, HeaderGridRow);
can any one suggest me wat is the error..
am getting 3 rows ..i mean its adding 3 rows for same date in header
like
12/10/2012...........12/15/2012
12/10/2012...........12/15/2012
12/10/2012...........12/15/2012
ythisbug
10-Dec-12 6:13am
View
Deleted
ur code i tried bt its displaying Only Day name...
ythisbug
10-Dec-12 5:00am
View
Porblem is in header i want to set date in grid..like i want to add 6 days from monday to satturday..tat date i want to disply it in grid header..
ythisbug
10-Dec-12 0:20am
View
thank you.but am not able to use lblMonday in code..so m not sure that wethr we can use grid header like label to bind days of week..
ythisbug
5-Dec-12 7:02am
View
thank you..but this i used before..it will disply same dates in all labels..i want to dispay mondy date in mondays label..
ythisbug
27-Nov-12 23:18pm
View
thanks you so much..have a nice day.
ythisbug
27-Nov-12 23:13pm
View
thanks krunal..bt i need c# code..
ythisbug
27-Nov-12 23:12pm
View
Deleted
thanks krunal..bt i need c# code..
ythisbug
17-Nov-12 1:16am
View
Deleted
thanks sanjay ..but also not working..
ythisbug
16-Nov-12 23:46pm
View
Deleted
thank you sanjay..
DelFieldValue should b either 1 or 0...
ythisbug
30-Oct-12 5:05am
View
and enumeration yielded no results...
ythisbug
30-Oct-12 5:05am
View
if i use like tat query while selecting rowcommand am gettin error there is no row at the position 0..
ythisbug
30-Oct-12 5:00am
View
yes your rite thank you
ythisbug
30-Oct-12 4:57am
View
thanks its working but while selecting row command to edit its comming error "there is no row at the position 0"....
ythisbug
30-Oct-12 3:23am
View
while executing am giving value as 66 tat id is related in all three tables..
ythisbug
30-Oct-12 3:23am
View
thanks for ur reply ..i modified question
ythisbug
30-Oct-12 3:12am
View
this sp will retrieve records from related to ID..while saving records in tblQuestionnaire adding tblDocumentMasters dmID and in QuestionnaireSub adding qsTPRID as tblQuestionnaires quesTPRID..so am not retrieving records while executing..
ythisbug
5-Sep-12 7:50am
View
ok thanks for ur suggestion
ythisbug
5-Sep-12 7:44am
View
thanks.again wat u want me to clear?means i dont want to show in table .i want to display records without table.like line by line like tree view
ythisbug
5-Sep-12 7:43am
View
how to do tat .can u suggest me
ythisbug
5-Sep-12 2:11am
View
ok thank u
ythisbug
5-Sep-12 2:11am
View
ok thank u
ythisbug
29-Aug-12 6:54am
View
am using dynamic in my project.thanks
ythisbug
24-Aug-12 1:58am
View
Deleted
thanks sandip..in this artical am getting error for iTextSharp.text.pdf.PdfTable doesnot contain a defination for AddCell
and for this line
PdfTable PdfTable=new PdfTable(dt.Columns.Count);
iTextSharp.text.pdf.PdfTable doesnot contain a constructor dat takes 1 argument
ythisbug
22-Aug-12 3:06am
View
see my solution
ythisbug
22-Aug-12 2:41am
View
@Srinath
simple idea is add column to perticular table and save field as columnTablename in that field add ur table name.and bind to dropdown as columntable name field and click export then u can get details..try this solution to export to excel.
ythisbug
16-Aug-12 2:27am
View
here am getting error cannot find table 0.
ythisbug
12-Aug-12 8:31am
View
thanks and how can i display message if perticular Name not found in datagrid?
ythisbug
12-Aug-12 8:07am
View
Deleted
thanks ..but in that table image is also der as binary.so while entering name showing record bt values r not displying..?
ythisbug
28-Jul-12 5:27am
View
thanks sathish
ythisbug
28-Jul-12 5:13am
View
sqlcommand.Parameters.Add(new SqlParameter("@UserID", Session["uid"].ToString()));
this line for Session ..
ythisbug
28-Jul-12 5:06am
View
for Session am getting error used like a DotMan.Session is a namespace but used like a variable
ythisbug
28-Jul-12 3:58am
View
Deleted
@UserID how to pass the id??and how to give value for this?
ythisbug
28-Jul-12 2:34am
View
i just want to increment using compute(max)
ythisbug
28-Jul-12 2:31am
View
Deleted
thanks ashish i updated question..please check.i want to display records from tblTable1 when user login with their linUserDetailsID related to dat id i want to display records in grid
ythisbug
28-Jul-12 0:47am
View
no its not working?i tried tat code
ythisbug
24-Jul-12 1:04am
View
ya same i did before only..
ythisbug
23-Jul-12 7:14am
View
how to use compute method in this answer??
ythisbug
23-Jul-12 5:40am
View
deren its not adding wat to do..?
ythisbug
23-Jul-12 5:00am
View
Deleted
thank you
ythisbug
23-Jul-12 4:59am
View
now working small changes have to do row[0]
ythisbug
23-Jul-12 4:26am
View
no its not incrementing know..newly added row adding as 1 only
ythisbug
23-Jul-12 3:46am
View
ok thanks i will try
ythisbug
23-Jul-12 3:25am
View
sorry not dataset ..datatable dtBidtree
ythisbug
23-Jul-12 3:02am
View
in .net side
ythisbug
23-Jul-12 3:02am
View
while editing am calling delete function den am inserting data.am using sp to insert data via for loop..and with the help of dataset dtBidtree
ythisbug
23-Jul-12 2:40am
View
thanks sderen. can u suggest me more about this answer..i think in your post i will get answer.
ythisbug
23-Jul-12 2:33am
View
ya :) for that only i din knew how to ask so thout reader will suggest me..thank you
ythisbug
23-Jul-12 2:07am
View
again wat have to modify graus...??
ythisbug
23-Jul-12 2:00am
View
i updated my question.thank u
ythisbug
23-Jul-12 1:59am
View
thank you i updated
ythisbug
23-Jul-12 1:42am
View
Deleted
means you din understand my question?
ythisbug
23-Jul-12 1:15am
View
thanks sandeep..this all i tried before.:) thanks again
ythisbug
22-Jul-12 7:24am
View
thanks sandeep..but i tried more than three sample project for saving image in database..bt its not working.or just give me link simple and easy
ythisbug
22-Jul-12 7:09am
View
and again i tried another example
http://www.redmondpie.com/inserting-in-and-retrieving-image-from-sql-server-database-using-c/
for this am getting error same as above..Instance failure
ythisbug
22-Jul-12 7:08am
View
ya same .
ythisbug
22-Jul-12 7:01am
View
aday that spelling mistake.its ythisbug
ythisbug
22-Jul-12 5:12am
View
thanks sandeep..but in other forms save and retrieving data to datagrid working fine..for this form only error..
ythisbug
22-Jul-12 5:09am
View
no while running project am egging this imagefromdatabase error instance failure and while saving instance failure
ythisbug
22-Jul-12 4:58am
View
error is the samne.am retrieving table data in gridview so i set table name
ythisbug
11-Jul-12 7:16am
View
i removed parameter now working but..i want report from within two textbox..for that any idea..
ythisbug
11-Jul-12 7:11am
View
ya thanks
ythisbug
11-Jul-12 6:05am
View
thanks
am getting error for this line..
invalid index...
crParameterFieldDefinition = crParameterFieldDefinitions["tblPurchase"];
ythisbug
11-Jul-12 5:38am
View
Deleted
thanks
am getting error
in this line as load failed
cryRpt.Load("C:\\Users\admin\\Documents\\Visual Studio 2008\\Projects\\WindowsFormsApplication1\\WindowsFormsApplication1\\CrystalReport1.rpt");
ythisbug
11-Jul-12 4:31am
View
thanks i want c# code..this vb know
ythisbug
11-Jul-12 1:34am
View
no shemeer.not solved.thanks for ur reply
ythisbug
10-Jul-12 13:29pm
View
ok thank u kiran
ythisbug
10-Jul-12 12:01pm
View
ya dsEmployee is null..better solution for this?
ythisbug
10-Jul-12 11:42am
View
thanks .not der can u suggest me.acually am using datagrid..
ythisbug
10-Jul-12 11:21am
View
DataTable dtEmployee = dsEmployee.Tables["tblTicketing"].Copy();
this line am getting error
ythisbug
10-Jul-12 11:21am
View
DataTable dtEmployee = dsEmployee.Tables["tblTicketing"].Copy();
in this line am getting error..
is dat code is correct?
ythisbug
10-Jul-12 0:49am
View
ya ur rite..thanks SA
ythisbug
9-Jul-12 10:54am
View
ok thanks
ythisbug
9-Jul-12 10:29am
View
ok which component should i select..and which reference should i add???
ythisbug
9-Jul-12 10:20am
View
ya sandeep tat class already there in my code..but dont know y that error coming.
ythisbug
9-Jul-12 9:03am
View
any solution for this??
ythisbug
9-Jul-12 8:56am
View
ya ur rite am reffering sandeep.
ythisbug
9-Jul-12 8:52am
View
type or namespace name 'PageOffsetList could not found (are u missing directive or an assembly reference"?
ythisbug
9-Jul-12 8:51am
View
http://stackoverflow.com/questions/2825771/how-can-we-do-paging-in-datagridview-in-winform
am trying this artical for gridpaging
ythisbug
9-Jul-12 8:48am
View
thanks..tat already i declared but also comng error
ythisbug
9-Jul-12 6:33am
View
ya i tried thanks
ythisbug
9-Jul-12 5:55am
View
//dateTimePicker1.CustomFormat = "MM,dd,yyyy";
ya i tried like this
ythisbug
9-Jul-12 5:49am
View
thanks but this format is displaying like "july 29.2012 Monday "
ythisbug
9-Jul-12 2:54am
View
can u show us code how u tried for print?tat we can help u?
ythisbug
7-Jul-12 1:44am
View
thanks..i mean to say i want to add one more table to join in that query tblCategorySub with subcID is column name..if any doubt..reply
ythisbug
6-Jul-12 2:47am
View
thanks prasad
ythisbug
5-Jul-12 2:13am
View
ok thanks..in my table btID is pmkey.
ythisbug
4-Jul-12 2:45am
View
Deleted
u mean to after log in then tat password should display in textbox after redirecting to other page text box is it??
ythisbug
4-Jul-12 1:52am
View
your rite its assigning already used nodeid once again..can u suggest me again wat have to do
ythisbug
4-Jul-12 1:24am
View
thanks i will check
ythisbug
1-Jul-12 11:21am
View
that answer for web apllication
ythisbug
1-Jul-12 9:21am
View
actually i din know. tat was in asp.net so i tagged as asp.net
ythisbug
1-Jul-12 7:45am
View
thanks for ur effort .am doing project in asp.net as winform application
for example
File->New->Project->VisualC#->Windows Forms Application
ythisbug
29-Jun-12 0:40am
View
ok so wat u have to do is..in page load
If(!IsPostBack)
{
BindGrid();
//this will display records from database to grid
}
then in save click button after your save query
BindGrid();
just try this..hope it will work 100%
ythisbug
28-Jun-12 3:09am
View
thank u
ythisbug
28-Jun-12 3:09am
View
thanks for ur reply
ythisbug
27-Jun-12 0:53am
View
Deleted
hi thanks but am getting this error "an object reference is required for non static field method or property,object.GetType()"..am getting this error.
ythisbug
26-Jun-12 8:12am
View
thanks..already i coded.but i want to write function inside tat usercontrol which i created to show data from database
ythisbug
26-Jun-12 7:24am
View
how to write a function inside usercontrol to show data from database..
??
ythisbug
24-Jun-12 7:25am
View
ya so any solution.thanks
ythisbug
23-Jun-12 1:50am
View
tat vb rite..and how to convert vb to c#..in google it will available rite..thanks
ythisbug
23-Jun-12 1:31am
View
ya in winform application only i want to display total in grid.
ythisbug
23-Jun-12 1:09am
View
oh ..just click new ->project->Visual C#->Windows Form application..just c u will find.
thanks
ythisbug
20-Jun-12 11:10am
View
thanks dude..modify ur asnwer i will accept..thanks again
ythisbug
20-Jun-12 10:58am
View
thanks ryan if i use "\" am getting error "unrecognised escape sequence"..
ythisbug
20-Jun-12 2:24am
View
sry i dint understand wat u said
ythisbug
20-Jun-12 2:23am
View
ALTER PROCEDURE [dbo].[usp_GetTPR1Details]
@DID varchar(10),
@DocType varchar(4)
AS BEGIN
Select * from tblStockDetails,tblStockHeader,tblTender,tblBidTree
where btDID=@DID and btDocType=@DocType and sdDID=@DID and sdDocType=@DocType and tndDID=@DID and tndDocType=@DocType
like this i tried
ythisbug
20-Jun-12 2:17am
View
thanks griff..bt also not getting values
ythisbug
17-Jun-12 5:20am
View
am using 3 tier.
ythisbug
17-Jun-12 3:53am
View
ok.so web site is c# code and windows form application is vb code rite??that s the difference.and we can converty c# code to vb code rite?
ythisbug
17-Jun-12 3:47am
View
i used class files and stored procedures ajax,etc..can u tel me breifly wat code can i give u that u will get to know?
ythisbug
17-Jun-12 3:36am
View
k thanks abhinav
ythisbug
15-Jun-12 6:23am
View
thanks zoltan..but i don knw how to save many nodes in single query..i gues by loop we can??
ythisbug
15-Jun-12 4:57am
View
objTPRPL1 is PL class..and changing in a batch..
ythisbug
15-Jun-12 0:35am
View
this is InsertBidTree in Dal class
public void InsertBidTree(TenderPreparationPL objTPRPL1)
{
SqlCommand cmd = new SqlCommand();
SqlConnection con = new SqlConnection("Data Source=accerlap2;Initial Catalog=Tendering2;User ID=sa;Password=p@ssword;");
con.Open();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "usp_InsertBidTree1";
cmd.Connection = con;
SqlParameter paraDID = new SqlParameter("@DID", SqlDbType.VarChar, 20);
SqlParameter paraDocType = new SqlParameter("@DocType", SqlDbType.VarChar, 4);
SqlParameter paraNodeID = new SqlParameter("@NodeID", SqlDbType.Int);
SqlParameter paraParentNodeID = new SqlParameter("@ParentNodeID", SqlDbType.Int);
SqlParameter paraName = new SqlParameter("@Name", SqlDbType.VarChar, 50);
SqlParameter paraType = new SqlParameter("@Type", SqlDbType.VarChar, 50);
SqlParameter paraDetals = new SqlParameter("@Details", SqlDbType.VarChar, 1000);
paraDID.Direction = ParameterDirection.Output;
paraDocType.Value = objTPRPL1.btDocType;
paraNodeID.Value = objTPRPL1.btNodeID;
paraParentNodeID.Value = objTPRPL1.btParentNodeID;
paraName.Value = objTPRPL1.btName;
paraType.Value = objTPRPL1.btType;
paraDetals.Value = objTPRPL1.btDetails;
cmd.Parameters.Add(paraDID);
cmd.Parameters.Add(paraDocType);
cmd.Parameters.Add(paraNodeID);
cmd.Parameters.Add(paraParentNodeID);
cmd.Parameters.Add(paraName);
cmd.Parameters.Add(paraType);
cmd.Parameters.Add(paraDetals);
cmd.ExecuteNonQuery();
objTPRPL1.btDID = paraDID.Value.ToString();
con.Close();
}
ythisbug
14-Jun-12 7:35am
View
i posted another question.please check
ythisbug
14-Jun-12 6:52am
View
am using tree nodes so if i add more than three nodes tat name should be added can u suggest me how to do this?
ythisbug
14-Jun-12 6:50am
View
now am getting error for @Name..actually i don know how to place in loop if there more than 3 records for same name..can u suggest me?
ythisbug
14-Jun-12 6:39am
View
no dear
ythisbug
14-Jun-12 6:16am
View
but also same error for ParentNodeID
ythisbug
14-Jun-12 6:12am
View
ya ur rite.bt i modified after posting artical
ythisbug
14-Jun-12 6:01am
View
Deleted
i removed output so now am getting error for @DID
ythisbug
14-Jun-12 5:34am
View
thanks but error is da same..
ythisbug
14-Jun-12 5:14am
View
thanks joshi
ythisbug
13-Jun-12 1:16am
View
or suggest me the way u think..thanks
ythisbug
8-Jun-12 13:20pm
View
no dont have server..i want to publish web application ..are you asking where you could upload your site to?(yes am asking)
ythisbug
8-Jun-12 5:42am
View
thanks can u explain me,.wat is TestID,TestValue ?
ythisbug
6-Jun-12 2:44am
View
int val;
(Int32.TryParse(bjDFPropTemp.dfFieldValue, out val) && val > 0)
where to declare this..thanks
ythisbug
6-Jun-12 2:39am
View
as u said i tried like this
else if ((objDFPropTemp.dfFieldType == "money") || (objDFPropTemp.dfFieldType == "decimal"))
{
if (objDFPropTemp.dfFieldValue != null)
{
//txt.Text = ((decimal)objDFPropTemp.dfFieldValue).ToString();
txt.Text = objDFPropTemp.dfFieldValue.ToString();
}
}
else
txt.Text = (string)objDFPropTemp.dfFieldValue;
}
//but again in another line am getting error .error is same cast is not valid
if (objDFPropTemp.dfFieldType == "int")
{
// if ((objDFPropTemp.dfFieldValue != null) && ((int)objDFPropTemp.dfFieldValue > 0))
if((objDFPropTemp.dfFieldValue != null) && ((int)objDFPropTemp.dfFieldValue > 0))//this line am getting error now
{
if (objDFPropTemp.dfControlValue.Contains("["))
{
DataSet ds = new DataSet();
string varSubField = string.Empty;
string varField = string.Empty;
varSubField = objDFPropTemp.dfControlValue.Substring(objDFPropTemp.dfControlValue.IndexOf("[") + 1, objDFPropTemp.dfControlValue.IndexOf("]") - objDFPropTemp.dfControlValue.IndexOf("[") - 1);
varField = objDFPropTemp.dfControlValue.Substring(0, objDFPropTemp.dfControlValue.IndexOf("["));
string controlTable = objDFPropTemp.dfControlTable;
int id = (int)objDFPropTemp.dfFieldValue;
SISTextBoxPopupBLL sISTextBoxPopupBLL = new SISTextBoxPopupBLL();
ds = sISTextBoxPopupBLL.GetTextBoxDataByID(id, controlTable);
if (ds != null)
{
if (ds.Tables[0].Rows.Count == 1)
{
string fieldText = ds.Tables[0].Rows[0][varField].ToString();
int fieldValue = Convert.ToInt32(ds.Tables[0].Rows[0][varSubField]);
txt.Text = fieldText.ToString();//((int)(objDFPropTemp.dfFieldValue)).ToString();
txt.Attributes.Add("ID", fieldValue.ToString());
}
}
}
else
{
txt.Text = ((int)(objDFPropTemp.dfFieldValue)).ToString();
}
}
}
else if (objDFPropTemp.dfFieldType == "datetime")
{
if (objDFPropTemp.dfFieldValue != null)
{
txt.Text = ((DateTime)objDFPropTemp.dfFieldValue).ToShortDateString();
}
}
else if (objDFPropTemp.dfFieldType == "bit")
{
if (objDFPropTemp.dfFieldValue != null)
{
txt.Text = ((bool)(objDFPropTemp.dfFieldValue)).ToString();
}
}
else if ((objDFPropTemp.dfFieldType == "money") || (objDFPropTemp.dfFieldType == "decimal"))
{
if (objDFPropTemp.dfFieldValue != null)
{
//txt.Text = ((decimal)objDFPropTemp.dfFieldValue).ToString();
txt.Text = objDFPropTemp.dfFieldV
ythisbug
6-Jun-12 2:27am
View
DynaControlsPL objDFPropTemp = (DynaControlsPL)gListDynamicControls[i];
and dfFiedlValue is column name from dynamicform..am using dynamic in my class
ythisbug
6-Jun-12 2:26am
View
am calling class
DynaControlsPL objDFPropTemp = (DynaControlsPL)gListDynamicControls[i];
ythisbug
6-Jun-12 2:26am
View
Deleted
DynaControlsPL objDFPropTemp = (DynaControlsPL)gListDynamicControls[i];
this is the class from dynacontrolsPL
ythisbug
6-Jun-12 2:14am
View
thanks
but if i do as u say i will get error for other line
if ((objDFPropTemp.dfFieldValue != null) && ((int)objDFPropTemp.dfFieldValue > 0))
for this line also same error i will get
ythisbug
5-Jun-12 5:21am
View
thanks zoltan
in my project am saving additional tab records to one table and grid records to another table so am getting error??is it??
ythisbug
5-Jun-12 4:34am
View
thanks sandeep
ythisbug
4-Jun-12 7:11am
View
once again thanks richard
ythisbug
4-Jun-12 6:56am
View
and wat about if i create project in asp.net?like file-> new-> Project..in this i can create shortcut login page in desktop?
ythisbug
4-Jun-12 6:42am
View
thanks richard
ythisbug
4-Jun-12 5:36am
View
yes tat i can create login shortcut file in my desktop,..
ythisbug
2-Jun-12 1:08am
View
thanks rushi i will try.thanks again
ythisbug
2-Jun-12 0:34am
View
created web application...website..for that we can do like window application??
ythisbug
30-May-12 5:43am
View
thanks sandeep
ythisbug
28-May-12 7:10am
View
thanks u sandeep.i will try
ythisbug
28-May-12 1:25am
View
thanks.
i put breakpoint in lbl1,lbl2,lbl3 value coming null..
and in grdTotal1,grdTotal2,grdTotal3 getting value.
ythisbug
28-May-12 0:50am
View
thanks for ur reply..
lbl1.Text = grdTotal1.ToString("c");
am getting error in this line..
ythisbug
27-May-12 2:36am
View
thanks sandeep i will try..
ythisbug
26-May-12 8:48am
View
Deleted
ya i set to LoginName ..
now am getting another error as connection string property is not been initialized..
in my sp
public LoginPL ChangePassword(LoginPL objPL)
{
SqlConnection con = new SqlConnection();
//con.ConnectionString = ConfigurationManager.ConnectionStrings["MyConStr1"].ConnectionString;
SqlCommand cmd = new SqlCommand();
cmd.Connection = con;
con.Open();
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = "usp_CheckPassword";
SqlParameter paramName = new SqlParameter("@name", SqlDbType.VarChar, 50);
paramName.Value = objPL.lnLoginName;
paramName.Direction = ParameterDirection.Input;
cmd.Parameters.Add(paramName);
SqlParameter paramNewPassword = new SqlParameter("@newPassword", SqlDbType.VarChar, 50);
paramNewPassword.Value = objPL.newPassword;
paramNewPassword.Direction = ParameterDirection.Input;
cmd.Parameters.Add(paramNewPassword);
SqlParameter paramSuccess = new SqlParameter("@Success", SqlDbType.Bit);
paramSuccess.Direction = ParameterDirection.Output;
cmd.Parameters.Add(paramSuccess);
cmd.ExecuteNonQuery();
con.Close();
objPL.isSuccess = Convert.ToBoolean(paramSuccess.Value);
return objPL;
}
ythisbug
25-May-12 0:34am
View
lblTotalCash.Text = pSum.Value.ToString();
THIS LINE AM GETTING ERROR
ythisbug
24-May-12 12:18pm
View
here total contains??column name??
ythisbug
24-May-12 6:52am
View
no its not working
ythisbug
24-May-12 6:44am
View
i tried but its not happening
ythisbug
24-May-12 6:43am
View
u mean to say in delete button click also have to call dat bind dropdown?
ythisbug
18-May-12 5:01am
View
ok thanks dude i will
ythisbug
18-May-12 2:20am
View
Deleted
and am getting error
WHERE csDate BETWEEN @startdate AND @enddate
ythisbug
18-May-12 2:18am
View
Deleted
hi thanks..how to declare @stardate and @enddate wat datatype should i give?
ythisbug
18-May-12 1:23am
View
hi i put breakpoint and checked in layoutPosition its showing as undefined..
so can u tel me where have to change?
ythisbug
17-May-12 2:00am
View
thanks
ythisbug
17-May-12 2:00am
View
thanks for ur suggestion
ythisbug
17-May-12 2:00am
View
thanks for ur suggestion
ythisbug
17-May-12 2:00am
View
ok thank u
ythisbug
17-May-12 0:56am
View
ya thanks mika
Show More