|
If you are dynamically creating the control in your code, please check what thread that code is executing on. If it is not executing on the main thread of the application you might get these types of errors. Try doing the adding within a BeginInvoke or Invoke. That might resolve the issue.
--------------------------------------------------
|
|
|
|
|
Hello eveyone,
I wonder if I can make a webservice work via a desktop application in which this webservice manipulates a web application (for example change a label) ?
Lets me explain in detail. I want to click a button on my destop application (which is currently viewing a web application) and this will make a webservice start to work. This webservice -then- will change a label on the web applications.
Thanks for your helps and best regards.
.:: Something is Wrong ::.
|
|
|
|
|
Hi
I have a problem. I need your help.
In my Program, have file: app.Config
In file app.Config, I wrote.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="strConn" value="Data source = (local);Integrated Security =SSPI;Initial Catalog = Northwind">
</add>
</appSettings>
</configuration>
<
Now, I want change content in "value". New value put in from textbox.after it will update to file app.Config
|
|
|
|
|
The built in code doesn't allow this. You'd be better to move the values you want to be able to write to your own config file, although I believe you can open app.config with an XmlDocument and treat it as normal XML for the purposes of editing/writing.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
why wouldn't you use the Properties.Settings.Default ?
.:: Something is Wrong ::.
|
|
|
|
|
How to create a single instance of a application.Like when I will click the new button in an editor only one window will appear.when I will click the new submenu next time if the window is already exists then no window will appear.How to do it.
|
|
|
|
|
|
:-Dwhen u open the application ,u check the appliction thread in system at first,not have,go!else show info!
|
|
|
|
|
in an editor when I will click the new submenu,a dialog box will appear where I can put the filename.so when I will click the the save button in the dialog box,whatever the file name entered that will appear on the main menu.like msword
|
|
|
|
|
So where's the question?
Here's a site that explains how to open a file dialog: MSDN
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I have this line of code in a partially trusted assembly:
List<string> files = UpdateController.GetUpdateContents(updateFile);
It generates a SecurityException with the message "That assembly does not allow partially trusted callers.". However, I do have the following attribute in the UpdateController assembly, as follows:
[assembly: AllowPartiallyTrustedCallers]
Any ideas why this attribute is seemingly ignored?
|
|
|
|
|
I would delete my previous post if I didn't think this follow up may help some people. It was an easy mistake for me to have not checked the UpdateController assembly references as well. One of the referenced projects didn't allow partially trusted callers.
Always remember to check the whole chain.
|
|
|
|
|
I want to write a data base application that I have two application client and server.
The client send request to server and server process this request then send result to it.
Server always should waiting for request from clients.
Fam
|
|
|
|
|
Hi All,
i am using C#.net.And i am reading a file and then writing it to another file.
The code is as follows:
StreamReader reader = new StreamReader("Some Path"); <br />
StreamWriter writer = new StreamWriter( "Some Path", false );<br />
string line;<br />
<br />
while ( (line = reader.ReadLine()) != null )<br />
{<br />
if(some condition)<br />
{<br />
throw new ApplicationException("Unrecognised File Format");<br />
}<br />
.....<br />
.....some more "if" conditions..<br />
<br />
writer.WriteLine( "\n {0} = {1},", sometext, somevalue);<br />
}<br />
writer.Close();<br />
reader.Close();
So now if we observe,when any exception occurs, the application prints "Unrecognised File Format" and it doesn't write anything to the file.Also the output file is created first.
Now what i require is: Output File should be created only when there are no exceptions in the reading of the file."Some text" and "some values" are set when using the while loop..So how can i create a file when there are no exceptions in reading.
Plz Help Me!! Thanx in ADVANCE..
|
|
|
|
|
Why don't you first entirely read the file and [b]then[/b] create the StreamWriter object.
You can put the contents of the file to be read into an array first.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi all,
I want to match a string let say
{begin}
<img src="images/barrow.gif" align="middle"><a href="{=NavLink=}" class="topnav">{=LinkName=}</a>
{end}
from {begin} to {end} and put it in a variable so that I can replace the value of {=NavLink=} and {=LinkName=} coming from the database...
Can you please help me to find the exact regular expression syntax..
Thanks in advance for your help...
Suman Singh
|
|
|
|
|
Are you trying to parse your own markup to make dynamic links? Just use the asp hyperlink if that is the case.
otherwise, read in the text line by line and do:
myString.Replace("{=NavLink=}", "What you want here");
|
|
|
|
|
hi all, I want to make a tap control on web application, there is a tap control for windows ones but I don't know how 2 do it on web ones,
you can see a sample on www.yahoo.com
thanks allllll :->
Thanks alot
Hamody
|
|
|
|
|
a general statement:
XmlSerializer ser = new XmlSerializer(typeof(SomeClass));
In runtime, the IDE throw the exception:
BindingFailure was detected
Message: The assembly with display name Data.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'Data.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'Data.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
=== Pre-bind state information ===
LOG: User = steed
LOG: DisplayName = Data.XmlSerializers, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null, processorArchitecture=MSIL
(Fully-specified)
LOG: Appbase = file:///D:/steed/project/Main/bin/Debug/
LOG: Initial PrivatePath = NULL
Calling assembly : System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///D:/steed/project.Main/bin/Debug/Data.XmlSerializers.DLL.
LOG: Attempting download of new URL file:///D:/steed/project/Main/bin/Debug/Data.XmlSerializers/Data.XmlSerializers.DLL.
LOG: Attempting download of new URL file:///D:/steed/project/Main/bin/Debug/Data.XmlSerializers.EXE.
LOG: Attempting download of new URL file:///D:/steed/project/Main/bin/Debug/Data.XmlSerializers/Data.XmlSerializers.EXE.
Though exception thrown, the application runs normally!
Any advice is hoped!
Thanks!
|
|
|
|
|
|
What are you asking about!!?????
<marquee>nishu
|
|
|
|
|
i want to manage a sound file and do pause,play with one button,
so i need to get if sound is playing then i pause it , if it is paused i play it .
so i need to know the state of sound that it is play or pause!!!!
|
|
|
|
|
Do you want to play files?
|
|
|
|
|
i m tryring to display data in datagridview but
error is occuring "cannot create child list of ChartofAcct"
GrdChart.DataSource = cr.GetDataSet;
GrdChart.DataMember = "ChartofAcct";
|
|
|
|
|
Hi buddy
I have to highlight search text from search results as it is in google or alibaba.com.
e.g. if I input paper as a searchtext in search results paper word should be highlighted. as it isin google help.
some one help me please.
I am working in asp.net2.0 using c#
Regards,
Shanti Bhushan
advancedsofts
Shanti bhushan
|
|
|
|