Fwd: 25 new messages in 15 topics - digest



==============================================================================
TOPIC: Appending a node to an existing xml file(C#)
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/60d1f2a7667cf2ad?hl=en
==============================================================================

== 1 of 2 ==
Date: Mon, Apr 14 2008 9:32 pm
From: Rookie


  protected void btn_ins_Click(object sender, EventArgs e)
   {
       XmlDocument xmlDoc = new XmlDocument();
       xmlDoc.Load(MapPath("~/App_Data/Users.xml"));

       XmlDocumentFragment docFrag = xmlDoc.CreateDocumentFragment();
       string id = txt_ins_uid.Text;
       string name = txt_ins_uname.Text;
       string pwd = txt_ins_pwd.Text;
       docFrag.InnerXml =
"<user><id>"+id+"</id><name>"+name+"</name><password>"+pwd+"</password></user>";
       XmlNode childNode = xmlDoc.DocumentElement;
       childNode.InsertAfter(docFrag, childNode.LastChild);
       xmlDoc.Save(MapPath("~/App_Data/Users.xml"));

       FillGrid();
   }

On Sun, Apr 13, 2008 at 9:10 AM, dexter <leo.subhadeep@gmail.com> wrote:

>
> Hi guys,
> - I want to create a node in an existing xml file. For example, let's
> assume there is an xml file called "songs.xml".
> It looks like-
> <?xml version="1.0"?>
> <Songs>
> <song><id>1</id>
> <title>Till I die</title></song>
> <song><id>2</id>
> <title>Please forgive me</title>
> </song>
> </Songs>
>
> .................................................................................................................
> Now if I want another "song" node with id=3, how should I do that?
> Please help.
> Thanks in advance.
>
> >
>


--
You can't make someone love you, all you can do is be someone who can be
loved, the rest is up to the person to realize your worth.




== 2 of 2 ==
Date: Mon, Apr 14 2008 10:37 am
From: CK


This is exactly the same as this thread:

http://groups.google.co.uk/group/DotNetDevelopment/browse_thread/thread/b8033efb40d28482/96d272e98ace3799

Alays read some threads before asking questions....

On 13 Apr, 04:40, dexter <leo.subhad...@gmail.com> wrote:
> Hi guys,
> - I want to create a node in an existing xml file. For example, let's
> assume there is an xml file called "songs.xml".
> It looks like-
> <?xml version="1.0"?>
> <Songs>
> <song><id>1</id>
> <title>Till I die</title></song>
> <song><id>2</id>
> <title>Please forgive me</title>
> </song>
> </Songs>
> .................................................................................................................
> Now if I want another "song" node with id=3, how should I do that?
> Please help.
> Thanks in advance.





==============================================================================
TOPIC: How to create multiple sessions for a single visitor for different tab?
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/06d43ca8ae6a4aef?hl=en
==============================================================================

== 1 of 4 ==
Date: Tues, Apr 15 2008 9:12 am
From: sowen


as I said, this is not about Session. Session is just the easiest way
can be used as a storage example at this point. It's about how we
query the server-side viewstate and return the value.

It's difficult for me to post some code here. but the main reason is,
there are many pages in our system dealing with complicated database
entity (parent-children etc.), to improve performance, we place the
entity in ViewState, then use lazy binding to bind child items.

For example, when a user wants to create a new record, open the pages,
a blank entity is created and is placed in the ViewState, then after
fill out all forms (some forms might not have to be opened, in that
case, the child-entity can be null), when the user clicks save, the
program will go through the entity and persist.

say, at the same time, the same user opens another window to search an
existing record on the same page, he opens a few sub-items, so all
opened entities are in the viewstate, other are not (coz it's lazy-
binding), then we are going to have a viewstate conflict, one is brand-
new, another has data from an existing record.

now, the user clicks save to persist the new record. it blows out.

so, single window, our structure works well; in IE6, it's easy to work
around; in tabs, there will be a big issue.

what I am looking for is, find a way to identify the user current
working instance( window or tab), and create another server-side
viewstate entry for that specific page.



On Apr 14, 4:51 pm, "Andrew Badera" <and...@badera.us> wrote:
> In that case, your pages really need to be as atomic and idempotent as
> possible. Could you provide an example of the problems (I can imagine
> plenty, but something specific would help) you're dealing with? And I'll ask
> again, is Session truly necessary, or did you/your team *make *it a
> necessity.
>
>
>
> On Mon, Apr 14, 2008 at 5:25 PM, sowen <sowenche...@gmail.com> wrote:
>
> > sorry, haha, indeed my word was confusing.
>
> > I meant when a user opens multiple tabs in FF, or in IE7, or in opera,
> > the server-side viewstate will fail
>
> > I am not saying a user opens one FF, one IE7, and one opera, etc.
>
> > On Apr 14, 4:22 pm, "Andrew Badera" <and...@badera.us> wrote:
> > > Let's clarify .. are we really talking multiple browsers as in IE, FF,
> > > Opera, Safari (which last I knew, this situation should initiate
> > multiple
> > > sessions) or multiple instances of a single browser, where things get
> > more
> > > mushy?
>
> > > On Mon, Apr 14, 2008 at 5:19 PM, sowen <sowenche...@gmail.com> wrote:
>
> > > > because this is a huge system, we have to prepare all kind of
> > > > different users' behavior
>
> > > > whether to use Session is a different topic, the important thing is
> > > > where to store ViewState in server-side. Even the Microsoft its own
> > > > Session ViewState control doesn't support the multiple browsers
> > > > either. We can certainly later on change the Session to anything else,
> > > > but that will be the same. How to query the ViewState is the key. If
> > > > we set ViewState["var1"] = "hello" in window A, then in window B, when
> > > > we get ViewState["var1"] will be hello too.
>
> > > > that's something we are trying to solve.
>
> > > > On Apr 14, 4:11 pm, "Andrew Badera" <and...@badera.us> wrote:
> > > > > Also, what is motivating your users to open all these browsers,
> > browser
> > > > > windows, tabs? Or are you just trying to prepare for all
> > possibilities?
>
> > > > > On Mon, Apr 14, 2008 at 5:10 PM, Andrew Badera <and...@badera.us>
> > wrote:
> > > > > > Your pages should be atomic and stateless as possible. Postbacks
> > > > should be
> > > > > > idempotent as much and as frequently as possible.
>
> > > > > > Using Session has generally never been the best of ideas. Is it
> > > > absolutely
> > > > > > necessary in your architecture, or is it a necessity you've
> > imposed on
> > > > > > yourselves?
>
> > > > > > On Mon, Apr 14, 2008 at 5:05 PM, sowen <sowenche...@gmail.com>
> > wrote:
>
> > > > > > > yes, this is ASP.NET, I thought I put it in the title, sorry.
>
> > > > > > > I didn't mean I want to get the tab id, I was just using that as
> > an
> > > > > > > example.
>
> > > > > > > The problem is we are using server-side viewstate and store it
> > in
> > > > the
> > > > > > > session, but it doesn't work in multi-browsers.
> > > > > > > if one user opens two browsers and do the post-back to a same
> > page,
> > > > > > > the session (viewstate) will have conflict if we query the
> > session
> > > > > > > with the key directly.
>
> > > > > > > what we want is having another unique identifier for a different
> > > > > > > window (tab) as part of the key.
> > > > > > > for ie6, it's really easy, just use the window handler + the
> > session
> > > > > > > key; but firefox and ie7 are just not that easy.
>
> > > > > > > other than that, we are also seeking some other ideas; in the
> > > > > > > meantime, i just post that question here and see if anyone else
> > can
> > > > > > > bring a sparkle.  :)
>
> > > > > > > On Apr 14, 3:48 pm, "Andrew Badera" <and...@badera.us> wrote:
> > > > > > > > ok, yeah, asp.net? you didn't specify. when you said .net
> > > > previously,
> > > > > > > I
> > > > > > > > assumed you meant a desktop client.
>
> > > > > > > > For the most part, you can never interact with a browser from
> > a
> > > > > > > server,
> > > > > > > > beyond displaying page content and associated stuff there.
> > > > > > > ActiveX/Mozilla
> > > > > > > > ActiveX would in fact be required for that, I don't think
> > XPCOM
> > > > would
> > > > > > > have
> > > > > > > > been a solution. That said, you might be able ??? to get the
> > tab
> > > > index
> > > > > > > using
> > > > > > > > JavaScript, and report it back to the server, whether through
> > a
> > > > > > > conventional
> > > > > > > > postback, AJAX, whatever.
>
> > > > > > > > I'm not understanding the nature of the conflict you're
> > looking to
> > > > > > > avoid
> > > > > > > > here, could you provide more detail? You can always generate a
> > key
> > > > for
> > > > > > > a
> > > > > > > > page on non-postback page loads, and use that key for objects
> > > > stored
> > > > > > > in the
> > > > > > > > session ....
>
> > > > > > > > On Mon, Apr 14, 2008 at 4:32 PM, sowen <sowenche...@gmail.com>
> > > > wrote:
>
> > > > > > > > > hi, I know this question sounds weird. But if there is no
> > easy
> > > > way
> > > > > > > to
> > > > > > > > > retrieve the tab index, what would be a possible way to
> > create a
> > > > > > > > > different session for a different tab, even though
> > internally
> > > > they
> > > > > > > are
> > > > > > > > > still one session, but with a "tab-index" as part of the
> > session
> > > > > > > key,
> > > > > > > > > the user is able to browse the same page without data
> > conflict.
>
> > > > > > > > > any sparkle is appreciated. thanks!
>
> > > > > > > > --
> > > > > > > > --Andy Baderahttp://
> > > > > > > andrew.badera.us/http://flipbitsnotburgers.blogspot.com/
> > > > > > > > and...@badera.us
> > > > > > > > (518) 641-1280
> > > > > > > > Google me:http://www.google.com/search?q=andrew+badera
>
> --
> --Andy Baderahttp://andrew.badera.us/http://flipbitsnotburgers.blogspot.com/
> and...@badera.us
> (518) 641-1280
> Google me:http://www.google.com/search?q=andrew+badera



