Working on a .NET app, I've run in a 'cross-thread operation not valid' exception, only it seems to happen in the correct thread.
Is there a way to find out which thread is the one where a specific control has been created?
What I've found so far:
The 'InvokeRequired' operation only tells IF the current thread is the "owner thread"......
Hi,
I need to change padding for one column in ASP.NET GridView, while all other CSS atributes defined in external CSS file should be left untouched. How can I do it?
Thanks in advance!
Update:
Below is my code that solved the problem:
protected void gvwMaster_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Cells[0].A...
TableAdapter is a wrapper for DataAdapter. It's impossible to use TableAdapters in generic way (bacause they inherit Component class). Is it possible to get the wrapped DataAdapter out of TableAdapter?
...
hi,
I am trying to setup a scheduled task on W2k3 on a remote machine, which need to access the .Net library on UNC path. Service account and password is given to this task.
It is working fine when logged on to this remote box using service account, but when logged off, the task always fail as starting due to cannot find the library.
...
Hi everybody.
What is the best way to implement business processes without writing code?
I want to implement about 200 forms and workflows without writing a line of code because I want our customer to be able to extend the software without our help.
What is the best way to generate forms and then add business processes to them?
Thanks ...
I am developing an Asp.Net application, where I am sending a mail to the user's email address, if he forgets the password.
I want to check if the mail has been sent sucessfully or not.
Is there any method to know that for sure.
EDIT
In case if an email id does'nt exists, then would I detect a failure.
...
I'd like to extend log4net to accept custom log objects as parameter. For example:
public class MyLogObject
{
public string PropA;
public int PropB;
}
private MyLogObject entry = new MyLogObject() {PropA = "FooBar", PropB = 1};
Log.Debug(entry);
... this should work similar to exceptions.
In t...
I'm surprised the UrlHelper provides an encoder but not a decoder! Does anyone have the code for decoding or know where to find it in the MVC framework?
...
Hi all,
I have written a VSTO add-in that needs to get the an appointment information from the exchange server.
On exchange (Outlook Web Access) I change a subject line of an appointment. When I see that Outlook changed the subject line to a new value, I try to grab the new value programmatically and most of the time it grabs old value...
Hi All,
I am brand new to Silverlight and I am having a hard time with spacing. As you can see below, I have two lines of labels each in a Horizontal StackPanel. When they display there is a wide space (about an inch) between them. I can't figure out how to reduce this spacing. The height characteristics does not seem to do it.
Thanks...
I know that reference type will be garbage collected. I wanted to know whether value types will also be garbage collected from the stack?
...
I have a table with text box asking for Name and Address for reference. If need be, I would like the user to have the ability to add more and not be restricted to just one. How would I add a new table to a form by clicking on my "getMore" button?
<table style="width:50%;">
<tr>
<th colspan="2">Reference</th...
All,
In the past I created a lot of dynamic Excel (2003) spreadsheets in the following ways:
1.Using Excel COM object,
2.XML representation of spreadsheets,
3.SyncFusion controls for creating Excel Spreadsheets
All the above generated from C#.NET Code
Now my question is what are the best tehcnologies for creating Excel 2007 spreadsh...
I am building a web application where i got trapped in login module. I was about to implement lock out functionality using IP address of machine but for Dynamic IP router can be restarted so I was thinking to store MAC address which was not feasible to retrieve on web. Then i tried to know functionality on GMAIL and Twitter
Cases tha...
I have a string(xml) and I need to store it temporarily as memory stream and then store it as file at the end.
I know we can directly store xml in a file using textwriter but that is not what I want. I want the string to be converted to memory stream and then write into filestream.
how can I implement this? Sharing the code will be ver...
I'm following mcdave's advice from http://stackoverflow.com/questions/2191637 and using SubclassWindpow to host a CIPAddressCtrl in a winforms app. My constructor looks like this:
IPAddressBox::IPAddressBox(void)
{
// I have tried it with and without this part
INITCOMMONCONTROLSEX icc;
icc.dwICC = ICC_INTERNET_CLASSES;
...
When ever you set a string value in fluent NHibernate it alwasy sets the DB vales to Nvarchar(255), I need to store quite a lot of long string which are based on user inputs and 255 is impractical.
Just to add this is an issue with the automapper as I am using fluent NHibernate to build the database.
...
I thought this would be a simple google search but apparently not. What is a regex I can use in C# to parse out a URL including any query string from a larger text? I have spent lots of time and found lots of examples of ones that don't include the query string. And I can't use System.URI, because that assumes you already have the URL...
ASP.NET automatically includes the following script tag:
<script src="/WebResource.axd?d=8H_C0aee9xE8e9a-3YoRhA2&t=633413907763620168" type="text/javascript"></script>
However the clients site is being proxied through another site. So the URL to the root of their site is:
http://domain.com/somename/
So I need to prefix the WebR...
I am in the process of converting our logging implementation to use System.Diagnostics.TraceSource. We want to take advantage of activity tracing and we want to read multiple log files from multiple servers with tools like WCF's svctraceviewer & logparser.
I have converted our code to use TraceSource and now I am in the process of eval...