Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Tutorial Video

Reply
Thread Tools

Tutorial Video

 
 
BB
Guest
Posts: n/a
 
      06-27-2006
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!!

 
Reply With Quote
 
 
 
 
Juan T. Llibre
Guest
Posts: n/a
 
      06-27-2006
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" <> wrote in message
news: 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!!
>



 
Reply With Quote
 
 
 
 
BB
Guest
Posts: n/a
 
      06-28-2006
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" <> wrote in message
> news: 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!!
> >


 
Reply With Quote
 
Ray Booysen
Guest
Posts: n/a
 
      06-28-2006
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" <> wrote in message
>> news: 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!!
>>>

>

 
Reply With Quote
 
BB
Guest
Posts: n/a
 
      06-28-2006
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" <> wrote in message
> >> news: 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!!
> >>>

> >


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do programmers enjoy video tutorial or written tutorial ? Linuxmank Java 36 08-08-2009 09:54 AM
Tutorial or Example (or Tutorial) of Using Canvas to Produce a Plot W. Watson Python 13 09-20-2007 04:29 PM
alt.video.dvd, alt.video.dvd.software, alt.video.dvd.tech, rec.video.dvd.tech winterheat@gmail.com DVD Video 1 06-04-2006 12:43 PM
[ANNOUNCE] A New Video Tutorial Has Been Released: Learn Stylus Studio in 6 Minutes Stylus Studio XML 0 01-31-2006 06:16 PM
Tutorial for beginner/ Tutorial voor beginner Rensjuh C++ 7 09-02-2004 12:41 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57