== 2 of 4 ==
Date: Tues, Apr 15 2008 9:35 am
From: Cerebrus


No problem ! My postbacks have got Viagra ! ;-)

On Apr 15, 2:10 am, "Andrew Badera" <and...@badera.us> wrote:
> Postbacks should be idempotent as much and as frequently as possible.




== 3 of 4 ==
Date: Tues, Apr 15 2008 9:40 am
From: "Andrew Badera"


And that's exactly what I'm telling you: atomic and idempotent. If you're
talking about ViewState in order to populate controls, the page should never
care which instance it's being used by.

That, or I'm completely, totally misunderstanding you. If you don't have to
worry about competing or racing Session or ViewState values, then why should
the page ever care? If it's populating from the DB, it should, as a
stateless medium, completely self-construct.


On Tue, Apr 15, 2008 at 12:12 PM, sowen <sowencheung@gmail.com> wrote:

>
> as I said, this is not about Session. Session is just the easiest way
> can be used as a storage example at this point. It's about how we
> query the server-side viewstate and return the value.
>
> It's difficult for me to post some code here. but the main reason is,
> there are many pages in our system dealing with complicated database
> entity (parent-children etc.), to improve performance, we place the
> entity in ViewState, then use lazy binding to bind child items.
>
> For example, when a user wants to create a new record, open the pages,
> a blank entity is created and is placed in the ViewState, then after
> fill out all forms (some forms might not have to be opened, in that
> case, the child-entity can be null), when the user clicks save, the
> program will go through the entity and persist.
>
> say, at the same time, the same user opens another window to search an
> existing record on the same page, he opens a few sub-items, so all
> opened entities are in the viewstate, other are not (coz it's lazy-
> binding), then we are going to have a viewstate conflict, one is brand-
> new, another has data from an existing record.
>
> now, the user clicks save to persist the new record. it blows out.
>
> so, single window, our structure works well; in IE6, it's easy to work
> around; in tabs, there will be a big issue.
>
> what I am looking for is, find a way to identify the user current
> working instance( window or tab), and create another server-side
> viewstate entry for that specific page.
>
>
>
> On Apr 14, 4:51 pm, "Andrew Badera" <and...@badera.us> wrote:
> > In that case, your pages really need to be as atomic and idempotent as
> > possible. Could you provide an example of the problems (I can imagine
> > plenty, but something specific would help) you're dealing with? And I'll
> ask
> > again, is Session truly necessary, or did you/your team *make *it a
> > necessity.
> >
> >
> >
> > On Mon, Apr 14, 2008 at 5:25 PM, sowen <sowenche...@gmail.com> wrote:
> >
> > > sorry, haha, indeed my word was confusing.
> >
> > > I meant when a user opens multiple tabs in FF, or in IE7, or in opera,
> > > the server-side viewstate will fail
> >
> > > I am not saying a user opens one FF, one IE7, and one opera, etc.
> >
> > > On Apr 14, 4:22 pm, "Andrew Badera" <and...@badera.us> wrote:
> > > > Let's clarify .. are we really talking multiple browsers as in IE,
> FF,
> > > > Opera, Safari (which last I knew, this situation should initiate
> > > multiple
> > > > sessions) or multiple instances of a single browser, where things
> get
> > > more
> > > > mushy?
> >
> > > > On Mon, Apr 14, 2008 at 5:19 PM, sowen <sowenche...@gmail.com>
> wrote:
> >
> > > > > because this is a huge system, we have to prepare all kind of
> > > > > different users' behavior
> >
> > > > > whether to use Session is a different topic, the important thing
> is
> > > > > where to store ViewState in server-side. Even the Microsoft its
> own
> > > > > Session ViewState control doesn't support the multiple browsers
> > > > > either. We can certainly later on change the Session to anything
> else,
> > > > > but that will be the same. How to query the ViewState is the key.
> If
> > > > > we set ViewState["var1"] = "hello" in window A, then in window B,
> when
> > > > > we get ViewState["var1"] will be hello too.
> >
> > > > > that's something we are trying to solve.
> >
> > > > > On Apr 14, 4:11 pm, "Andrew Badera" <and...@badera.us> wrote:
> > > > > > Also, what is motivating your users to open all these browsers,
> > > browser
> > > > > > windows, tabs? Or are you just trying to prepare for all
> > > possibilities?
> >
> > > > > > On Mon, Apr 14, 2008 at 5:10 PM, Andrew Badera <and...@badera.us
> >
> > > wrote:
> > > > > > > Your pages should be atomic and stateless as possible.
> Postbacks
> > > > > should be
> > > > > > > idempotent as much and as frequently as possible.
> >
> > > > > > > Using Session has generally never been the best of ideas. Is
> it
> > > > > absolutely
> > > > > > > necessary in your architecture, or is it a necessity you've
> > > imposed on
> > > > > > > yourselves?
> >
> > > > > > > On Mon, Apr 14, 2008 at 5:05 PM, sowen <sowenche...@gmail.com>
> > > wrote:
> >
> > > > > > > > yes, this is ASP.NET, I thought I put it in the title,
> sorry.
> >
> > > > > > > > I didn't mean I want to get the tab id, I was just using
> that as
> > > an
> > > > > > > > example.
> >
> > > > > > > > The problem is we are using server-side viewstate and store
> it
> > > in
> > > > > the
> > > > > > > > session, but it doesn't work in multi-browsers.
> > > > > > > > if one user opens two browsers and do the post-back to a
> same
> > > page,
> > > > > > > > the session (viewstate) will have conflict if we query the
> > > session
> > > > > > > > with the key directly.
> >
> > > > > > > > what we want is having another unique identifier for a
> different
> > > > > > > > window (tab) as part of the key.
> > > > > > > > for ie6, it's really easy, just use the window handler + the
> > > session
> > > > > > > > key; but firefox and ie7 are just not that easy.
> >
> > > > > > > > other than that, we are also seeking some other ideas; in
> the
> > > > > > > > meantime, i just post that question here and see if anyone
> else
> > > can
> > > > > > > > bring a sparkle.  :)
> >
> > > > > > > > On Apr 14, 3:48 pm, "Andrew Badera" <and...@badera.us>
> wrote:
> > > > > > > > > ok, yeah, asp.net? you didn't specify. when you said .net
> > > > > previously,
> > > > > > > > I
> > > > > > > > > assumed you meant a desktop client.
> >
> > > > > > > > > For the most part, you can never interact with a browser
> from
> > > a
> > > > > > > > server,
> > > > > > > > > beyond displaying page content and associated stuff there.
> > > > > > > > ActiveX/Mozilla
> > > > > > > > > ActiveX would in fact be required for that, I don't think
> > > XPCOM
> > > > > would
> > > > > > > > have
> > > > > > > > > been a solution. That said, you might be able ??? to get
> the
> > > tab
> > > > > index
> > > > > > > > using
> > > > > > > > > JavaScript, and report it back to the server, whether
> through
> > > a
> > > > > > > > conventional
> > > > > > > > > postback, AJAX, whatever.
> >
> > > > > > > > > I'm not understanding the nature of the conflict you're
> > > looking to
> > > > > > > > avoid
> > > > > > > > > here, could you provide more detail? You can always
> generate a
> > > key
> > > > > for
> > > > > > > > a
> > > > > > > > > page on non-postback page loads, and use that key for
> objects
> > > > > stored
> > > > > > > > in the
> > > > > > > > > session ....
> >
> > > > > > > > > On Mon, Apr 14, 2008 at 4:32 PM, sowen <
> sowenche...@gmail.com>
> > > > > wrote:
> >
> > > > > > > > > > hi, I know this question sounds weird. But if there is
> no
> > > easy
> > > > > way
> > > > > > > > to
> > > > > > > > > > retrieve the tab index, what would be a possible way to
> > > create a
> > > > > > > > > > different session for a different tab, even though
> > > internally
> > > > > they
> > > > > > > > are
> > > > > > > > > > still one session, but with a "tab-index" as part of the
> > > session
> > > > > > > > key,
> > > > > > > > > > the user is able to browse the same page without data
> > > conflict.
> >
> > > > > > > > > > any sparkle is appreciated. thanks!
> >
> > > > > > > > > --
> > > > > > > > > --Andy Baderahttp://
> > > > > > > > andrew.badera.us/http://flipbitsnotburgers.blogspot.com/
> > > > > > > > > and...@badera.us
> > > > > > > > > (518) 641-1280
> > > > > > > > > Google me:http://www.google.com/search?q=andrew+badera
> >
> > --
> > --Andy Baderahttp://
> andrew.badera.us/http://flipbitsnotburgers.blogspot.com/
> > and...@badera.us
> > (518) 641-1280
> > Google me:http://www.google.com/search?q=andrew+badera
> >
>




