473,394 Members | 1,781 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASP.Net and JavaScript together?

I need to perform some of Client side manipulation:
I have a 4 checkboxes with following them 4 FileUpload
HTML controls. What I need to do is to prevent user from
uploading file by using 4th controll if 3rd is not used
and itc.,so I want to disable number 2,3 and 4 untill user
clicked 1.So,
by clicking checkbox1 -> FileUpload2 become available
by clicking checkbox2 -> FileUpload3 become available
by clicking checkbox3 -> FileUpload4 become available
I can't use server side CheckedChanged event becouse I
don't want to send any data to server yet,so I need to
implement JavaScript together with my ASP controlls.
The question is How to do so?
It suppose to looks like this:

<asp:checkbox id="CheckBox1" runat="server" Text="Upload
picture1:"
OnCheckedChanged="javascript:document.form1.FileUp load2.ena
ble"></asp:checkbox>
<input id="FileUpload1" type="file" name="FileUpload"
runat="server" width="300">
<asp:checkbox id="CheckBox2" runat="server" Text="Upload
picture1:"
OnCheckedChanged="javascript:document.form1.FileUp load3.ena
ble"></asp:checkbox>
<input id="FileUpload2" type="file" name="FileUpload"
runat="server" width="300">
<asp:checkbox id="CheckBox3" runat="server" Text="Upload
picture1:"
OnCheckedChanged="javascript:document.form1.FileUp load4.ena
ble"></asp:checkbox>
<input id="FileUpload3" type="file" name="FileUpload"
runat="server" width="300">

It is does not works,but may-be someone could help me?
Thanks in advansed.
Alex.
Jul 19 '05 #1
3 5865

"Alex" <al**@3wworld.com> wrote in message
news:0b****************************@phx.gbl...
don't want to send any data to server yet,so I need to
implement JavaScript together with my ASP controlls.
The question is How to do so?


There is no such thing as an ASP Control as far as I know. Controls
are "client-side" entities while ASP is 100% server-side. It looks
like every part of this is client-side. You will have to ask in a
client-side group, probably a javaScript one, so that someone who
specializes in that can help.

You can hang around and see if you get a reply anyway, but most here
will probably just tell you the same thing I did.

--

Phillip Windell [CCNA, MVP, MCP]
pw******@wandtv.com
WAND-TV (ABC Affiliate)
www.wandtv.com
Jul 19 '05 #2
I must reply that ASP control (ASP.NET control exactly) exist. It is a
new term which came together with ASP.NET and .NET Framework. The reason
why I asked for the help with JavaScript implementation is because this
is a really new technology and it is a lot of differences from old ASP
3.0.
Anyway thanks for the advice.
Alex


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
Alexander Starostin wrote:
I must reply that ASP control (ASP.NET control exactly) exist. It is a
new term which came together with ASP.NET and .NET Framework. The
reason why I asked for the help with JavaScript implementation is
because this is a really new technology and it is a lot of
differences from old ASP
3.0.
Anyway thanks for the advice.
Alex

You'll get better help with .NET if you ask your questions on a dotnet
group, perhaps microsoft.public.dotnet.framework.aspnet. This group is
focussed on Classic ASP.

Bob Barrows
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Simon Wigzell | last post by:
A client of mine has long used HTML format emails to promote his business, always to existing clients and contacts, not as spam. They have become more sophisticated over time adding javascript most...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
2
by: Alex | last post by:
Hi all, I'm writing a small web application which searches a database based on a date field, and populates a datagrid control with the results. The datagrid control has selection buttons added...
4
by: Adam Smith | last post by:
Hello, How can I call or trigger an external javascript twice in a form? I have <script language="JavaScript" src="country_state.js" name="Country_State"> <script type="text/javascript"...
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
9
by: Boris Yeltsin | last post by:
I use Master Pages, so I make use of URL rebasing through the ~ operator, like this in the <head>: <link runat="server" href="~/Root.master.css" media="screen" rel="stylesheet" type="text/css" />...
20
by: Neo Geshel | last post by:
I have been looking into Javascript libraries for the last week or two here, and there are certainly a lot of options out there. http://www.prototypejs.org/ http://mootools.net/...
22
by: Dan Rumney | last post by:
Hi all, I've been writing Javascript for quite a while now and have, of late, been writing quite a lot of AJAX and AJAX-related code. In the main, my dynamically generated pages are created...
19
by: Prisoner at War | last post by:
Okay, Folks, I guess my real burning concern all along is a "high-level" one: just how does JavaScript interact with CSS? Right now, my newbie self only knows JavaScript and CSS to *co-...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.