Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2008

Tip: Looking for answers? Try searching our database.

C# Web Application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 31 Jul 2008 21:54 GMT
In another posting I noted I need to be able to activate an event via code
when the value in the field changes. I have been able to get a javascript to
work. It's a javascript:alert, which displays a Hello World message box when
data is changed in my field. The field type is an <Input Type>. To get this
Javascript to work I setup an "onchange='javascript:alert(\"Hello World\");'"
within the <Input Tag.

Now, as I have stated in another posting, I'd like to use a javascript even
such as this and have it scan all the controls on the current page, filter
for specific fields based on a passed paramter and then peroform a
calculation and place the results in anohter <Input type field.

So, I'd like to have a javascript that will accept a parameter (field name)
and then calculate the total of fields on the current page and place them in
a specific field on the page.

Does anyone have any ideas how I could this type of javascript put together.

I aplogize that I have little experience with web development, C# and
javascript and have no idea how to proceed. If anyone can point me in the
right direction ro refer me to some good sites that may have somo examples,
that would be great. Or a sample javascript would be great to.
Thanks.
Ignacio Machin ( .NET/ C# MVP ) - 31 Jul 2008 22:34 GMT
> Now, as I have stated in another posting,

Whichi posting?

> Does anyone have any ideas how I could this type of javascript put together.

Indeed, all you have to do is find the controls and get the values,
how do you find the controls depend of your case, how do you generate
these controls?

> I aplogize that I have little experience with web development, C# and
> javascript and have no idea how to proceed. If anyone can point me in the
> right direction ro refer me to some good sites that may have somo examples,
> that would be great. Or a sample javascript would be great to.
> Thanks.

This is a C# NG this question is related to Javascript so you might
fin d more relevant answers in a javascript NG. in addition try the
aspnet NG too

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.