Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3679290
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T03:26:31+00:00 2026-05-19T03:26:31+00:00

I have a problem with my code, I cannot get it the ‘test’ to

  • 0

I have a problem with my code, I cannot get it the ‘test’ to get the values im trying to assign to it.

rec = new Record(perosn, actually, com, Centre, CCentre);
webservicename.singleSummary test = new webservicename.singleSummary();

test.person = rec.person;
test.actually = recc.Actually;
test.com = rec.Com;
test.Centre = rec.Centre;
test.CCentre = rec.CCentre;

webservicename.Feed CallWebService = new webservicename.Feed();

I am trying to get this to pop up in a dialog box to show that it is working, with something like test.account getting showed in the message box, not sure quite what the problem is.

My overall problem is I am trying to set the class porpert at runtime.

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T03:26:31+00:00Added an answer on May 19, 2026 at 3:26 am

    Is “Record” an existing class?

    Is this a compile time error and what does the error say?

    One simple solution might be to debug into this using visual studio and check the values there, (if your using Visual Studio).

    If you’re trying check these values at run time (not development time) then you could use javascript to display a message.

    Thanks to a WebProNew.com article…
    http://www.webpronews.com/expertarticles/2006/11/29/javascript-alertshowmessage-from-aspnet-codebehind

    using System.Web;
    using System.Text;
    using System.Web.UI;
    
    /// 
    /// A JavaScript alert
    /// 
    public static class Alert
    {
        /// 
        /// Shows a client-side JavaScript alert in the browser.
        /// 
        /// The message to appear in the alert.
        public static void Show(string message)
        {
           // Cleans the message to allow single quotation marks
           string cleanMessage = message.Replace("'", "\\'");
           string script = "alert('" + cleanMessage + "');";
    
           // Gets the executing web page
           Page page = HttpContext.Current.CurrentHandler as Page;
    
           // Checks if the handler is a Page and that the script isn't allready on the Page
           if (page != null && !page.ClientScript.IsClientScriptBlockRegistered("alert"))
           {
             page.ClientScript.RegisterClientScriptBlock(typeof(Alert), "alert", script);
           }
        }
    }
    

    Usage…

    void btnSave_Click(object sender, EventArgs e)
    {
       try
       {
         SaveSomething();
         Alert.Show("You document has been saved");
       }
       catch (ReadOnlyException)
       {
         Alert.Show("You do not have write permission to this file");
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is an erlang problem, it seems. I have this code to test the
Good day code knights, I have a tricky problem that I cannot see a
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
Possible Duplicate: What's wrong with Delphi's “with” I am have a problem debugging code
I have a problem with the following code: for(i = 0;(i - 1)< n;i++)
I have an intermittent problem with some code that writes to a Windows Event
The following code demonstrates a weird problem I have in a Turbo C++ Explorer
Here's my problem - I have some code like this: <mx:Canvas width=300 height=300> <mx:Button
I have a small problem with interfaces. Here it is in Pseudo code :
I have run into a bit of a tricky problem in some C++ code,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.