|
I don't get an error message, that's the problem.
I don't really understand what you mean with quickwatch, but if you mean what the output is at the end it gives:
QUERY: bla bla inserted
When I do this query directly with sql in the database it there is no problem.
Regards
William
wistiti 5
|
|
|
|
|
No what I meant was: in debug mode (set a breakpoint)
If the variable is assigned hover over the variable with your cursor, right-click and choose quick watch.
You'll get a dialog with some info. The cool thing about quickwatch is that you can alter the data or see entire objects.
Coulda, woulda, shoulda doesn't matter if you don't.
|
|
|
|
|
May be the user via which u r connecting to db doesnt have permisions to insert or update in this table
|
|
|
|
|
And how kan I solve this problem?
thx
wistiti 5
|
|
|
|
|
Don't know the syntax, but you can look it op on google (try looking on GRANT, ALTER USER, ...)
good luck.
Coulda, woulda, shoulda doesn't matter if you don't.
|
|
|
|
|
.
.
.
.
SqlCommand command = new SqlCommand();
command.Connection = connection ;
command.CommandText = queryString;
try
{
connection.Open();
command.ExecuteNonQuery();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
finally
{
connection.Close();
}
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
hi there ... i have such a problem. pls help. I have a Windows Service that listening some folder ... when some file is created there my service must define is upload of that file is finished or it's just a part of original file. pls tell me how can i define that.
|
|
|
|
|
The only way ive managed to do this in the past is to continually try to obtain write-access to the file until such time as an exception is no longer raied (the exception due to the fact that whatever is writing to the file will have exclusive access to it).
You could also look up FileSystemWatcher, which may or may not expose events capable of doing this better - i have not personally tried this in .NET
|
|
|
|
|
I populated pivot table component in a C# application from SSAS cube.
I want to write back data into the Cube, by editing data in pivot table component.
But the application is not allowing to edit the data in pivot table component.
Please advise
|
|
|
|
|
Hi.
I have a very simple news system, that takes some text from a multiline textbox and insert it into a access database.
But when i save the data to the database, the newlines dont get saved with the data.
How do i save the newlines with the data to the database, and then display it on my site.
here is the code i use to insert into the database, it's just a sqldatasource.
news.InsertCommand = "INSERT INTO [news] ([headline], [content], [date], [user]) VALUES ('"+ txtHeadline.Text +"','"+txtContent.Text+ "','"+DateTime.Now.ToString()+"','"+User.Identity.Name.ToString()+"')";
news.Insert();
|
|
|
|
|
Hi.
To get newlines in the displayet data on the site, I just replaced "newline" with <br /> like this:
txtContent.Text.Replace(Environment.NewLine, "<br />")
-- modified at 6:35 Wednesday 29th March, 2006
|
|
|
|
|
In which column you have to save data with new lines?
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
Hi all:
I need a password textbox. But I can't find it in the toolbox and there is not a property to convert the plain textbox to a password field. Does anybody have a solution for this problem please?
Thanks in advance!!!
Asura
|
|
|
|
|
Right-click on the textbox and select "Properties".
There is an option labelled "TextMode".
This has 3 choices: select Password and you're done.
www.merrens.com www.bkmrx.com
You can ignore relatives but the neighbours live next door
|
|
|
|
|
You can use the property PasswordChar of a textBox.
TextBox1.PasswordChar = "*";
|
|
|
|
|
drag and drop one textbox from toolbox and look in proprties u have proprty called PasswordChar. set asterix character or another one by you...
_____________________
Proud to be Albanian
_____________________
|
|
|
|
|
hi there
alot of people told me, including some assitants on our faculty, that if i want to use methods on diferent programming languages is, to use SOAP standard, which also is the best option i would like to use.
so let me give you few information on what i want to use first:
i have an XML file with alot of data- let's say it is the data of URL links to diferent informational sites (linux distros, diferent tools for linux etc). now, the server part would be written in PHP using the SOAP standard to send data.
the thing is, i don't know how to send data if we assume that the clients could be written in C#, Java or any other possible language. i googled it a bit and i found only simple SOAP examlpes, where server sends int or string type, array is nowhere to find :S
i mean, i know the client part would call a method defined in WDSL, but- what if PHP would merge all URL links into PHP's Array() like this:
var $ArrayOfLinks = array(
0 => 'http://domainA.com/',
1 => 'http://domainB.com/',
2 => 'http://domainC.com/',
);
how could i then typecast from this type of array into C# readable type (ArrayList or similar)?
please help me out with this.. it's killing me.
|
|
|
|
|
If I'm correct you can send an array of strings using soap to your C# client,the C# client should interpret this as an array of strings. You can then convert it to an arraylist by using the AddRange method of the ArrayList.
WM.
What about weapons of mass-construction?
|
|
|
|
|
If i want to draw a piece of image inside another i use this:
g.DrawImage(img, rect1, rect2, unit);
but if i want to cut a portion of image from g as i'm using a rubber, how can i do?
I've tried with
Image img = new Bitmap(20, 20); // 20 is the dimension of the rubber
then
rect2.Width = rect2.Height = 20;
g.DrawImage(img, rect1, rect2, unit);
but it doesn't work.
WHY??
|
|
|
|
|
I want my add-in to know the breakpoint when user add it.
Dilly
|
|
|
|
|
So far, to my opinion, I can not do this in.net2003 and 2005.
|
|
|
|
|
i was working on images a couple of days ago and found that for pointers we use unsafe blocks....the question is that why do we say that unsafe code is faster than ordinary getpixel method code...
haseeb
|
|
|
|
|
You dont have all the runtime checks in unsafe blocks. Its a lot faster, but also a lot more dangerous to use.
WM.
What about weapons of mass-construction?
|
|
|
|
|
I have a problem using a datagrid.
I have 2 forms. 1 with a data grid and one textbox (for test use)
and the second form has a couple of textboxes.
now i use a CustomRowEventArgs to select the row.
In form 1 this works..
I can even read The first collumn in the Textbox (for test use)
I also let him open the second form.
but there it does nothing.
If needed I can past the code or pieces of the code here.
I really need some help..
|
|
|
|
|
Sorry, but i didn't get what are u trying to do?
can u explain in detail and paste some code
Regards,
Pramod
|
|
|
|