I have some web services.
example: PatientService
In my VS2003 project after adding the web reference I can use the name PatientService.
example: myPatientService = new MyServices.PatientService();
When I try this in VS2005 the name of my service is not PatientService but PatientServiceSoap...
In Visual Studio 2003 you can add a web reference to a disco file. When the link is added you can change the property "Custom Tool" of "reference.map".
Now I'm trying to make a web application in Visual Studio 2005. I made a web reference to the same disco file as in my Visual Studio 2003...
I have a project (UserControls) with one user control (myControl) and one web form (myForm).
On the web form there is only the user control (myControl).
On my local machine the web form runs fine.
I copied the files to the production machine in the same structure as on my local machine.
I get...
I do know the structure of my application.
The first problem was that I had to copy the content of a textbox to the clipboard. I did this with a javascript function that I defined at server side with RegisterClientScriptBlock.
In the content of that textbox there were newlines so the javascript...
I need to use server side and RegisterClientScriptBlock because in that javascript function I need the content of a textbox, for example txtTest.
When I define the script at client side I tried to use document.getElementById to find the textbox and so retrieve the content. But getElementById...
I make the javascript code at server side.
At server side I make a string strScript with the javascript code and I do Page.RegisterClientScriptBlock("CopyToClipboardRoutine", strScript).
The content of strScript is:
"<SCRIPT LANGUAGE='JavaScript'>function CopyToClipboard(){ var Data;Data =...
I want to copy a string to the clipboard.
The string must have some newlines (CRLF).
When I run the page I get an error.
This is the code:
<SCRIPT LANGUAGE='JavaScript'>
function CopyToClipboard()
{
var Data;
Data = 'This is the first line.' + '\n' + 'This is the second line.'...
I do not use a textbox server control because I need the value in javascript and I find no way to do that.
A server textbox control is in HTML:
<asp:TextBox id="TextBox1" runat="server">Test</asp:TextBox>
So there is no value attribute that can be used in javascript to read the value.
Is it possible to change the value of a HTML control in the code behind (server side)?
So the value attribute has to be changed in the code behind, for example when an asp:button is clicked.
HTML control textbox:
<INPUT id="myTextbox" type="text" value="test">
I made a user control and in this user control I have some clientside script (Page.RegisterClientScriptBlock in the page_load of the user control).
In this script I want to know the content of an ASP-label.
for example:
<asp:label id=lblText runat="server"></asp:label>.
How can I get the...
I have a web user control UC1.ascx.
This web user control has another web user control on it UC2.ascx.
When a button in UC2 is clicked there has to be raised an event in UC1 and the content of a textbox of UC2 has to be available in UC1.
Is there anyone who has an example in C# of raising...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.