== 4 of 4 ==
Date: Tues, Apr 15 2008 9:42 am
From: "Andrew Badera"


Can you hear me groaning, over here 'cross Ye Olde Ponde? That's not just
the muscle I pulled half-sleeping on the couch last night.

On Tue, Apr 15, 2008 at 12:35 PM, Cerebrus <zorg007@sify.com> wrote:

>
> No problem ! My postbacks have got Viagra ! ;-)
>
> On Apr 15, 2:10 am, "Andrew Badera" <and...@badera.us> wrote:
> > Postbacks should be idempotent as much and as frequently as possible.
>
> >
>





==============================================================================
TOPIC: How can be store image in database by vb.net
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/900dc3e929f6c586?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Apr 14 2008 10:27 am
From: CK


create procedure addImage(@image varbinary(max))
AS
set nocount off

insert into imagetable
VALUES (@image)

if @@error > 1 print 'there was an error'

return pi
GO

create procedure getImage()
AS
set nocount off

select from imagetable

print image -- glossy or matte?

if @@error > 1 print 'there was an error' -- definitely matte this
time

return pi
GO

i always return pi so that i know it has succeeded properly and not
thrown an error.



/sarcasm
/wit
/retardation

On 14 Apr, 12:50, "Daya Shankar" <dayabh...@gmail.com> wrote:
> hi dear all of u.
>
> Pls tell me how can be insert a image into database and it's fetch from
> databse .by vb.net and sql server 2000
> as well as vb 6.0





==============================================================================
TOPIC: How to export from datagridview to Excel?
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/b35b5e9e2ee6cc89?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Apr 14 2008 10:29 am
From: CK


The easiest solution, is to highlight the datagrid, press CTRL-C, open
Excel, press CTRL-V.

Add formatting as required, with a pinch of salt.

On 13 Apr, 20:23, rubber <mikel2...@gmail.com> wrote:
> Hi,
>
> I´m developing an application and I want some information in a
> DataGridView. But i want to export that information into an Excel
> sheet. I have the software MOffice 2003 installed in my computer. Is
> it esay to resolve this problem?.
> I will be very grateful if someone can explain me how to do it.
> Thanks for all,
> Bye





==============================================================================
TOPIC: ASP Ajax Update Panel
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/ece46014a61b91a0?hl=en
==============================================================================

