Computing.Net > Forums > Programming > asp.net + sql views

asp.net + sql views

Reply to Message Icon

Original Message
Name: fayyazf7
Date: April 17, 2005 at 22:43:00 Pacific
Subject: asp.net + sql views
OS: win 2k server
Comment:

i am a newbie in asp.net, i need little assisstence that how can i use sql views in asp.net + views with parameter ,please tel me little sample. i am very gr8ful to u.


Report Offensive Message For Removal


Response Number 1
Name: Chi Happens
Date: April 18, 2005 at 06:42:50 Pacific
Reply: (edit)

you call them just like a normal query:

SELECT Field1 FROM View1 WHERE Field2=0

Chi

They mostly come at night...mostly


Report Offensive Follow Up For Removal

Response Number 2
Name: fayyazf7
Date: April 18, 2005 at 23:27:17 Pacific
Reply: (edit)

Thanks chi , plz one thing more .
how can i pass value like date from asp to sql views .
example: txt1= 18-04-05
views = select * from exp where dt=txt1.value

how can i pass txt1 to views ?

thanx


Report Offensive Follow Up For Removal

Response Number 3
Name: Chi Happens
Date: April 25, 2005 at 09:47:36 Pacific
Reply: (edit)

views = "select * from exp where dt='" & txt1.value & "'"

Chi

They mostly come at night...mostly


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: asp.net + sql views

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




Have you ever used OpenOffice?

Yes, as my main suite.
Yes, occationally.
Yes, but only once.
No, never.


View Results

Poll Finishes In 5 Days.
Discuss in The Lounge