Saturday, 22 January 2011

Visual Studio TableAdapter - Update not being generated

Is your UPDATE and DELETE not being generated with your Table adapter Configuration Wizard?


ANSWER:  Make sure that you have set your Primary Key on your SQL / Database table.

Tuesday, 27 July 2010

Telerik RadGrid Frustration

RadGrid does not show or isn't visible on Page_Load?

Set a default value for your datasource SelectCommand of  the SqlDataSource of your Grid.

e.g.) <SelectParameters>

                <asp:ControlParameter Name="FleetNo" ControlID="txtFleetNo" PropertyName="Text" DefaultValue="0"/>
</SelectParameters>
 
I discovered this error, when using a MaintainFleet page and and an AddFleet page.
The maintain page was working perfectly with the RadGrid. So I copied the code over for my new Add page.
I changed my dropdown from the Maintain Page to a textbox on the Add page. That field is the control parameter of the Select statement . And unless you set a default value for the Textbox one, the grid will not be visible until a postback is done. Of course the code was working on the Maintain page.... the Dropdown had been set with a default value in the code.

Wednesday, 06 January 2010

Ultimate Family Tree - Problems?



Got a Divide by Zero error when running your Ultimate Family Tree (platinum) Application? on XP or Windows 98

Here is the fix :
1. Download the patch file below.




2. Copy the Patch26.exe file to the directory containing FOXW2600.esl (the directory where FormSoft is installed).



3. Open a system Command Prompt window. The program item for this is in the Windows Start menu, under the Programs group called MS-DOS PROMPT.



4. Type the following commands at the command prompt. Note that the CD command must access the directory where you copied the PATCH26.exe file in step 1.



CD

(i.e.: CD C:\UFT )

ATTRIB -r FOXW2600.ESL

PATCH26 FOXW2600.ESL

ATTRIB +r FOXW2600.ESL



4. PATCH26 copies the original (unpatched) file to "Copy of Fox26000.esl".
The above information can be found in the Microsoft Knowledge Base.


(URL - http://support.microsoft.com/support/kb/articles/Q240/9/82.ASP )





Download the patch here  http://www.datacustoms.com/download/Patch_26.exe

Thursday, 30 July 2009

Excel Tip

This should come in handy for most Excel Users!!

Status bar statistics (Excel)

The status bar in Excel shows handy statistics when multiple cells are selected. In Excel 2007, the status bar shows the selected cells' average, count, and sum. This is an easy way to quickly analyze data without authoring formulas.



Thursday, 04 June 2009

Snippets from Author - Juliette Powell’s online interview about how social networking can actually aid your company

• Companies should tap into audience and clients opinions and feedback via social networking e.g.) Facebook, Twitter, LinkedIn.

• They should have conversations with their staff members to get their opinions and feedback. This is how you can discover the more applicable market for your company.

• The more employees are connected with Each other and with people in the same industry as your company, the more resource information is available for your company.

• Draw up Guidelines that reflect the culture and future of your company.

• The flow of information in your company shouldn’t just be top-down, but it should be dialogue, not dictatorship.

Wednesday, 03 June 2009

God and the Geese

There was once a man who didn't believe in God, and he didn't hesitate to let others know how he felt about religion and religious holidays.


His wife, however, did believe, and she raised their children to also have faith in God and Jesus, despite his disparaging comments. One snowy Eve, his wife was taking their children to service in the farm community in which they lived.
They were to talk about Jesus' birth. She asked him to come, but he refused.
"That story is nonsense!" he said. "Why would God lower Himself to come to Earth as a man? That's ridiculous!"


So she and the children left, and he stayed home. A while later, the winds grew stronger and the snow turned into a blizzard. As the man looked out the window, all he saw was a blinding snowstorm. He sat down to relax before the fire for the evening. Then he heard a loud thump. Something had hit the window. He looked out, but couldn't see more than a few feet. When the snow let up a little, he ventured outside to see
what could have been beating on his window.



In the field near his house he saw a flock of wild geese. Apparently they had been flying south for the winter when they got caught in the snowstorm and couldn't go on. They were lost and stranded on his farm, with no food or shelter. They just flapped their wings and flew around the field in low circles, blindly and aimlessly. A couple of them had flown into his window, it seemed.


The man felt sorry for the geese and wanted to help them. The barn would be a great place for them to stay, he thought. It's warm and safe; surely they could spend the night and wait out the storm. So he walked over to the barn and opened the doors wide, then watched and waited, hoping they would notice the open barn and go inside.


But the geese just fluttered around aimlessly and didn't seem to notice the barn or realize what it could mean for them. The man tried to get their attention, but that just seemed to scare them, and they moved further away. He went into the house and came with some bread, broke it up, and made a bread crumb trail leading to the barn. They still didn't catch on.

Now he was getting frustrated. He got behind them and tried to shoo them toward the barn, but they only got more scared and scattered in every direction except toward the barn. Nothing he did could get them to go into the barn where they would be warm and safe. "Why don't they follow me?!" he exclaimed.
"Can't they see this is the only place where they can survive the
storm?"


He thought for a moment and realized that they just wouldn't follow a human.
"If only I were a goose, then I could save them," he said out loud. Then he had an idea. He went into barn, got one of his own geese, and carried it in his arms as he circled around behind the flock of wild geese.


He then released it. His goose flew through the flock and straight into the barn -- and one-by-one, the other geese followed it to safety. He stood silently for a moment as the words he had spoken a few minutes earlier replayed in his mind: "If only I were a goose, then I could save them!" Then he thought about what he had said to his wife earlier. "Why would God want to be like us? That's ridiculous!"


Suddenly it all made sense. That is what God had done. We were like the geese--blind, lost, perishing. God had His Son become like us so He could show us the way and save us.


As the winds and blinding snow died down, his soul became quiet and pondered this wonderful thought. Suddenly he understood why Christ had come.
Years of doubt and disbelief vanished with the passing storm. He fell to his knees in the snow, and prayed his first prayer:


"Thank You, God, for coming in human form to get me out of the storm!"