== 1 of 2 ==
Date: Mon, Apr 14 2008 10:32 am
From: CK


An easy, nasty way to do it is have a hidden button inside the
updatepanel, then have your button outside the panel simulate a click
on the hidden button.

The hard part is writing Javascript to do that.... Good luck :)

On 13 Apr, 16:32, AdonisL81 <Adonis...@gmail.com> wrote:
> Hello,
>          I am new to .NET I am having trouble with a asp update panel
> and Gridview.
>
> The Gridview control is inside the update panel and I am trying to
> have the gridview update from a form button. The form updates the
> database from which the gridview pulls data.
>
> The panel and gridview works if I do a postback from within the
> gridview such as sorting. but I can not get it to work from the
> button. here is my code.
>
> I'm sure I missed something but if anyone can help that would be
> appreciated
>
> <%@ Page Language="VB" AutoEventWireup="true"
> CodeFile="Default.aspx.vb" Inherits="_Default" %>
> <%@ Register Assembly="AjaxControlToolkit"
> Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
> TR/xhtml11/DTD/xhtml11.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head id="Head1" runat="server">
>     <title>Untitled Page</title>
>     <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
> </head>
> <body>
>
>     <form id="form1" runat="server">
>         <asp:ScriptManager ID="ScriptManager1" runat="server" />
>  <div>
>      </div>
>
>      <div id="wrapper">
>      <div id="input">
>
>     <label >Department:</label>
>     <asp:DropDownList ID="DropDownList1" runat="server">
>         <asp:ListItem></asp:ListItem>
>         <asp:ListItem>ADMN</asp:ListItem>
>         <asp:ListItem>OTHER</asp:ListItem>
>         <asp:ListItem>TEST</asp:ListItem>
>     </asp:DropDownList>
>     <br />
>     <br />
>    <label >Type of Hours:</label>
>
>     <asp:DropDownList ID="DropDownList2" runat="server"
>             Height="16px" Width="42px"  >
>      <asp:ListItem></asp:ListItem>
>         <asp:ListItem>1</asp:ListItem>
>         <asp:ListItem>2</asp:ListItem>
>         <asp:ListItem>3</asp:ListItem>
>         <asp:ListItem>4</asp:ListItem>
>     </asp:DropDownList>
>     <br />
>     <br />
>     <label>Hours:</label>
>     <asp:TextBox ID="TextBox1"
>         runat="server"  Width="50px"></asp:TextBox>
>         <br />
>         <br />
>    <label>Date:</label><asp:TextBox ID="TextBox3" runat="server"></
> asp:TextBox>
>     <cc1:CalendarExtender ID="CalendarExtender1" runat="server"
> Format="M/d/yyyy"
>         TargetControlID="textbox3">
>     </cc1:CalendarExtender>
>
>             <asp:RangeValidator ID="RangeValidator1" runat="server"
>         ControlToValidate="TextBox3" ErrorMessage="RangeValidator"
> Type="Date"></asp:RangeValidator>
>
>            <br />
>     <label>Job Number:</label>
>     <asp:DropDownList ID="DropDownList3" runat="server"
> AutoPostBack="True">
>         <asp:ListItem></asp:ListItem>
>         <asp:ListItem>1234</asp:ListItem>
>         <asp:ListItem>1234</asp:ListItem>
>         <asp:ListItem>5678</asp:ListItem>
>         <asp:ListItem>7896</asp:ListItem>
>         <asp:ListItem>1236</asp:ListItem>
>     </asp:DropDownList>
>     <br />
>     <br />
>      <label>Phase:</label>
>     <asp:DropDownList ID="DropDownList4" runat="server"
> AutoPostBack="True">
>         <asp:ListItem>MISC</asp:ListItem>
>         <asp:ListItem>ADMN</asp:ListItem>
>         <asp:ListItem>TEST</asp:ListItem>
>         <asp:ListItem>Other</asp:ListItem>
>     </asp:DropDownList>
>      <br />
>     <br />
>      <label>Category:</label>
>     <asp:DropDownList ID="DropDownList5" runat="server"
> AutoPostBack="True">
>         <asp:ListItem>TEST</asp:ListItem>
>         <asp:ListItem>NEXT</asp:ListItem>
>         <asp:ListItem>ONE</asp:ListItem>
>         <asp:ListItem>LAST</asp:ListItem>
>     </asp:DropDownList>
>       <br />
>     <br />
>      <label>Description:</label>
>     <asp:TextBox ID="TextBox2"
>         runat="server" Height="150px" Width="200px"></asp:TextBox>
>         <br />
>
>          <br />
>          <asp:Button ID="Button1" runat="server" Text="Add Time"
>              style="height: 26px"/>
>                        </div>
>
>          <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
>          <ContentTemplate>
>
>                 <asp:GridView ID="GridView1" runat="server"
> AllowPaging="True"
>             AllowSorting="True" DataSourceID="GetUserTime"
>             AutoGenerateColumns="False" DataKeyNames="id" >
>             <Columns>
>                 <asp:CommandField ShowDeleteButton="True"
> ShowEditButton="True" />
>                 <asp:BoundField DataField="Initials"
> HeaderText="Initials"
>                     SortExpression="Initials" />
>                 <asp:BoundField DataField="Dept" HeaderText="Dept"
> SortExpression="Dept" />
>                 <asp:BoundField DataField="HourType"
> HeaderText="HourType"
>                     SortExpression="HourType" />
>                 <asp:BoundField DataField="Hours" HeaderText="Hours"
> SortExpression="Hours" />
>                 <asp:BoundField DataField="Date" HeaderText="Date"
> SortExpression="Date" />
>                 <asp:BoundField DataField="Job#" HeaderText="Job#"
> SortExpression="Job#" />
>                 <asp:BoundField DataField="Phase" HeaderText="Phase"
> SortExpression="Phase" />
>                 <asp:BoundField DataField="Category"
> HeaderText="Category"
>                     SortExpression="Category" />
>                 <asp:BoundField DataField="Description"
> HeaderText="Description"
>                     SortExpression="Description" />
>             </Columns>
>         </asp:GridView>
>         </ContentTemplate>
>         <Triggers>
>         <asp:AsyncPostBackTrigger ControlID="Button1"
> EventName="Click"/>
>         </Triggers>
>         </asp:UpdatePanel>




== 2 of 2 ==
Date: Mon, Apr 14 2008 12:40 pm
From: AdonisL81


Well that is my issue, I have went through tutorials and videos, I
have added another update panel which updates the time and that seems
to work but the update panel with grid view does not work. I wouldn't
ask for anyone to sort through my "ugly lump of code" if I didn't
research for my self first. I am just wondering if anyone has
experienced this.

Thanks

