Run At Server

W

Waldy

Hi there,
I have added a dropdownlist to a web form that a customer has
given me, but when I try to access the control in the code behind file I get
a server error because the form does not have the runat server tag.
However, I don't want to set the form as runat server because the javascript
validation form function would not get run then. The form was given to me
as an html file. I have just dropped that into an .aspx file so that I can
fill the lists dynamically. Anyone have any comments on this?
 
T

Teemu Keiski

In addition to Patrice's response, what kind of is the js function, why
wouldn't it run?
 
W

Waldy

The javascript function is for form data entry validation. When you set
runat server, the OnSubmit event function is looked for on the server rather
than the client.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top