15,892,005 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 Jawad Ahmed Tanoli (Top 96 by date)
Jawad Ahmed Tanoli
9-Nov-17 11:45am
View
have you try this link
http://www.mahonri.info/cgi/uuid.cgi
Jawad Ahmed Tanoli
5-Dec-16 7:22am
View
https://msdn.microsoft.com/en-us/library/ms971497
Jawad Ahmed Tanoli
30-Nov-16 6:00am
View
https://www.codeproject.com/articles/106461/back-to-basics-get-client-computer-name-in-asp-net
Jawad Ahmed Tanoli
29-Nov-16 2:20am
View
this is your all code any other loop there??
Jawad Ahmed Tanoli
29-Nov-16 2:15am
View
you try this one?
foreach (string id in splittedId )
{
var dataModel1 = ManagerFactory.Instance.CustomerManager.GetCustomerByIdList(int.Parse(site), id);
dataModel.Data1.DtoList.Add(dataModel1.Data1.DtoList);
}
can you read the error what is that?
Jawad Ahmed Tanoli
29-Nov-16 2:13am
View
you debug it ? same problem your facing it is not appending new data in dataModel right?
Jawad Ahmed Tanoli
28-Nov-16 5:01am
View
you should try like this
DateTimePicker seancepicker = new DateTimePicker();
DGVabsence.Rows[0].Cells[k].Value = seancepicker.Value;
Jawad Ahmed Tanoli
24-Nov-16 7:16am
View
if you want to display Group by Title
you can't put Group by in this table.title may be same but other fields are different you get every time all rows to show .
Jawad Ahmed Tanoli
24-Nov-16 7:04am
View
what error it display you
Jawad Ahmed Tanoli
24-Nov-16 6:59am
View
in your table id is unique
List<pic> sb = (from x in myEnt.Pic where x.ID == id select x).ToList();
it will return you one row .so put title in where x.title=="flower"
Jawad Ahmed Tanoli
18-Nov-16 8:08am
View
you Welcome
Jawad Ahmed Tanoli
18-Nov-16 7:53am
View
you try to debug the code ? try to check Records in DataTable dt? and and also check SessionHelper.User.ID value
Jawad Ahmed Tanoli
18-Nov-16 7:50am
View
try like this
Response.Redirect("~/RM/Admin/Offer.aspx")
Jawad Ahmed Tanoli
7-Oct-16 3:48am
View
what is your Query result? i think result is same as you required
Jawad Ahmed Tanoli
28-Sep-16 4:21am
View
Thanks for reply i remove manually MemoryManagement class and test it again .
Jawad Ahmed Tanoli
11-May-16 2:21am
View
Check in your spam
Jawad Ahmed Tanoli
22-Apr-16 6:15am
View
check your Dataset how many tables load in it.
Jawad Ahmed Tanoli
19-Apr-16 3:21am
View
which line is generating error?
int value = Convert.ToInt32(score); may be there have you try debug what is in score string?
Jawad Ahmed Tanoli
22-Feb-16 6:43am
View
insert into db1.dbo.country
Do not include auto generate column if you want your table to create it for your self
Select ColumnB,ColumnC,,,,,,,,,,,, from db2.dbo.country
Jawad Ahmed Tanoli
22-Feb-16 6:30am
View
autogenerate key is in both tables ? you want to keep the db2 country table same id in db1 country table or not ?
Jawad Ahmed Tanoli
22-Feb-16 3:39am
View
show some code
Jawad Ahmed Tanoli
16-Feb-16 6:36am
View
question is not clear what you want to do on tabPage click want to get text of tabpage?
Jawad Ahmed Tanoli
2-Feb-16 9:15am
View
select * from (select Cars.Car_id,convert(varchar, Change_date,101) as Change_date , Service_Type.Servce_desc, Current_dist,Prev_distance as Prev_dist,(Current_dist - Prev_distance) as Change_dist,value_Tashhem as Value,NULL as [Qty] from Tashhem s1 inner join cars on s1.Car_id= Cars.Car_id inner join Service_Type on s1.Servce_id = Service_Type.Servce_id where s1.Car_id = 555 and s1.Change_date between 1-1-2000 and 1-1-2016
union
select Cars.Car_id,convert(varchar, Change_date,101) as Change_date, Service_Type.Servce_desc,Current_Dist as Current_dist,Prev_Dist as Prev_dist,(Current_dist - Prev_Dist) as Change_dist,Value_Oil as Value,QTY as Qty from Change_Oil s1 inner join cars on s1.Car_id= Cars.Car_id inner join Service_Type on s1.Servce_id = Service_Type.Servce_id where s1.Car_id =555 and s1.Change_date between 1-1-2000 and 1-1-2016
union
select Cars.Car_id,convert(varchar, Change_Date,101) as Change_date, Service_Type.Servce_desc,Current_dist ,Prev_dist ,(Current_dist - Prev_dist) as Change_dist,Value_Fuel as Value,Qty from Full_Fuel s1 inner join cars on s1.Car_id= Cars.Car_id inner join Service_Type on s1.Servce_id = Service_Type.Servce_id where s1.Car_id =555 and s1.Change_date between 1-1-2000 and 1-1-2016
union
select Cars.Car_id,convert(varchar, Change_date,101) as Change_date, Service_Type.Servce_desc,Current_dist ,Prev_dist ,(convert(float,Current_dist) - convert(float,Prev_dist)) as Change_dist,value_tire as Value,NULL as [Qty] from Change_Tire s1 inner join cars on s1.Car_id= Cars.Car_id inner join Service_Type on s1.Servce_id = Service_Type.Servce_id where s1.Car_id =555 and s1.Change_date between 1-1-2000 and 1-1-2016
union
select Cars.Car_id,convert(varchar, Change_Date,101) as Change_date, Service_Type.Servce_desc,Current_dist ,Prev_dist ,(convert(float,Current_dist) - convert(float,Prev_dist)) as Change_dist,Value_Batteries as Value,NULL as [Qty] from Change_Batteries s1 inner join cars on s1.Car_id= Cars.Car_id inner join Service_Type on s1.Servce_id = Service_Type.Servce_id where s1.Car_id =555 and s1.Change_date between 1-1-2000 and 1-1-2016
union
select Auto_Parts.Car_id,convert(varchar, Auto_Parts.Change_date,101) as Change_date,Service_Type.Servce_desc,Auto_Parts.Current_dist,Auto_Parts.Prev_dist,(convert(float,Current_dist) - convert(float,Prev_dist)) as Change_dist,(s1.Value_Part) as Value,NULL as [Qty] from Auto_Part_Details s1 inner join Auto_Parts on s1.Job_Card = Auto_Parts.Job_Card inner join Service_Type on Auto_Parts.Servce_id = Service_Type.Servce_id where Auto_Parts.Car_id = 555 and Auto_Parts.Change_date between 1-1-2000 and 1-1-2016) as t order by t.Change_date
Jawad Ahmed Tanoli
2-Feb-16 9:10am
View
there is no union in your query
try
order by convert(varchar, Auto_Parts.Change_date,101)
Jawad Ahmed Tanoli
2-Feb-16 3:44am
View
you can do in query ?where is problem
Jawad Ahmed Tanoli
2-Feb-16 3:08am
View
Get html from db and assign like control.innerHTML ='your html' on client side
Jawad Ahmed Tanoli
21-Dec-15 5:06am
View
can i see your project over team viewer?
Jawad Ahmed Tanoli
21-Dec-15 4:16am
View
Yes the response which you received on button click this response is not correct format of html you can check
alert(response); while in code where your creating table you have to return response.write(html);
Jawad Ahmed Tanoli
21-Dec-15 3:31am
View
it means there is no postback try to check your response html is it in correct format or try this line and see it also disappear or not
$('#container').html('<p> Your record successfully saved</p>');
Jawad Ahmed Tanoli
21-Dec-15 3:20am
View
try to put same function in document.ready to load html again or check with alert weather it is reloading or not?
Jawad Ahmed Tanoli
21-Dec-15 3:18am
View
url: "CS.aspx/SaveUser" is this in another page returning html or on same page? because mostly happens due to page reload
Jawad Ahmed Tanoli
21-Dec-15 3:09am
View
is page do post back on button click ?
Jawad Ahmed Tanoli
10-Dec-15 6:49am
View
what is datatype of DOB in database ?
Jawad Ahmed Tanoli
3-Dec-15 1:15am
View
Thanks for reply :)
Jawad Ahmed Tanoli
2-Dec-15 1:50am
View
no just want to know weather this process can be done through c# or not.As we all know SQL INSERT QUERY can be written in different ways like EXEC('YOUR QUERY') etc.
Jawad Ahmed Tanoli
2-Dec-15 1:46am
View
it is just an example there may be number of queries with different table name columns name and values.the result may be number of columns and there values does not matter including comma or not
Jawad Ahmed Tanoli
1-Dec-15 7:34am
View
you must define your datatable with datatype like this
DataTable workTable = new DataTable("Customers");
DataColumn workCol = workTable.Columns.Add("CustID", typeof(Int32));
workCol.AllowDBNull = false;
workCol.Unique = true;
workTable.Columns.Add("CustLName", typeof(String));
workTable.Columns.Add("CustFName", typeof(String));
workTable.Columns.Add("Purchases", typeof(Double));
Jawad Ahmed Tanoli
1-Dec-15 7:30am
View
it means your DialledDuration is string datatype how many columns in your datatable
Jawad Ahmed Tanoli
1-Dec-15 5:42am
View
ok i will remove old solution thanks for suggestion
Jawad Ahmed Tanoli
1-Dec-15 5:31am
View
check my new solution
Jawad Ahmed Tanoli
1-Dec-15 4:43am
View
Share your query
Jawad Ahmed Tanoli
1-Dec-15 4:40am
View
Deleted
share your Query
Jawad Ahmed Tanoli
30-Nov-15 6:59am
View
is it windows form or asp.net application?
Jawad Ahmed Tanoli
24-Nov-15 7:36am
View
What is resultSet? how many columns in your datatable.
DataTable dt=new DataTable();
dt.Columns.Add("FName");
dt.Rows.Add(new object[] {"xyz" });
Jawad Ahmed Tanoli
24-Nov-15 2:17am
View
you can use Array.Copy Method
Jawad Ahmed Tanoli
23-Nov-15 0:41am
View
can you share your error during conversion and code
Jawad Ahmed Tanoli
13-Mar-15 2:42am
View
Deleted
what kind of VPN setup is rquired on server side or client side?
Jawad Ahmed Tanoli
16-Feb-15 11:01am
View
so where is problem ? if it remind you after some time
Jawad Ahmed Tanoli
10-Feb-15 9:03am
View
Where you want to add space?
Jawad Ahmed Tanoli
25-Nov-14 10:36am
View
Thank you very much :) now i have a way to go on :P but if any one of field is missing like Referer or host then it will not work .any how in my case all fields must be there :)
Jawad Ahmed Tanoli
25-Nov-14 9:29am
View
no it may be come any where in string but each field must contains char(13) new line at the end.
Jawad Ahmed Tanoli
25-Nov-14 8:27am
View
yes like host, Referer, Origin etc
Jawad Ahmed Tanoli
12-Nov-14 10:39am
View
Great Work Alex :) actually due to requirement change we used to get data from website using webbrowser by putting a button on webbrowser control when the user fill all form press the button and get all data to store in to database and for further process this project still running good.
which may be like this string visakind= webBrowser1.Document.GetElementById("VisaKind").GetAttribute("value");
Jawad Ahmed Tanoli
9-Sep-14 11:39am
View
Regex.Replace(System.Text.Encoding.ASCII.GetString(mystring, @"[^0-9a-zA-Z]+", ".");
i am using this but it will replace all characters i want that some character will not be removed
Jawad Ahmed Tanoli
15-Jun-14 5:23am
View
so if choose text files to store data then how should i determine the queries to retrieve data .
Jawad Ahmed Tanoli
15-Jun-14 5:21am
View
the application capture protocols over the server and the table consist of CaptureTime,SourceHwAddress ,DestinationHwAddress,IPType,SourceAddress,DestinationAddress,protocol ,SourcePort ,DestinationPort,ProtocolReadAbleData.
Jawad Ahmed Tanoli
2-Apr-14 10:22am
View
I am doing in this way to read..
foreach (var Xval in list1){
String DrugName= Xval.Elements("{https://secure.newcropaccounts.com/V7/webservices}DrugName").Nodes().Single().ToString();
}
Jawad Ahmed Tanoli
2-Apr-14 8:10am
View
Thanks for briefly reply :)
now what is the best way to read from list1 all nodes ..
Jawad Ahmed Tanoli
1-Apr-14 10:09am
View
it return nothing
Jawad Ahmed Tanoli
31-Mar-14 12:45pm
View
what is root ?
this xml is in string variable.do i need to convert it into some other data type like xml?
Jawad Ahmed Tanoli
31-Mar-14 12:24pm
View
then it will be hard to parse because there must be something unique if you will try to read alphabet only then also make some complex because it includes some other words.try to save multiple message string then observe what is common in all and where you get your desired message in string then it is possible to read accurately.
Jawad Ahmed Tanoli
31-Mar-14 12:15pm
View
so your string pattern can be change every time ?
what did you know that will be common in your message?
Jawad Ahmed Tanoli
31-Mar-14 12:10pm
View
there is a another node rowcount which will tell how many tags of <PatientDrugDetail>
Jawad Ahmed Tanoli
31-Mar-14 12:09pm
View
yes it will be like this <patientDrugDetail> <PatientDrugDetail>some data tags</patientDrugDetail><PatientDrugDetail>some data tags</patientDrugDetail> </patientDrugDetail>
Jawad Ahmed Tanoli
31-Mar-14 11:50am
View
get selected row data from Grid then send it to your delete store procedure First Insert it into your history table then delete it.
Jawad Ahmed Tanoli
31-Mar-14 11:44am
View
hi what you want to do is that when student register his/her self and select multiple subjects you want to save selected subjects with student record?
Jawad Ahmed Tanoli
19-Mar-14 10:46am
View
read this hope it helps you
http://dev.mysql.com/doc/refman/5.1/en/load-data.html
Jawad Ahmed Tanoli
19-Mar-14 10:36am
View
you must provide where file is located like
'c:/worldcitiespop.txt'
Jawad Ahmed Tanoli
19-Mar-14 10:21am
View
Provide your full file path.
Jawad Ahmed Tanoli
19-Mar-14 8:49am
View
if you declare datatable inside button event you will have access to that variable inside that event.if you define it globally you will have access to it in all other events.
Jawad Ahmed Tanoli
19-Mar-14 8:45am
View
Chill60 i just want to post that piece of code.
Jawad Ahmed Tanoli
18-Mar-14 11:51am
View
try these links you can google your self you will easily find and learn.
http://www.codeproject.com/Questions/690560/How-to-store-and-retrieve-images-in-Microsoft-SQL
http://www.dotnetlogix.com/Article/aspnet/194/Save-and-retrieve-image-to-and-from-database-in-aspnet.html
Jawad Ahmed Tanoli
18-Mar-14 11:43am
View
try this
AssignmentGrid.Rows[AssignmentGrid.SelectedIndex].visible=false;
Jawad Ahmed Tanoli
18-Mar-14 11:39am
View
post your code how you bind gridview is it in page load event have you put !postback
Jawad Ahmed Tanoli
18-Mar-14 11:34am
View
is there any error ? or exception
Jawad Ahmed Tanoli
27-Nov-13 11:55am
View
Thanks it help me very much to get start ...
Jawad Ahmed Tanoli
26-Nov-13 13:23pm
View
ASCII can not be converted to some other format to make it easy :)
Jawad Ahmed Tanoli
26-Nov-13 12:35pm
View
yeah i know it can be any thing but what is this how i can read it??
Jawad Ahmed Tanoli
26-Nov-13 12:35pm
View
if you have any idea then kindly help me :) where to start and how start with this to make a readable form :)
Jawad Ahmed Tanoli
26-Nov-13 12:32pm
View
i want to make it readable to store in database it is a machine genrated code
Jawad Ahmed Tanoli
24-Nov-13 6:10am
View
to check
set allow null for RoomNo in table may be there is no value of RoomNo in Query.
Jawad Ahmed Tanoli
24-Nov-13 5:58am
View
Befor inserting into sql table check through debug what is the value of Room No in Query..
Jawad Ahmed Tanoli
22-Nov-13 14:12pm
View
how your loading data from excel to gridview?and what other action your doing on gridview before sending to database just want to check the two cell values to check wether exsist in database table?
Jawad Ahmed Tanoli
22-Nov-13 11:21am
View
is it hudge amount of data in gridiew???
Jawad Ahmed Tanoli
22-Nov-13 11:16am
View
if the datasource is a datatable you can search in that like dt.select("sno='1'") if record exsist then select grid row or clear previous data in grid and assign new datatasource from exsistg datatable..may be helpful
Jawad Ahmed Tanoli
22-Nov-13 11:08am
View
use order by misc_date in your query
Jawad Ahmed Tanoli
22-Nov-13 8:38am
View
No it is not working i already do this it work fine without applying jquery.
Jawad Ahmed Tanoli
22-Nov-13 8:04am
View
you are right my problem was occuring due to missing of sp1 3.5 for campact edition when i install it it work perfect..
Jawad Ahmed Tanoli
1-Sep-13 4:36am
View
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Data.SqlServerCe.NativeMethods.GetKeyInfo(IntPtr pTx, String pwszBaseTable, IntPtr prgDbKeyInfo, Int32 cDbKeyInfo, IntPtr pError)
at System.Data.SqlServerCe.SqlCeDataReader.FillMetaData(SqlCeCommand command)
at System.Data.SqlServerCe.SqlCeCommand.InitializeDataReader(SqlCeDataReader reader, Int32 resultType)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteCommand(CommandBehavior behavior, String method, ResultSetOptions options)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.SqlServerCe.SqlCeCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at SalePurchase.dataBase.GetDataTable(String Query)
at SalePurchase.PurchaserEdit.button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
SalePurchase
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Program%20Files/Default%20Company%20Name/SalePurchaseSetup/SalePurchase.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Data.SqlServerCe
Assembly Version: 3.5.0.0
Win32 Version: 3.5.5386.0
CodeBase: file:///D:/Program%20Files/Default%20Company%20Name/SalePurchaseSetup/System.Data.SqlServerCe.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version:
Jawad Ahmed Tanoli
1-Sep-13 4:34am
View
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitdebugging="true">
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Jawad Ahmed Tanoli
1-Sep-13 4:09am
View
go on buddy and search it if you find some solution then also post here i am dying for this solution and suffering from 7 days..
Jawad Ahmed Tanoli
1-Sep-13 3:34am
View
no it does not work.
the strange thing is that when i install this setup on some other pc just have vs 2008 it does not generate any error work fine.Is there any thing which i have to install on Pc?
but when i install it on client pc which have only .netframework3.5 it only performed insertion and retrieve data from same this method to fill auto complete but it will not work for comboboxes and datagrid.
i am stuck there no idea if i am calling unmanged functions from manged code then it should genrate eroor when i am debugging ...
ok i am now trying to use Visual Studio RemoteDebugger on client pc and see what happend..
Jawad Ahmed Tanoli
31-Aug-13 7:27am
View
DataTable GetDataTable(string Query)
i also used this method to fill autocompletecollectionstring it also work fine there.
but it will not working to display data in combobox datagrid...
every thing is working fine on my pc also i run setup on pc there is no error when i try it on client pc it produce error only insertion and autocompletecollectionstring is working there.
i try it on some other computers result is same...
Jawad Ahmed Tanoli
31-Aug-13 6:57am
View
this is the part that generate error which i use to display the data.
public DataTable GetDataTable(string Query)
{
try
{
coon.Open();
DataTable dt = new DataTable();
cmd = new SqlCeCommand();
cmd.CommandText = Query;
ad = new SqlCeDataAdapter(Query,coon);
ad.Fill(dt);
return dt;
}
catch (Exception ex)
{
throw ex;
}
finally
{
coon.Close();
}
}
Jawad Ahmed Tanoli
31-Aug-13 6:44am
View
//Here is a class that i used for store and retrive data from db
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlServerCe;
using System.Data;
using System.Windows.Forms;
using System.IO;
namespace SalePurchase
{
class dataBase
{
private SqlCeDataAdapter ad;
private SqlCeCommand cmd;
private string StringdbFileName=("Data Source=" + System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\sp.sdf").Replace(@"file:\", "");
private SqlCeConnection coon;
public dataBase()
{
coon = new SqlCeConnection(StringdbFileName);
coon.Close();
}
public int ExecuteSQL(string Query)
{
try
{
coon.Open();
cmd = new SqlCeCommand();
cmd.Connection = this.coon;
cmd.CommandText = Query;
return cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
throw ex;
}
finally
{
coon.Close();
}
}
public DataTable GetDataTable(string Query)
{
try
{
//if (coon.State == ConnectionState.Closed)
//{
// coon.Open();
//}
coon.Open();
DataTable dt = new DataTable();
cmd = new SqlCeCommand();
cmd.CommandText = Query;
ad = new SqlCeDataAdapter(Query,coon);
ad.Fill(dt);
return dt;
}
catch (Exception ex)
{
throw ex;
}
finally
{
coon.Close();
}
}
public void FillComboBox(string Query, string DisplayMember,string ValueMember, ComboBox cmb)
{
try
{
coon.Open();
DataTable dt = new DataTable();
cmd = new SqlCeCommand();
cmd.CommandText = Query;
ad = new SqlCeDataAdapter(Query, coon);
ad.Fill(dt);
cmb.DataSource = dt;
cmb.DisplayMember = DisplayMember;
cmb.ValueMember = ValueMember;
}
catch (Exception ex)
{
throw ex;
}
finally
{
coon.Close();
}
}
}
}
Jawad Ahmed Tanoli
31-Aug-13 6:43am
View
Deleted
//Here is a class that i used for store and retrive data from db
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlServerCe;
using System.Data;
using System.Windows.Forms;
using System.IO;
namespace SalePurchase
{
class dataBase
{
private SqlCeDataAdapter ad;
private SqlCeCommand cmd;
private string StringdbFileName=("Data Source=" + System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase) + "\\sp.sdf").Replace(@"file:\", "");
private SqlCeConnection coon;
public dataBase()
{
coon = new SqlCeConnection(StringdbFileName);
coon.Close();
}
public int ExecuteSQL(string Query)
{
try
{
coon.Open();
cmd = new SqlCeCommand();
cmd.Connection = this.coon;
cmd.CommandText = Query;
return cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
throw ex;
}
finally
{
coon.Close();
}
}
public DataTable GetDataTable(string Query)
{
try
{
//if (coon.State == ConnectionState.Closed)
//{
// coon.Open();
//}
coon.Open();
DataTable dt = new DataTable();
cmd = new SqlCeCommand();
cmd.CommandText = Query;
ad = new SqlCeDataAdapter(Query,coon);
ad.Fill(dt);
return dt;
}
catch (Exception ex)
{
throw ex;
}
finally
{
coon.Close();
}
}
public void FillComboBox(string Query, string DisplayMember,string ValueMember, ComboBox cmb)
{
try
{
coon.Open();
DataTable dt = new DataTable();
cmd = new SqlCeCommand();
cmd.CommandText = Query;
ad = new SqlCeDataAdapter(Query, coon);
ad.Fill(dt);
cmb.DataSource = dt;
cmb.DisplayMember = DisplayMember;
cmb.ValueMember = ValueMember;
}
catch (Exception ex)
{
throw ex;
}
finally
{
coon.Close();
}
}
}
}
Show More