On Apr 14, 11:44 am, "Andrew Badera" <and...@badera.us> wrote:
> Yep, you probably missed something.
>
> Nope, I'm not sorting through your ugly lump of code to find it.
>
> Learn how to debug. Learn how to present questions. Then get back to us.
> Feel free to check out the multitudinous videos and howtos on this subject
> through channel9 and other such sources in the meantime.
>
>
>
> On Sun, Apr 13, 2008 at 11:32 AM, AdonisL81 <Adonis...@gmail.com> wrote:
>
> > Hello,
> >         I am new to .NET I am having trouble with a asp update panel
> > and Gridview.
>
> > The Gridview control is inside the update panel and I am trying to
> > have the gridview update from a form button. The form updates the
> > database from which the gridview pulls data.
>
> > The panel and gridview works if I do a postback from within the
> > gridview such as sorting. but I can not get it to work from the
> > button. here is my code.
>
> > I'm sure I missed something but if anyone can help that would be
> > appreciated
>
> > <%@ Page Language="VB" AutoEventWireup="true"
> > CodeFile="Default.aspx.vb" Inherits="_Default" %>
> > <%@ Register Assembly="AjaxControlToolkit"
> > Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
>
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
> > TR/xhtml11/DTD/xhtml11.dtd <http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd>
> > ">
> > <html xmlns="http://www.w3.org/1999/xhtml">
> > <head id="Head1" runat="server">
> >    <title>Untitled Page</title>
> >    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
> > </head>
> > <body>
>
> >    <form id="form1" runat="server">
> >        <asp:ScriptManager ID="ScriptManager1" runat="server" />
> >  <div>
> >     </div>
>
> >     <div id="wrapper">
> >     <div id="input">
>
> >    <label >Department:</label>
> >    <asp:DropDownList ID="DropDownList1" runat="server">
> >        <asp:ListItem></asp:ListItem>
> >        <asp:ListItem>ADMN</asp:ListItem>
> >        <asp:ListItem>OTHER</asp:ListItem>
> >        <asp:ListItem>TEST</asp:ListItem>
> >    </asp:DropDownList>
> >    <br />
> >    <br />
> >   <label >Type of Hours:</label>
>
> >    <asp:DropDownList ID="DropDownList2" runat="server"
> >            Height="16px" Width="42px"  >
> >     <asp:ListItem></asp:ListItem>
> >        <asp:ListItem>1</asp:ListItem>
> >        <asp:ListItem>2</asp:ListItem>
> >        <asp:ListItem>3</asp:ListItem>
> >        <asp:ListItem>4</asp:ListItem>
> >    </asp:DropDownList>
> >    <br />
> >    <br />
> >    <label>Hours:</label>
> >    <asp:TextBox ID="TextBox1"
> >        runat="server"  Width="50px"></asp:TextBox>
> >        <br />
> >        <br />
> >   <label>Date:</label><asp:TextBox ID="TextBox3" runat="server"></
> > asp:TextBox>
> >    <cc1:CalendarExtender ID="CalendarExtender1" runat="server"
> > Format="M/d/yyyy"
> >        TargetControlID="textbox3">
> >    </cc1:CalendarExtender>
>
> >            <asp:RangeValidator ID="RangeValidator1" runat="server"
> >        ControlToValidate="TextBox3" ErrorMessage="RangeValidator"
> > Type="Date"></asp:RangeValidator>
>
> >           <br />
> >    <label>Job Number:</label>
> >    <asp:DropDownList ID="DropDownList3" runat="server"
> > AutoPostBack="True">
> >        <asp:ListItem></asp:ListItem>
> >        <asp:ListItem>1234</asp:ListItem>
> >        <asp:ListItem>1234</asp:ListItem>
> >        <asp:ListItem>5678</asp:ListItem>
> >        <asp:ListItem>7896</asp:ListItem>
> >        <asp:ListItem>1236</asp:ListItem>
> >    </asp:DropDownList>
> >    <br />
> >    <br />
> >     <label>Phase:</label>
> >    <asp:DropDownList ID="DropDownList4" runat="server"
> > AutoPostBack="True">
> >        <asp:ListItem>MISC</asp:ListItem>
> >        <asp:ListItem>ADMN</asp:ListItem>
> >        <asp:ListItem>TEST</asp:ListItem>
> >        <asp:ListItem>Other</asp:ListItem>
> >    </asp:DropDownList>
> >     <br />
> >    <br />
> >     <label>Category:</label>
> >    <asp:DropDownList ID="DropDownList5" runat="server"
> > AutoPostBack="True">
> >        <asp:ListItem>TEST</asp:ListItem>
> >        <asp:ListItem>NEXT</asp:ListItem>
> >        <asp:ListItem>ONE</asp:ListItem>
> >        <asp:ListItem>LAST</asp:ListItem>
> >    </asp:DropDownList>
> >      <br />
> >    <br />
> >     <label>Description:</label>
> >    <asp:TextBox ID="TextBox2"
> >        runat="server" Height="150px" Width="200px"></asp:TextBox>
> >        <br />
>
> >         <br />
> >         <asp:Button ID="Button1" runat="server" Text="Add Time"
> >             style="height: 26px"/>
> >                       </div>
>
> >         <asp:UpdatePanel ID="UpdatePanel1" runat="server" >
> >         <ContentTemplate>
>
> >                <asp:GridView ID="GridView1" runat="server"
> > AllowPaging="True"
> >            AllowSorting="True" DataSourceID="GetUserTime"
> >            AutoGenerateColumns="False" DataKeyNames="id" >
> >            <Columns>
> >                <asp:CommandField ShowDeleteButton="True"
> > ShowEditButton="True" />
> >                <asp:BoundField DataField="Initials"
> > HeaderText="Initials"
> >                    SortExpression="Initials" />
> >                <asp:BoundField DataField="Dept" HeaderText="Dept"
> > SortExpression="Dept" />
> >                <asp:BoundField DataField="HourType"
> > HeaderText="HourType"
> >                    SortExpression="HourType" />
> >                <asp:BoundField DataField="Hours" HeaderText="Hours"
> > SortExpression="Hours" />
> >                <asp:BoundField DataField="Date" HeaderText="Date"
> > SortExpression="Date" />
> >                <asp:BoundField DataField="Job#" HeaderText="Job#"
> > SortExpression="Job#" />
> >                <asp:BoundField DataField="Phase" HeaderText="Phase"
> > SortExpression="Phase" />
> >                <asp:BoundField DataField="Category"
> > HeaderText="Category"
> >                    SortExpression="Category" />
> >                <asp:BoundField DataField="Description"
> > HeaderText="Description"
> >                    SortExpression="Description" />
> >            </Columns>
> >        </asp:GridView>
> >        </ContentTemplate>
> >        <Triggers>
> >        <asp:AsyncPostBackTrigger ControlID="Button1"
> > EventName="Click"/>
> >        </Triggers>
> >        </asp:UpdatePanel>
>
> --
> --Andy Baderahttp://andrew.badera.us/http://flipbitsnotburgers.blogspot.com/
> and...@badera.us
> (518) 641-1280
> Google me:http://www.google.com/search?q=andrew+badera





==============================================================================
TOPIC: Visual Style in Classic Theme.
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/dde77004291cbb24?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Apr 14 2008 10:34 am
From: CK


