Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 29th, 2004, 07:04 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:Originally posted by Imar
 You can't, really. ASP.NET pages will post back to themselves. The action attribute will always point to the current page, to enable the PostBack mechanism.

You can take a look here: http://www.codeproject.com/aspnet/CHtmlForm.asp and here: http://www.experts-exchange.com/Prog..._20966296.html for some ideas on how to work around it.

My suggestion is to try and use the PostBack mechanism, instead of posting to another page. You'll avoid a lot of problems....

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
hi thanx to u and Other thing is it how i can setup a counter in a page using ASP.NET Application Object And Session Object

 
Old May 29th, 2004, 07:39 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

I believe I already answered that one here: http://p2p.wrox.com/topic.asp?TOPIC_ID=14152

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 1st, 2004, 11:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Imar, Cam you write a program for me?


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old June 1st, 2004, 12:30 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Sure, no problem. Send me the details and I'll do it for you.... ;)

It never stops to amaze me that people can't read or are willing to do some investigations themselves. I try to get them on track by giving them directions, rather than ready-made solutions, but sometimes it just doesn't come through..... :-(

Imar
 
Old June 11th, 2004, 02:31 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default

Any One Help Me About How I can Use N' Switch In DotNet Or ADO.NET And In Parameterized Manner How I Can Do It .
I Am Using Like This But It Cause An Error In ADO.NET
   strSql="select * from member_info where username=N'@username and password=N'@password";
How I Can DO It.
Regards Yoord


 
Old June 13th, 2004, 02:38 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

if u use [u]VS.NET Visual mode </u>when u set ur CommandText to:
Code:
select * from member_info where username=@username and password=@password
It will create ur Paramaeters & U'll only need to set them.
but if u dont use [u]VS.NET Visual mode</u> u just set ur test to:
Code:
select * from member_info where username=@username and password=@password
Again & set ur Parameters urself.

HTH.

Always:),
Hovik Melkomian.
 
Old June 16th, 2004, 01:40 AM
Friend of Wrox
 
Join Date: May 2004
Posts: 120
Thanks: 0
Thanked 1 Time in 1 Post
Default

Quote:
quote:Originally posted by melvik
 if u use [u]VS.NET Visual mode </u>when u set ur CommandText to:
Code:
select * from member_info where username=@username and password=@password
It will create ur Paramaeters & U'll only need to set them.
but if u dont use [u]VS.NET Visual mode</u> u just set ur test to:
Code:
select * from member_info where username=@username and password=@password
Again & set ur Parameters urself.

HTH.

Always:),
Hovik Melkomian.
Thanx 2 Hovik And Other It help me very much .







Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to connect to Remote Exchange Server. arul1976 .NET Framework 2.0 1 March 10th, 2008 10:20 AM
How to connect to a remote SQL Server? mizimizi SQL Server 2000 3 July 4th, 2006 01:47 PM
Connect to remote SQL Server 2000 using servlets Vinay Bansal Servlets 1 August 5th, 2005 12:22 AM
unable to connect remote server Harendra .NET Web Services 1 April 25th, 2005 02:10 AM
can't connect to remote server alyeng2000 ASP.NET 1.0 and 1.1 Basics 4 February 9th, 2004 11:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.