Error while running javascript code in ASP.NET Pag
|
ASP.NET 1.0 and 1.1 ProfessionalFor advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.0 and 1.1 Professional 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
Error while running javascript code in ASP.NET Pag
Hi,
I m trying to run a client side code written in javascript to display a calender, which displays selected date in a html textbox control in asp.net web page. Now i wanna use that date in my query to fetch records from database on html button control click but it is giving error "Error on Page".
If i m using an asp button control then it wants "runat= server" on form tag, but if specifying that then javascript could not able to find that form to display calender.
Please help me if anyone can its urgent.Thanx in advance
Hi dparson
Thanx for reply
But actlly u r not getting wat i wanna do.
In my project i m using a javascript file through which two calenders r displayed successfully on my page n selected date is displayed on textboxes "firstinput" and "secondinput" .Now i wanna use that value in my query and on button click i m writing the code specified below:
"Dim cn As New OleDb.OleDbConnection
cn.ConnectionString = ConfigurationSettings.AppSettings("Accesscon").ToS tring + Server.MapPath("contactus.mdb")
cn.Open()
Dim cmd As New OleDb.OleDbCommand
Dim str As String
'str = " select Sno from contact where date between ( #" & firstinput.Value & " #) and ( # " & secondinput.Value & " # )"
'Session("string") = str
Response.Redirect("searchresult.aspx")
cn.Close()"
The button is a html control and it is giving error "Error on Page" and sometimes it is giving error "_dopostback(onclick('Button',''))"
now pleeez tell me wat to do.