A Form is an object inherited by the OS.  You would have to override
the rendering of the form and write a whole lot of "prettifying
code".  It is possible, but almost certainly not worth the effort.

or you could display it as a borderless, title-bar less form and add
pretty borders around the edge.

On 13 Apr, 15:19, Malek <HAM...@gmail.com> wrote:
> Hi everybody,
>
> I have a question which after searching 99999 times in the Internet I
> started feeling that it's impossible.
>
> The question is:
>
> How can I enforce the Visual Style in my application when the user
> uses "Classic Windows XP theme" in Windows Display properties without
> using commercal libraries?
>
> Logically, it seems to me possible, but no luck so far.
>
> Thanks for reading and thanks in advance for responding.
>
> Malek.





==============================================================================
TOPIC: Basic of Threading
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/053c2edf08220543?hl=en
==============================================================================

== 1 of 2 ==
Date: Mon, Apr 14 2008 10:36 am
From: CK


Site appears to be down already.  Welcome to the "digg" effect.
Although how it spawned from here, I have no idea.....

On 13 Apr, 15:59, dotnetboys <thakurkamal2...@gmail.com> wrote:
> Hi,
>
> Please check a good article on the basics of threading.
>
> http://www.dotnetboys.com/Articles/CSHARP/Threading/Threading.aspx
>
> Regards,
> Kamal Singh




== 2 of 2 ==
Date: Tues, Apr 15 2008 9:56 am
From: "Andrew Badera"


Perhaps the site was threaded in a manner to create a race condition.

On Mon, Apr 14, 2008 at 1:36 PM, CK <ck@cksiteoftreats.co.uk> wrote:

>
> Site appears to be down already.  Welcome to the "digg" effect.
> Although how it spawned from here, I have no idea.....
>
> On 13 Apr, 15:59, dotnetboys <thakurkamal2...@gmail.com> wrote:
> > Hi,
> >
> > Please check a good article on the basics of threading.
> >
> > http://www.dotnetboys.com/Articles/CSHARP/Threading/Threading.aspx
> >
> > Regards,
> > Kamal Singh
>
> >
>


--
--Andy Badera
http://andrew.badera.us/ http://flipbitsnotburgers.blogspot.com/
andrew@badera.us
(518) 641-1280
Google me: http://www.google.com/search?q=andrew+badera





==============================================================================
TOPIC: ASP.NET 2.0 VB Dropdown items disappear
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/5b2decb7dfd3ff85?hl=en
==============================================================================

== 1 of 3 ==
Date: Mon, Apr 14 2008 11:44 am
From: Rick


One final thought, if I change the code to issue an XML Http Request
using JS call from the client, in order to get the data, and then, in
the JS function get the data, and add the items to the dropdown.
Would the items stay there when the form posts back?

Thanks in advance,

Rick

On Apr 14, 12:30 pm, Cerebrus <zorg...@sify.com> wrote:
> Most welcome ! Glad to assist. ;-)
>
> On Apr 14, 6:50 pm, Rick <e_man_onl...@hotmail.com> wrote:
>
>
>
> > Hi Cerebrus,
>
> > You're right, that's an ugly practice. I inherited this code from some
> > consultants. Their intent was probably to populate the dropdown using
> > client code, but it doesn't make sense, b/c there's a postback to the
> > codebehind in order to add the JS code to the page. This has made me
> > waste a bunch of time, and should certainly be redesigned.
>
> > Your solution did work, and I appreciate your help. Thank you!- Hide quoted text -
>
> - Show quoted text -




== 2 of 3 ==
Date: Tues, Apr 15 2008 8:34 am
From: Rick


One thought. does that mean that if from Javascript I issue a HTTP XML
Request, which returns the data to populate the dropdown, and in the
JS function create and insert the items ('option's) in the dropdown
('select'), and then the user clicks "Save", and the page is posted
back, the items in the dropdown will disappear?

Thanks in advance,

Rick

On Apr 14, 12:30 pm, Cerebrus <zorg...@sify.com> wrote:
> Most welcome ! Glad to assist. ;-)
>
> On Apr 14, 6:50 pm, Rick <e_man_onl...@hotmail.com> wrote:
>
>
>
> > Hi Cerebrus,
>
> > You're right, that's an ugly practice. I inherited this code from some
> > consultants. Their intent was probably to populate the dropdown using
> > client code, but it doesn't make sense, b/c there's a postback to the
> > codebehind in order to add the JS code to the page. This has made me
> > waste a bunch of time, and should certainly be redesigned.
>
> > Your solution did work, and I appreciate your help. Thank you!- Hide quoted text -
>
> - Show quoted text -




== 3 of 3 ==
Date: Tues, Apr 15 2008 9:22 am
From: Cerebrus


No. How you retrieve data is irrelevant to the situation. What is
relevant is Viewstate.

On Apr 14, 11:44 pm, Rick <e_man_onl...@hotmail.com> wrote:
> One final thought, if I change the code to issue an XML Http Request
> using JS call from the client, in order to get the data, and then, in
> the JS function get the data, and add the items to the dropdown.
> Would the items stay there when the form posts back?
>
> Thanks in advance,
>
> Rick
>
> On Apr 14, 12:30 pm, Cerebrus <zorg...@sify.com> wrote:
>
>
>
> > Most welcome ! Glad to assist. ;-)
>
> > On Apr 14, 6:50 pm, Rick <e_man_onl...@hotmail.com> wrote:
>
> > > Hi Cerebrus,
>
> > > You're right, that's an ugly practice. I inherited this code from some
> > > consultants. Their intent was probably to populate the dropdown using
> > > client code, but it doesn't make sense, b/c there's a postback to the
> > > codebehind in order to add the JS code to the page. This has made me
> > > waste a bunch of time, and should certainly be redesigned.
>
> > > Your solution did work, and I appreciate your help. Thank you!- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -




==============================================================================
TOPIC: Wierd bug or by design? Creating a File & Checking IsReadOnly...
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/18769261a2d02cb7?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Apr 14 2008 12:50 pm
From: Glenn


The FileInfo constructor does not create the file.  The file may
already exist and that may be what is causing it, or the file is not
there at all.  Check if it exists!

...Glenn

On Apr 13, 9:20 am, DerekCJ <derek.charleswo...@gmail.com> wrote:
> Hi,
>
> I'm not sure if this a bug or by design.
>
>         FileInfo file = new FileInfo(Path.Combine(Path.GetTempPath(),
> Path.GetRandomFileName()));
>         Console.WriteLine((file.Attributes & FileAttributes.ReadOnly) ==
> FileAttributes.ReadOnly);
>
> I was expecting it to return false so I can Write a file. Is this
> right? I'm on Windows Vista SP1, .NET 2.0 runtime hit.
>
> Thanks,
> Derek





==============================================================================
TOPIC: Setup Projects
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/4bba47e7fbaec479?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Apr 14 2008 2:00 pm
From: kororos


Hi Andy,

thanks for your prompt reply. I have the same dilemma and I have asked
the same question myself. However, this is the situation:
1. I have the source code of a project I have been working on. This is
version controlled.
2. In the target directory (output of the build and not setup project)
I have the target also version controlled.
3. After a major or minor release of the software I want to keep under
version control the files being distributed in the setup project. This
is needed so that I know at any given time what source code has been
used to produce the setup files.

