473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Tutorial Video

BB
Hi,
I am trying to create test web page using tutorial

http://download.microsoft.com/downlo...data_final.wmv

I am using northwind.mdb as data source. I am creating simple page
displaying orderid in combobox and displaying corrosponding
orderdetials in grid view. Now when I try to pass parameter to [Order
Details].orderid it gives me type mismatch error.I am just trying to do
same thing as in video example. Any idea what am I doing wrong?
Please Help!!

Jun 27 '06 #1
4 1442
It would help if, instead of a general "what's wrong?" post, you would post
the exact text of the error returned and the source code segment to which
the error message points to.

Please snip out any non-essential code.
Only post the error text and the several lines of code that the error points to.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"BB" <sh******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi,
I am trying to create test web page using tutorial

http://download.microsoft.com/downlo...data_final.wmv

I am using northwind.mdb as data source. I am creating simple page
displaying orderid in combobox and displaying corrosponding
orderdetials in grid view. Now when I try to pass parameter to [Order
Details].orderid it gives me type mismatch error.I am just trying to do
same thing as in video example. Any idea what am I doing wrong?
Please Help!!

Jun 27 '06 #2
BB
Ok..this is diffcult to explain. Let me try again...Sorry about that.
I did mention what error I get before.

I get an error saying "Data type error in expression" . If you have
chance to watch that video example I mentioned before. You would see
example of filtering dataset on "State" field . I noticed field type of
state field is string. But when I try to do samething for OrderID field
in "Order Dteails" table OrderID datatype is Long Integer. Is that why
I get that error? How you pass parameters to dataset that have numeric
datatype?

know what I mean?

Juan T. Llibre wrote:
It would help if, instead of a general "what's wrong?" post, you would post
the exact text of the error returned and the source code segment to which
the error message points to.

Please snip out any non-essential code.
Only post the error text and the several lines of code that the error points to.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"BB" <sh******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi,
I am trying to create test web page using tutorial

http://download.microsoft.com/downlo...data_final.wmv

I am using northwind.mdb as data source. I am creating simple page
displaying orderid in combobox and displaying corrosponding
orderdetials in grid view. Now when I try to pass parameter to [Order
Details].orderid it gives me type mismatch error.I am just trying to do
same thing as in video example. Any idea what am I doing wrong?
Please Help!!


Jun 28 '06 #3
Can you post your code and the line that fails?

BB wrote:
Ok..this is diffcult to explain. Let me try again...Sorry about that.
I did mention what error I get before.

I get an error saying "Data type error in expression" . If you have
chance to watch that video example I mentioned before. You would see
example of filtering dataset on "State" field . I noticed field type of
state field is string. But when I try to do samething for OrderID field
in "Order Dteails" table OrderID datatype is Long Integer. Is that why
I get that error? How you pass parameters to dataset that have numeric
datatype?

know what I mean?

Juan T. Llibre wrote:
It would help if, instead of a general "what's wrong?" post, you would post
the exact text of the error returned and the source code segment to which
the error message points to.

Please snip out any non-essential code.
Only post the error text and the several lines of code that the error points to.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"BB" <sh******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi,
I am trying to create test web page using tutorial

http://download.microsoft.com/downlo...data_final.wmv

I am using northwind.mdb as data source. I am creating simple page
displaying orderid in combobox and displaying corrosponding
orderdetials in grid view. Now when I try to pass parameter to [Order
Details].orderid it gives me type mismatch error.I am just trying to do
same thing as in video example. Any idea what am I doing wrong?
Please Help!!

Jun 28 '06 #4
BB
Hello sir.. I could make it work thank you. I have one more question
though.
I am writing some code in Page_Load event

Dim strConn As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=" + "C:\Test\App_Data" + "\Northwind.mdb;Persist Security
Info=True"

Dim MySQL As String = "Select * from [Order Details] Where
OrderID =" & mOrderID
Dim MyConn As New System.Data.OleDb.OleDbConnection(strConn)
Dim objDR As System.Data.OleDb.OleDbDataReader
'Dim Cmd As New System.Data.OleDb.OleDbCommand(MySQL)
Dim Cmd As New System.Data.OleDb.OleDbCommand(MySQL, MyConn)
MyConn.Open()

Here how I could use connection string from web.config. So that I dont
have redclare it heere one more time?
csn I use
Dim MyConn As New
System.Data.OleDb.OleDbConnection(TestNorthwindCon nectionString)--where
"TestNorthwindConnectionString" is connection string specified in
web.config.?

Ray Booysen wrote:
Can you post your code and the line that fails?

BB wrote:
Ok..this is diffcult to explain. Let me try again...Sorry about that.
I did mention what error I get before.

I get an error saying "Data type error in expression" . If you have
chance to watch that video example I mentioned before. You would see
example of filtering dataset on "State" field . I noticed field type of
state field is string. But when I try to do samething for OrderID field
in "Order Dteails" table OrderID datatype is Long Integer. Is that why
I get that error? How you pass parameters to dataset that have numeric
datatype?

know what I mean?

Juan T. Llibre wrote:
It would help if, instead of a general "what's wrong?" post, you wouldpost
the exact text of the error returned and the source code segment to which
the error message points to.

Please snip out any non-essential code.
Only post the error text and the several lines of code that the error points to.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"BB" <sh******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.com...
Hi,
I am trying to create test web page using tutorial

http://download.microsoft.com/downlo...data_final.wmv

I am using northwind.mdb as data source. I am creating simple page
displaying orderid in combobox and displaying corrosponding
orderdetials in grid view. Now when I try to pass parameter to [Order
Details].orderid it gives me type mismatch error.I am just trying to do
same thing as in video example. Any idea what am I doing wrong?
Please Help!!


Jun 28 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: info | last post by:
Prizes: 1st) 12 MegaPixel Digital Camera 2nd) 1 GB Mp4 Video/MP3 Player 3rd) Flexible keyboard Go to http://www.digitaltutor.info & send us your tutorial to participate! We are looking...
0
by: stylusstudio | last post by:
Dear microsoft.public.dotnet.xml, Stylus Studio has published a new educational video tutorial entitled: Visual Data Integration Using Stylus Studio XML Pipeline. To view this new tutorial,...
4
by: Gandalf | last post by:
Hi every one. I need comprehensive tutorial for the following library : 1. pyWinAuto 2. winGuiAuto Thanks in advance
4
by: Gandalf | last post by:
Hi every one. I need comprehensive tutorial for the following library : 1. pyWinAuto 2. winGuiAuto Thanks in advance
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.