|
following are the simple answers..
1- use Anchor and Dock properties for your contained controls.
2- do your data fetching in separate thread so that your GUI remains responsive
3- SqlDataReader class didn't support the cancel funcitonality according to my knowledge (may be i am wrong)
but if i am right then have to implement the logic for the cancellation.
|
|
|
|
|
Emergency Fellow Coders! RED ALERT! This sucks
I have the SIMPLEST problem ever and maybe I have a brain freeze, but here goes.
1. Page loads, I bind a value to a TextBox. (i.e., "Dog")
2. The user changes the value of the text box. (i.e., "Dog & Cat")
3. The user clicks "SUBMIT"
4. "Dog" is entered into the Database?
What the heck is going on here? How does this stupid IDE NOT know that the value of the TextBox control has changed? Do I need to add anything else here, or what am I forgetting?
Please help!
Thanks,
Robert
Robert Green 613
|
|
|
|
|
robertGreen613 wrote: Page loads, I bind a value to a TextBox. (i.e., "Dog")
When a submit is clicked, before executing it's click event, ASP.NET will execute page_load once again. This changed the entered value to the previous one. So you need to change your page_load to something like
if(!IsPostBack)
{
}
|
|
|
|
|
I bought a new computer and installed Visual Studio 2005 Prof + Pack1 + AJAX 1.0 ( on Windows XP prof ), but my web site code ( C# ) that was working fine in the old system, now it shows errors. The Ajax controls appear in the Toolbox and yet it seems that the error message is related to AJAX extensions.
Here is the error message:
Error 107 C:\WEB development\SparkingIdeas\Default.aspx: ASP.NET runtime error: Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. (C:\WEB development\SS\web.config line 82) C:\WEB development\SS\Default.aspx 1 1 C:\WEB development\SS\
I even restored the computer before the AJAX installation restore point and then reinstalled it again but the problem still persists.
How to fix this problem ?
|
|
|
|
|
tedhill13 wrote: How to fix this problem ?
Not sure, but it sounds like there is something on your old machine that is not on the new machine that it is looking for.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Add reference of your ajax dll's in your web application.
the error clearly says that Microsoft.Web.Extensions file reference is missing.
and plz add the reference to the correct file version too.
|
|
|
|
|
I just found out that the cause of the problem was that the new AJAX that I downloaded and installed few days ago is actually of a more recent version.
It builds different references in the web.config and also in the pages that use AJAX controls.
I replaced those references and I do not get those error messages anymore.
Thank to you all anyway.
|
|
|
|
|
Hello
I want to replace a value in a datagrid in a specific cell ccording the the original data this my cose but there is a big error:
1-private void StatusClarification()
2- {
3- for (int i = 0; i < this.dtgCreditInfo.Rows.Count; i++)
4- {
5- if (int.Parse(this.dtgCreditInfo.Rows[i].Cells["Status"].Value.ToString()) <= -1)
6- this.dtgCreditInfo.Rows[i].Cells["status"].Value = "Modified";
7- if (this.dtgCreditInfo.Rows[i].Cells["Status"].Value.ToString() == "1")
8- this.dtgCreditInfo.Rows[i].Cells["status"].Value = "New";
9- if (this.dtgCreditInfo.Rows[i].Cells["Status"].Value.ToString() == "0")
10- this.dtgCreditInfo.Rows[i].Cells["status"].Value = "Deleted";
11- }
12- }
What can i do, in what i should replace the lines:6,8,10
Thanks in advance
Assaf
|
|
|
|
|
what is the exact error?
and there seems nth wrong with your code
|
|
|
|
|
the error was very long and appear in a messagebox:
this the first few line:
"
The following exception occurred in the DataGridView:
System.Exception:Deleted is not a valid value for int32,--> System.formatException:Input string was not in a correct formt.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
...
...
...
...
"
i think is about datatype and conversion between string to int or vice versa
Thanks a lot
Assaf
|
|
|
|
|
You are right....
this exception seems to be due to datatype conversion
now u should make sure that your "status" column only contain integer values
|
|
|
|
|
The "Status" contains just integer when i get Data from the DataSet but when i display this Data i want to Display a string instead of the integer to let the end user understand what it signify.
How i can do this ... ??
Thanks a lot
Assaf
|
|
|
|
|
Would the forums for the XNA toolset be under graphics?
The most knowledge doesn't mean the most wise...
|
|
|
|
|
Indeed - Marc Clifton has an article on XNA here[^].
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
|
What is Embedded? If i code with C# i want to connect with DDK for USB port.How will i do?
|
|
|
|
|
Huh? Rephrase your question into something that makes more sense
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
i need ebooks about:
1. programing mobile with
2. programing socket
3. DDK for USB port
please send to me by: bangtam170685@yahoo.com
Thank you!
A student
|
|
|
|
|
Don't bother with ebooks - just ask us and we'll also send you any code you need to bangtam170685@yahoo.com
Do you find you get lots of spam being sent to bangtam170685@yahoo.com?
"More functions should disregard input values and just return 12. It would make life easier." - comment posted on WTF
"This time yesterday, I still had 24 hours to meet the deadline I've just missed today."
|
|
|
|
|
Malcolm Smart wrote: Do you find you get lots of spam being sent to bangtam170685@yahoo.com?
Not yet - but I get the feeling that the count may be going up.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hii!
Thank you help me. Please send to me about if PC get a error from USB or COM port. PC will connect PDA with bluetooth and send SMS for admin. If you have got ebook about mobile with C#. Thanks
|
|
|
|
|
Hello,
How do I save data to the current thread. I want it to be accessible only to the current thread.
I need to be able to store data specific to a thread without being able to have control over the object that a thread is executing on. This is because most of the control is handed off to the runtime, so I can't just add it to an object that is created and used to launch my own thread.
I've found a method that looks promising:
System.Threading.Thread.SetData
System.Threading.Thread.GetData
The problem is that it takes a slot as a parameter and I won't be able to use the same slot name across all the calls to set and get data or the data will just get overwritten by other threads.
I want to store authentication information here. So, it needs to be unique for each thread. (In case you are wondering... I can't use the CurrentPrinicple object for my auth.)
Also, the data can be shared across all of the threads with the slots and that is also bad because authentication information shouldn't be shared like that.
Any ideas will be a great help.
Thanks!!!
|
|
|
|
|
bradsnobar wrote: The problem is that it takes a slot as a parameter and I won't be able to use the same slot name across all the calls to set and get data or the data will just get overwritten by other threads.
When you use GetData and SetData, then slot is thread specific. So if I store data on ThreadA to a slot (say "MySlot"), then ThreadB can store different data to a slot by the same name. ThreadB cannot overwrite the data stored by ThreadA.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Thanks much. That seems to work. I was just confused about how SetData and GetData worked apparently.
|
|
|
|
|
How to make emboss effect with safe code?
If it is possible please help me
Thanks in advance
Haloha...!!!!
|
|
|
|