Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Jan 20, 2010 02:31 AM by hans_v
Member
89 Points
277 Posts
Jan 17, 2010 12:53 AM|LINK
In asp.net when i call records from asp to asp.net it show System._Comobject
Please give me a sloution
asp asp .net 2. 0 blockcode
240 Points
64 Posts
Jan 17, 2010 04:40 AM|LINK
Please give some more details about how you are trying to do this?
When is this error occuring?
Jan 17, 2010 05:46 AM|LINK
I using asp.net but i want to use asp block code with asp.net:
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <% Dim cnn, rs cnn = Server.CreateObject("ADODB.Connection")%> <% rs = Server.CreateObject("ADODB.Recordset")%> <% cnn.open("Provider=SQLOLEDB;Server=localhost;Initial Catalogxxx;User ID=xx;Password=xxxxxx")%> <% rs.open("select * from TBL_RATS ", cnn) Do Until rs.eof%> <%=rs(2)%> <%rs.movenext%> <%loop%> </asp:Content>
Best Regards
Jan 17, 2010 11:08 AM|LINK
This seems like you are using vbscript for server side calls. You can't use vbscript like this, instead you can use vb.net.
You can use vbscript as client side scripting language instead.
All-Star
35986 Points
6550 Posts
Jan 17, 2010 11:23 AM|LINK
You should forget about classic ASP, and start learning the ".NET way"
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# Eval("[ColumnName") %>' /> </ItemTemplate> </asp:Repeater> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Server=localhost;Initial Catalogxxx;User ID=xx;Password=xxxxxx" ProviderName="System.Data.OleDb" SelectCommand="SELECT [ColumnName] FROM TBL_RATS">< /asp:SqlDataSource> </asp:Content>
Jan 18, 2010 01:30 AM|LINK
Can you provide me the coding using image control with repeat control and bind image with value of repeat control ?
Jan 18, 2010 01:36 AM|LINK
Sorry i asked confuse .
I would like to add 1 field in repeat control then in this field i want to count records of other filed of repeat control. ?
Please provide me coding.
Jan 20, 2010 12:26 AM|LINK
Please update this issue.
Jan 20, 2010 02:31 AM|LINK
cno_kh Please update this issue.
If you would explain more clearly what you want, because ir really makes no sence to me. The code I provided will more or less have the same result as your ASP script,
cno_kh
Member
89 Points
277 Posts
In asp.net when i call records from asp to asp.net it show System._Comobject
Jan 17, 2010 12:53 AM|LINK
In asp.net when i call records from asp to asp.net it show System._Comobject
Please give me a sloution
asp asp .net 2. 0 blockcode
sgeorge80
Member
240 Points
64 Posts
Re: In asp.net when i call records from asp to asp.net it show System._Comobject
Jan 17, 2010 04:40 AM|LINK
Please give some more details about how you are trying to do this?
When is this error occuring?
cno_kh
Member
89 Points
277 Posts
Re: In asp.net when i call records from asp to asp.net it show System._Comobject
Jan 17, 2010 05:46 AM|LINK
I using asp.net but i want to use asp block code with asp.net:
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
<% Dim cnn, rs
cnn = Server.CreateObject("ADODB.Connection")%>
<% rs = Server.CreateObject("ADODB.Recordset")%>
<% cnn.open("Provider=SQLOLEDB;Server=localhost;Initial Catalogxxx;User ID=xx;Password=xxxxxx")%>
<% rs.open("select * from TBL_RATS ", cnn)
Do Until rs.eof%>
<%=rs(2)%>
<%rs.movenext%>
<%loop%>
</asp:Content>
Best Regards
sgeorge80
Member
240 Points
64 Posts
Re: In asp.net when i call records from asp to asp.net it show System._Comobject
Jan 17, 2010 11:08 AM|LINK
This seems like you are using vbscript for server side calls. You can't use vbscript like this, instead you can use vb.net.
You can use vbscript as client side scripting language instead.
hans_v
All-Star
35986 Points
6550 Posts
Re: In asp.net when i call records from asp to asp.net it show System._Comobject
Jan 17, 2010 11:23 AM|LINK
You should forget about classic ASP, and start learning the ".NET way"
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server"> <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <asp:Label ID="Label1" runat="server" Text='<%# Eval("[ColumnName") %>' /> </ItemTemplate> </asp:Repeater> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Server=localhost;Initial Catalogxxx;User ID=xx;Password=xxxxxx" ProviderName="System.Data.OleDb" SelectCommand="SELECT [ColumnName] FROM TBL_RATS">< /asp:SqlDataSource> </asp:Content>cno_kh
Member
89 Points
277 Posts
Re: In asp.net when i call records from asp to asp.net it show System._Comobject
Jan 18, 2010 01:30 AM|LINK
Can you provide me the coding using image control with repeat control and bind image with value of repeat control ?
cno_kh
Member
89 Points
277 Posts
Re: In asp.net when i call records from asp to asp.net it show System._Comobject
Jan 18, 2010 01:36 AM|LINK
Sorry i asked confuse .
I would like to add 1 field in repeat control then in this field i want to count records of other filed of repeat control. ?
Please provide me coding.
Best Regards
cno_kh
Member
89 Points
277 Posts
Re: In asp.net when i call records from asp to asp.net it show System._Comobject
Jan 20, 2010 12:26 AM|LINK
Please update this issue.
hans_v
All-Star
35986 Points
6550 Posts
Re: In asp.net when i call records from asp to asp.net it show System._Comobject
Jan 20, 2010 02:31 AM|LINK
If you would explain more clearly what you want, because ir really makes no sence to me. The code I provided will more or less have the same result as your ASP script,