Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 April 16th, 2007, 05:35 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ssramvinay
Default Very urgent, Doubt in ASP

DOUBT IN ASP


i have emp table--->contain 2 fields( We used recordset)----> emp_no(datatype is int, chck - datatype is bit)


* i have email.asp , it contains 1 text box and a check box and a button.

My task--? if i checked the check box and gave some text in the text

box and the click the submit button, in the DB(sql server) the chck Column

must stored( data type is bit) as 1.

If the checkbox is not checked and click the submit button---> the chck value must be stored as 0.

Default value is 0


Actually, the textbox value was inserted. But Checkbox value is still 0 even when i check r uncheck the checkbox.

<input type = "checkbox" name="click" value="1">

I wrote the coding like this. kindly check it right r wrong...

If Request.Form("click")="1"

Rss.fields("chck").Value="1"

End If


plzzzzzzzz help me how to it

ANOTHER TASK

<input type = "checkbox", name="TransNo" ID="CheckBox1" value="<%=transid%>">

( antoher task.

* If i click the submit button in parent.asp. The checkbox present in my email.asp file must be disabled.

parent .asp

* It contains a table format(datagrid)..It lists some names like

checkbox - ram - emaild - description - email.jpg


If we click the email.jpg ----> we wrote a javascript code to open pop- up window

calledemail.asp(my previous task).--It contains a date textbox

If we checked the checkbox and submit(by giving date in the textbox) , the window will close. The correspoding date will come

automatically on the email.jpg column. The img will disappear. The date will

come there.


Here i have to do wat means, the checkbox in parent.asp must disabled if

we checked the checkbox and submit(by giving date in the textbox) in email.asp file.
:(

 
Old April 17th, 2007, 01:21 PM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 599
Thanks: 6
Thanked 3 Times in 3 Posts
Default

Try this IF statement:

If Request("click")= "on"
Response.Write("The box was checked.")
Else
Response.Write("The box was NOT checked.")
End If
Response.End






Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net doubt virus220 ASP.NET 2.0 Professional 1 August 10th, 2007 11:47 AM
doubt in XSLT -- very urgent subbukns XSLT 1 May 21st, 2007 05:10 PM
urgent doubt to run calc.exe from asp.net page geetha ASP.NET 1.0 and 1.1 Professional 0 July 19th, 2006 07:35 AM
very very urgent doubt spec in c#.net geetha VS.NET 2002/2003 0 December 21st, 2005 07:29 AM
urgent doubt between class & structure lgeetha C# 5 February 24th, 2005 09:27 AM





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