Then I thought... ok I could keep the files that the setup project
creates in a separate folder. However, as:
a) the version control (such as subversion) needs an "administrative"
directory in each directory being version controlled and
b) the setup project output is a multi directory structure (setup.msi,
setup.exe, directories with prerequisites)

...I cannot copy all the output of the setup project to a new
location.

The solution I am currently following is to compress the output of the
setup project (and therefore compact it in a single file) and then
copy it in a "distribution" directory which I have under version
control.

The whole process is rather messy and currently very manual. I would
like to be able to avoid to have to write lots of scripts.

Any help would be very appreciated and sorry for the long reply.

On Apr 14, 12:36 pm, "Andrew Badera" <and...@badera.us> wrote:
> Do administrative materials really belong in a setup project target
> directory?
>
> On Sun, Apr 13, 2008 at 3:43 PM, kororos <lkoro...@gmail.com> wrote:
>
> > Hello,
>
> > how can I prevent a setup project from cleaning the target folder
> > before creating the setup project? Can it not delete only the files
> > that it will generate?
>
> > The problem arises when in the target folder I have other
> > administration related folders/files like for version control.
>
> > Thank you
>
> --
> --Andy Baderahttp://andrew.badera.us/http://flipbitsnotburgers.blogspot.com/
> and...@badera.us
> (518) 641-1280
> Google me:http://www.google.com/search?q=andrew+badera





==============================================================================
TOPIC: Simple (I suspect) Session Oversight with asp logins on shared server
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/a830f4a5f00f732a?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Apr 14 2008 4:23 pm
From: DanWeaver


Hi,

I am going mad with this. I seem to have what I imagine is a simple
session problem.

You can see the behavior at www.joglab.com where Ive set up the
scenario.

Trying to use a simple login seems to work ok- it writes to the
database:

