hi experts,
I am trying to connect my application to read from ms access database 2007. I am using C# and Visual Studio 2008. How to setup the sql Adapters to read and write to the database t...
I am trying to read a text file into a text box, but I can't figure out how to convert a stream to a string.
private void ReadFileIntoTextBox()
{
System.IO.Str...
I've been reading all sort of questions about writing to the app.config file and yet have not found a good answer that will show me how to accomplish that. I am usinf framework 3.5 and visual ...
The code snippet below calculates the timespan between two periods
DateTime dtStart = DateTime.Parse(StartTime.Text);
DateTime dtEnd = DateTime.Parse(EndTime.Text);
...
Hi,
How do I check if a file exists, and if it does how do I delete the file?
Thank you very much! :)
C# Web Apllication Connection String Error = System.Configuration.ConfigurationSettings.AppSettings is a 'property' but is used like a 'method'
The offending line is :
objConn = new Sys...
hi all,
I have this annoying sql server problem. I am using sql 2005 express edition with visual studio 2008 pro - C#, in sometimes, I can access the database just fine, and some other times ...
Hi,
I am using LINQ to SQL and are dragging and dropping my tables and stored procedures to the LINQ designer file .dbml. This works great and I can query against this object relational mod...
I am writing a Windows application using C#.Net. What is the preferred method for storing user settings/preferences without writing to the registry?
I have a .Net system service that requires calls to start and stop 2 other services. I want to run this service in a limited context, but still be able to control the other 2 services. I am us...
I have a .NET webservice that is called from a .NET webserver. If it takes more than 90 seconds for the webservice to return data, there is a timeout exception from System.web.services
Wh...
I do not know how to create a WCF client in code with CustomBinding that has readerQuotas changed to larger value... I have attached a code snippet to show what I am trying to do. When I try t...
Hi,
I want to access a variable through out my project.So,i am using a viewstate .
I am assigning value for a viewstate variable in this way
viewstate["username"]="xxx" in one page ,
i...
I'm using Visual Studio 2005 to implement ABCUpload progress bar. And I encounter problem when puting the following code with error "The Controls collection cannot be modified because the cont...
I have a re-sizing panel in my application which I want to add a 'border' to in the form of a rounded rectangle. Drawing a standard rectangle seems easy using the following code:
private v...
This should be really simple but I'm stuck. Very basic .NET. I'm trying to list all of the files in a directory, create hyperlinks out of their file paths, and then have it so the user can d...
I have an ASPNet 2.0 gridview with a single hyperlink field.
The gridview is bound to a database table where there is a name field and url field. The desired effect is to display in ea...
Hello,
My situation. I am using HTML-PDF dll to create dynamic pdfs. The HTML called by the pdf converter is protected with authorisation so only logged in users can view PDF's (eg invoice...
I have a gridview
<asp:GridView ID="grdSearchResults" runat="server"
AutoGenerateColumns="False" DataKeyNames="PropertyID"
on...
Hi
Having some problem sometimes when I close my app. The program is still active if I look att the running processes.but I can't se any open form
I'm using
Private Sub frmMain_FormC...
I posted this question and received a clue here: http://www.experts-exchange.com/Microsoft/Development/.NET/Q_23064765.html
I need to retrieve the credentials of a logged-in user from our L...
how do I delete row from datatable asp.net vb?
I am getting the ever-popular error:
Application attempted to perform an operation not allowed by the security policy. To grant this application the required permission, contact your system ...
Hi!
I need some help with a function that returns the IP of a machine using the computer hostname ot that machine:
So in a network I have a machine/server that have the hostname SRV and ...
I need to read an image file from a blob column in MySql database into a byte array that can be used as an image source in a WinForm. I do not know the size of the blob.
The code:
{
...
in...