All posts by Julie

Combining ink controls and server controls on a web page

A reader of my recent Ink on the Web article in CoDe Magazine (samples available here) emailed me with an odd problem that I had to see in action before I realized what was going on.

The problem was this. She had a web form with an ink-enabled winforms control on it that worked fine. But when she added an asp:dropdownlist, the page crashed. She said she got no error message.

I tried the same thing and received a big fat error saying “Control ‘dropdownlist1’ of type ‘dropdownlist’ must be placed inside a form tag with runat=server”.

Aha! In order to do most of the tricks I am performing with moving the ink control’s data from the client side to the server side require the form to not be a server-side form. Therefore “runat=server” does not exist in the form tag.

The solution is to have separate forms on the page for the ink control and the server side controls.

Kirk Allen Evans reminds us that only one server side form can be visible at a time, so you have to design your page around these limitations unfortunately. You don’t be able to have server controls in a form, then below that an ink control in another form and then below that more server controls in a third form.

The general html of the page would look like this:

 
<html>
<HEAD> …some stuff in here </HEAD>
 
<body>
<script> ..some scrpts here </script>
 
<!–this is the form that handes the inkable control. It does NOT have runat=server–>

  <form id=”inkForm” name=”inkForm” action=”Handler.ashx” method=”post”>

     <object id=”ComplexInkControl” classid=”InkControls.dll#InkControls.MyInkControl” style=”width: 100px;
     height: 100px”
VIEWASTEXT></object>

  </form>
 
<!–this is the form that has server side controls–>

   <form id=”serversideFORM” runat=server>

        <asp:DropDownList ID=”DropDownList1″ runat=”server” AutoPostBack=”True”>
             <asp:ListItem>a</asp:ListItem>
            
<asp:ListItem>b</asp:ListItem>
             <asp:ListItem>c</asp:ListItem>
            
<asp:ListItem>d</asp:ListItem>
         
</asp:DropDownList><br />

         <asp:Label ID=”Label1″ runat=”server” Text=”Label”></asp:Label><br />

     </form>

</body>

</html>

Don’t Forget: www.acehaid.org

Vermont IT Jobs: Windows C/C++ Software Developer in Williston VT

MicroStrain, Inc., a leading microminiature sensor developer, is seeking a Visual C++ developer responsible for creating and maintaining their flagship, wireless sensor network application, Agile-Link. Qualified candidates will be required to write documentation for Agile-Link’s development, code design, and testing. In addition, candidates must have strong teamwork skills to interact with various engineers, sales, and support staff in the development of custom applications and software development kits. 

Applicants must have 3+ years of software design and development experience on the Microsoft Windows platform, including an understanding of software life cycle design. Proven, advanced knowledge of C/C++, object oriented design, hardware/software interaction, and the Microsoft Foundation Classes (MFC) are required. Candidates must demonstrate a strong debugging foundation, and a clear, critical writing and verbal skill set to describe any such discovered issues.

A strong working knowledge of Visual Basic, the Microsoft .NET framework, and open source operating systems such as Linux and FreeBSD are a plus. A Bachelors of Science Degree in Computer Science or better is preferred.

http://www.microstrain.com/employment.aspx Our employment page

Please send electronic resume to: humanres@microstrain.com and mention that you came thru vtdotnet.

Don’t Forget: www.acehaid.org

Korby Parnell’s report from Deeper in .NET

I was nicely surprised to see Korby Parnell in Milwaukee at Deeper in .NET.  Luckily for me, the one session I had to miss, Scott Hanselman’s (I was in my room doing one last run through of my talk), Korby has laid out in detail. But not so much technically as about what an unbelievabley phenomenal presenter Scott is. I laughed when I read that Scott makes fun of VB programmers who comment using this

‘//this is my comment

which I do in the demo code for presentions because it’s so much more obvious than a little apostrophe.

Scott hadn’t seen my demo so it was a funny coincidence.

If you want more tips about what makes a speaker a great speaker, check out Korby’s homage to Scott.

Posted from BLInk!

Taste of Milwaukee and Wisconsin at Deeper in .NET

I’m in Milwaukee for the Deeper in .NET event that is happening today. Five speakers back to back all day starting with Michele Leroux Bustamante doing a talk on WCF, then Scott Hanselman, my (data access talk), Bill Hatfield and Jason Beres. I hear there are nearly 500 people registered. Wow!