New user (Choose New 'un)
user:
newuser142205

pass
newuser142205*

...when this user logs in it continues to the default page- which is
the correct continuation behaviour. In the DB the user is shown as
having logged in at that time.
It does not inform user that login is no good.
But the continuation page (default.aspx) shows the user as not logged
in- not showing their user name and showing status as 'login' not
'logout'- login views neither.

I am using the following in in web.config:

<connectionStrings>
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Data
Source=HYDROGEN;Initial Catalog=thedb;Integrated Security=false;User
Id=blahuser;Password=blahdeblah;"
providerName="System.Data.SqlClient" />
</connectionStrings>


If I set Integrated Security=true on logging in I get:

Login failed for user ''. The user is not associated with a trusted
SQL Server connection

The Web Site Administration Tool cannot connect to the server from the
local machine- I suspect that this is a wild goose though.

If you dont know the answer to this then perhaps you know a simple way
to disable the non-alphanumeric requirement in passwords which is a
pain in the ass!

I have been following this:
http://weblogs.asp.net/scottgu/archive/2006/12/22/recipe-deploying-a-sql-database-to-a-remote-hosting-environment-part-1.aspx

Any help would be very much appreciated.

Dan





==============================================================================
TOPIC: embeded windows application
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/20d2467ce05f4097?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Apr 14 2008 11:08 pm
From: sandeep


how vb.net supports the finger print sensors application





==============================================================================
TOPIC: Create custom task pane in outlook 2003
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/c1d28701e5743080?hl=en
==============================================================================

== 1 of 1 ==
Date: Mon, Apr 14 2008 11:20 pm
From: Dhananjay


Thanks Andrew for your response,
This is the error that I got when I open that specific project -
"One or more projects in the solution could not be loaded for the
following reason(s)
The application for the project is not installed.
These projects will be labeled as unavailable in Solution Explorer.
Expand the project node to show the reason the project could not be
loaded."

Also, project is developed using VB 2005 (It is prerequisite on the
link.) Further document is revised on Nov 2005.
Also I remember one thing that when I was opening the project
developed using VSTO SE on my fresh machine (having VS 2005 / Office
2003 / NO VSTO SE installed), I was having the same errors. Again, I
searched for VSTO on google, but every time I got VSTO SE reference.
And yes, VSTO SE should cover office 2003 and .NET 2.0, that was I
assuming!

Any way, my original question is -----------> "So ultimately anyone
could point me to how can I create task pane in outlook 2003 using
VSTO SE / VB 2005?"

Just now my friend got the answer from Sue (OutlookCode.Com) that
"Outlook 2003 does not natively support custom task panes. You may
want to take a look at the Add-in Express developer library that
frequently advertises at the top of the pages on this site, because it
does offer a task pane solution.
"
So it is not that much easy.... right. Yaa we can do that (if it is
done by Add-in Express developer library), but my boss requires fast
solutions :-( , so here we don;t have that much time to investigate.

On Apr 14, 9:41 pm, "Andrew Badera" <and...@badera.us> wrote:
> What?
>
> What do you mean, "can not open that project" ? Are you getting specific
> errors?
>
> Having or not having VSTO wouldn't affect your ability to open a project.
> Now, if the project is from another version of Visual Studio, sure, you
> might have difficulties.
>
> Be more explicit. Post any error messages.
>
> And if you need to find the older VSTO USE GOOGLE. But VSTO SE should cover
> Office 2003 and .NET 2.0 (which is what I assume you mean by "VB 2005").
>
> I mean really, is it that tough?
>
> On Mon, Apr 14, 2008 at 9:34 AM, Dhananjay <pandit.dhanan...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > Hi All,
> > I am developing one COM addin using VSTO SE / VB 2005 / Office 2003. I
> > want to create a custom task pane for office 2003. I created custom
> > task pane in office 2007. I saw the link "http://msdn2.microsoft.com/
> > en-us/library/aa537188.aspx<http://msdn2.microsoft.com/en-us/library/aa537188.aspx>"
> > which shows that, we can create a action
> > pane for word 2003. I downloaded the project from that site, but I can
> > not open that project.
> > I think the problem occures because I don't have VSTO (I am using VSTO
> > SE and not VSTO) installed on my machine. So where can I download
> > VSTO? Also if I install VSTO, will it be compatible with VSTO SE (I
> > mean can both versions be install on same machine)? Further by reading
> > the link, I saw that we can use ActionsPane class directly for
> > creating task pane. But when I use ActionsPane.Control.Add in my code,
> > I got error "Access of nonshared methods requires an object", but I
> > can;t create the object of ActionsPane class.
> > So ultimately anyone could point me to how can I create task pane in
> > outlook 2003 using VSTO SE / VB 2005?
>
> > Thanks in advance
>
> --
> --Andy Baderahttp://andrew.badera.us/http://flipbitsnotburgers.blogspot.com/
> and...@badera.us
> (518) 641-1280
> Google me:http://www.google.com/search?q=andrew+badera- Hide quoted text -
>
> - Show quoted text -





==============================================================================
TOPIC: Slider control with 2 knob+asp.net
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/b51066368940f564?hl=en
==============================================================================

== 1 of 1 ==
Date: Tues, Apr 15 2008 12:45 am
From: vipin


Hi All,
can any body give me any detail,code  or URL where i get the slider
control with 2 knob in asp.net.
Pls help.
thanks





==============================================================================
TOPIC: Smart Client Performance
http://groups.google.com/group/DotNetDevelopment/browse_thread/thread/ca99d6f11ae66efe?hl=en
==============================================================================

== 1 of 2 ==
Date: Tues, Apr 15 2008 7:01 am
From: Oxford


We currently have a Smart Client VB.NET (framework 1.1) application
that uses a Web Service to communicate with a .NET assembly on the
server.  The data is stored in SQL.  The users have a shortcut to the
EXE (located on the server) through an http URL.  I understand that on
the first access of the EXE, the components will be downloaded to the
client. On subsequent hits, the version of the assemblies on the
server will be compared to the version of the assemblies on the
client.  If the version differs, then the components are downloaded.
As a result, the first hit the load of the application will take
longer because the components are downloaded; however, subsequent
loads should be very quick.  Through testing, we have found that the
subsequent loads (where the version has NOT changed and files should
not be downloaded), 1 MB of data is being transferred from the server
to the client.  How is this possible?? I would expect very little data
to be moved because the components already exist on the client.



Furthermore, we are struggling with the amount of data that is
transferred whenever data is retrieved from the DB.  Here is an
example of our architecture and how much data we retrieve and how much
data is being passed across the network:



Scenario: On the load of a form.  The client makes three calls to the
WebService to retrieve data:

The Client calls webService.Function1 (byref dsData as DataSet).  The
function returns a dataset with three data tables
dataTable1 - 19 columns 1 row
datatable2 - 8 columns 34 rows
datatable3 - 3 columns 34 rows
Client calls webService.Function2 (byref dsData as DataSet).  The
function returns a dataset with 1 data table
Datatable1 - 1 column 6 rows
Client calls webService.Function3 (byref dsData as DataSet).  The
function returns a dataset with 1 data table
Datatable1 - 2 columns 9 rows
This process moves about 200K from the server to the client.  Is this
reasonable for the amount of data in the datasets??? Does anyone have
an opinion on a reasonable amount of data that should be sent from the
server to the client when retrieving data from the database? Are
datasets too heavy to pass back and forth between the client and the
WebService?



We just finished and installed this application in production and
realized the hit the server was taking and how that hit was affecting
performance.  We are starting development on another Smart Client
vb.NET application that is MUCH bigger.  If our architecture is
inefficient, then we need to adjust immediately.  Any help would be
GREATLY appreciated!!!



Thanks in advance.




== 2 of 2 ==
Date: Tues, Apr 15 2008 10:04 am
From: "Andrew Badera"


First: why 1.1? 2.0 improved SO MANY THINGS over 1.1. I suspect you'd find a
large performance increase simply by going to 2.0 here.

Try to avoid sending large, or large numbers of, datatables/datasets. No,
offhand, it doesn't sound like you're sending too much or too many, but
still, less is better. Prefer data transfer objects instead. There is no
"reasonable" amount stamped on a metal rule somewhere -- it depends on your
architecture, your deployment configuration, and more than anything else,
the pipe between the client and the datasource. What's the client device?
PC, or something handheld? (Assuming PC since you said 1.1 and not 1.0 which
was the pre-2 version of Compact Framework.)

Also, rather than a web service, consider using remoting if your
hardware/deployment/etc. supports it. Even better, consider going to 3.0/3.5
and using WCF and net.tcp
binding.<http://www.infoq.com/articles/scale-with-service-contracts>

As far as your subsequent load issue, what's your Ethernet trace look like?
Is it pulling everything down fresh on you, or is that 1mb "something else"?
Is there some sort of negotiation process going on that's getting choked by
your network configuration? (Just throwing out guesses.)


On Tue, Apr 15, 2008 at 10:01 AM, Oxford <dmullen@oxfordinc.com> wrote:

>
> We currently have a Smart Client VB.NET (framework 1.1) application
> that uses a Web Service to communicate with a .NET assembly on the
> server.  The data is stored in SQL.  The users have a shortcut to the
> EXE (located on the server) through an http URL.  I understand that on
> the first access of the EXE, the components will be downloaded to the
> client. On subsequent hits, the version of the assemblies on the
> server will be compared to the version of the assemblies on the
> client.  If the version differs, then the components are downloaded.
> As a result, the first hit the load of the application will take
> longer because the components are downloaded; however, subsequent
> loads should be very quick.  Through testing, we have found that the
> subsequent loads (where the version has NOT changed and files should
> not be downloaded), 1 MB of data is being transferred from the server
> to the client.  How is this possible?? I would expect very little data
> to be moved because the components already exist on the client.
>
>
>
> Furthermore, we are struggling with the amount of data that is
> transferred whenever data is retrieved from the DB.  Here is an
> example of our architecture and how much data we retrieve and how much
> data is being passed across the network:
>
>
>
> Scenario: On the load of a form.  The client makes three calls to the
> WebService to retrieve data:
>
> The Client calls webService.Function1 (byref dsData as DataSet).  The
> function returns a dataset with three data tables
> dataTable1 - 19 columns 1 row
> datatable2 - 8 columns 34 rows
> datatable3 - 3 columns 34 rows
> Client calls webService.Function2 (byref dsData as DataSet).  The
> function returns a dataset with 1 data table
> Datatable1 - 1 column 6 rows
> Client calls webService.Function3 (byref dsData as DataSet).  The
> function returns a dataset with 1 data table
> Datatable1 - 2 columns 9 rows
> This process moves about 200K from the server to the client.  Is this
> reasonable for the amount of data in the datasets??? Does anyone have
> an opinion on a reasonable amount of data that should be sent from the
> server to the client when retrieving data from the database? Are
> datasets too heavy to pass back and forth between the client and the
> WebService?
>
>
>
> We just finished and installed this application in production and
> realized the hit the server was taking and how that hit was affecting
> performance.  We are starting development on another Smart Client
> vb.NET application that is MUCH bigger.  If our architecture is
> inefficient, then we need to adjust immediately.  Any help would be
> GREATLY appreciated!!!
>
>
>
> Thanks in advance.
>
> >
>


--
--Andy Badera
http://andrew.badera.us/ http://flipbitsnotburgers.blogspot.com/
andrew@badera.us
(518) 641-1280
Google me: http://www.google.com/search?q=andrew+badera




==============================================================================

You received this message because you are subscribed to the Google Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting"
group.

To post to this group, send email to DotNetDevelopment@googlegroups.com or
visit http://groups.google.com/group/DotNetDevelopment?hl=en

To unsubscribe from this group, send email to DotNetDevelopment-unsubscribe@googlegroups.com

To change the way you get mail from this group, visit:
http://groups.google.com/group/DotNetDevelopment/subscribe?hl=en

To report abuse, send email explaining the problem to abuse@googlegroups.com

==============================================================================
Google Groups: http://groups.google.com?hl=en

No comments: