Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > BOOK: Beginning HTML, XHTML, CSS, and JavaScript
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning HTML, XHTML, CSS, and JavaScript
This is the forum to discuss the Wrox book Beginning HTML, XHTML, CSS, and JavaScript by Jon Duckett; ISBN: 978-0-470-54070-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning HTML, XHTML, CSS, and JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 11th, 2014, 11:20 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Red face A HREF does not contain onclick server side function call. Please help

In the below function, I want to call “CallCreateorOpenForm” when I click “Open Draft" - open existing file from db. Lauch summary should verify, create new form and load new form. Currently onload everything will be created. However I want to create new form only when there is no form exist in the db that means when I click lauch Summary, it should call CallCreateFormorOpenFormURL function. Will you please help?
Onload page
{
ArrayList arraryList = new System.Collections.ArrayList();
var advisees = ReviewHelpers.GetAdvisees(employeeCode, CurrentReviewPeriod);
if (advisees.Count() > 0)
{
for (int i = 0; i < advisees.Count(); i++){
string LaunchSummaryURL = "#";
LaunchSummaryURL = CallCreateFormorOpenFormURL(advisees[i].SummaryCode.ToString(), advisees[i].EmployeeCode, advisees[i].ReviewId);
string LaunchSummaryLink = "<a href='" + LaunchSummary + "'>" + advisees[i].SummaryLinkHere.ToString() + "</a>";
arraryList.Add(new MyObject(myEmpName, advisees[i].TotalReviews.ToString(), advisees[i].BillableHours.ToString(), LaunchSummaryLink, advisees[i].DateLastModified)); }
RadGrid.DataSource = arraryList;
} }
private string CallCreateFormorOpenFormURL (string SummaryCode, string EmpCode, string ReviewId)
{
string returnURL = "";
//// ….dbcall to get records…..
if (SummaryCode == "Open") {
returnURL = string.Format("/Reviews/AdvSummAnalystToResearchAssociate.aspx?ReviewId={0 }", ReviewId);
}
Else {
CreateNew = CreateSummaryReview(empAdvisor, empReviewer, empAdvisor, CurrentEmployee, true); // this will create new db record with ReviewId
returnURL = string.Format("/Reviews/AdvSummAnalystToResearchAssociate.aspx?ReviewId={0 }", CurrentReview.ReviewId);
}
return returnURL;
}
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
call serverside event from client side function CodeBest ASP.NET 2.0 Basics 0 January 12th, 2009 07:00 AM
passing params on an href function call geogomez Javascript How-To 1 November 29th, 2005 05:26 AM
Can dropdownlist OnFocus call a server-side method commerceJeff ASP.NET 1.0 and 1.1 Basics 6 July 19th, 2004 11:50 AM



All times are GMT -4. The time now is 08:48 PM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.