Yesterday I had a great look at and taste of some of the specialties of the area.

My first surprise was the Bloody Mary that had something a little different in it

Yes, in between the celery and the lemon is a sausage. It’s just the way they serve them here! This drink was ordered (and consumed) by Chris Barwick who I didn’t think I knew until he told me he was OptionsScalper. Oh! I sure know him by that alias! Chris picked me up at the airport and I was amazed to learn all of the brainy things (like F# research at Microsoft’s Cambridge UK research facility) that he’s involved in.

There was a dinner last night for the speakers and some other locals and out of towners which was “taste of Wisconsin” – all of the Wisconsin treats. The bratwurst was awesome and they also had, get this, Beer Cheese soup. Had to try that and it was tasty.

It was a blast to get to meet Avonelle Lovhaug in person finally and Val the C# Gal too! Casey Chesnut is here and I divulged to him the secret of how I got ink on Virtual Earth. It’s a big deal for me that I actually figured out something that Casey the mad genius got stumped on. Probably the only time *that* will ever happen.

Oddly there is a small FoxPro conference here too so it was a great surprise to bump into my dear friend Ceil Silver and some of the ol’ FoxPro gang.

(links later)

Milwaukee is a city filled with beautiful old buildings (it was the 2nd biggest inland port city after Chicago in the 1800’s. I’m looking forward to strolling around tomorrow to see more.

Scott Isaacs and co. have done an amazing job and I’m really looking forward to the day.



Posted from BLInk!

Reason # 4218 why I don’t think I’ll ever write a book

From Chris Sells’ blog:

Then Mike read all 1300 pages, making sure that the copy editor didn’t change the meaning of anything.

With the PDFs in hand, we both read the ~1000 pages again (the move to Quark puts in the final styles), looking for things that got messed up during the move between software packages or new things that we notice.

Egad!

I have a feeling that Charles Petzold is doing the same about now, since on 4/5 he said he had one more month before his 1000 page WPF book is due.

Don’t Forget: www.acehaid.org

Code Camp 5 Waltham Mass – keep on submitting those abstracts

Code Camp 5 is only in a few more weeks. The abstract list is looking a little light (although Thom could be just having a hard time deciding from to many?) But it’s not too late to submit your talks and certainly not too late to register.

Here are the details.

I’m still on the fence since I have to drive to Montreal on Monday for DevTeach where I give one talk a day for three days. Waltham is about 4 hours southeast of where I live and Montreal is about 3 hours north. So you can imagine my dilemma. 🙂

And before any of that, I am on my way to Milwaukee tomorrow for Deeper in .NET (speakin on ADO.NET 2.0 and SQL Server 2005 Integration) then home for a few days and then off again to speak in at HUNTUG (speaking on Advanced Data Access in ADO.NET 2.0) as an INETA speaker. Hopefully it will rain a few times while I’m gone on the peas and lettuce seeds in my garden.


Don’t Forget: www.acehaid.org

Joel Spolsky’s Chicken and Egg Theory and TabletPCs

Joel Spolsky’s May 2000 article on the Chicken and the Egg Problem seems like a good place to look for solving the adoption problems of the Tablet PC (remember “Mobile PC” now) which is discussed endessly by Tablet PC developer (“make tablets easier to buy so people will buy our software!”) and the manufacturers (“make more software so people will want to buy our tablets!”). [read more …]

[A DevLife post]

Don’t Forget: www.acehaid.org

DevConnections Decks and Demos all on line

Now that all three of my DevConnections powerpoint decks and demos are online, I just wanted to have one post for linking to them all.

If you were an attendee of ASPConnections or Visual Studio Connections, you should have password access to this stuff on the DevConnections site.

Otherwise, they are on the presentations page of my pwn website.

On that page, the talk are listed alphabetically. Look for:

  1. Advanced Data Access Patterns with ADO.NET 2.0
  2. Five (Supposedly) Scary Things About .NET (That don’t really have to be)
  3. Using WSE 3.0 Today to Prepare for WCF Tomorrow

On that last one, note that I have also recorded the demos associated with that talk. Check this post for links to those videos.



Don’t Forget: www.acehaid.org