Friday, November 30, 2007

Funnywedding Invitation Wordings

create a web control in the container

In our control by modifying the phase of rendering at run-time by inserting a Javascript that outputs the HTML.

protected override void Render (HtmlTextWriter output) {
output.Write (" );}



create the class for design-time rendering.

public class DesignTime : ControlDesigner{

ControlloCon FControllo;

public override void Initialize(System.ComponentModel.IComponent component){
this.FControllo = (ControlloCon)component;
base.Initialize(component);
}

public override string GetDesignTimeHtml() {
try{
if (FControllo.Text == string.Empty)
return GetEmptyDesignTimeHtml();
else
return "
" + FControllo.Text + "
";
}
catch(Exception ex){
return GetErrorDesignTimeHtml(ex);
}
}

protected override string GetEmptyDesignTimeHtml () {return
"
" + typeof (ControlloCon) + "" + + FControllo.ID "
"


} protected override string GetErrorDesignTimeHtml (Exception e) {return
CreatePlaceHolderDesignTimeHtml (e.Message);}

}

Finally bind the control to the class of DesignTime.

[Designer ("ControlloConDesignTime.DesignTime")] public class
ControlloCon: {System.Web.UI.WebControls.WebControl

Tuesday, November 27, 2007

Usmc Motorcycle Helmet

Insert dataset VS2005

Using VS2005 typed dataset data layer as it saves a lot of time because it creates self a whole layer of classes, methods and queries (for SQL: this is the environment that I use) that can be used by the business layer above.

Today I discovered something rather alarming, at least as long as they do not know.

I focus on the method to insert a table in the dataset. You can choose between text or stored procedure or table direct.
If you choose text, you can enter text in two ways:
- using the query builder (clicking on the appropriate 3 dots in the CommandText property);
- by entering the query at hand (maybe doing a copy / paste from SQL manager).

But there is a significant difference between the two methods: first it appends "sneak" a select command in accordance with the insert command that we just edited. Select
This is essential because it serves to bring the new values \u200b\u200bfrom the database to the dataset, in the absence of the select, remains with the old values.
The most striking case is when the insert affects the rows in a table that has auto-increment an index: auto-increment on both the db (with positive step) on both the db (with negative step) *.
In this case the indices of the rows just inserted the db will keep the index change was negative, but to be added unchanged. At a subsequent change in status will generate a Modified exception of lack of primary key during UPDATE, because the adapter will rely on the index line remained negative and scrambled from the db.



*: why it is useful to step negative indexes in the database for auto-increment reference to MS documentation.

Friday, November 23, 2007

How To Make A Pond Vacuum

problems at design time (Win.NET)

Scenario:
- is developing a graphical user interface of a form and you need to create a separate control from then use the main form.
- you do not have auto increment in the buid.

Once you add the UserControl on the form, this error happen to be at design time:


the fix is \u200b\u200bto crown the public properties of the UserControl with the Custom Attribute
[DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)] and

that's it.
From what I understand this attribute tells the designer not to worry about serializing the property and carry on.
What I do not understand why you need to serialize this property that is not localized and is not exported in the resource file. Maybe it's something internal to the designer.

Tuesday, August 21, 2007

Create Your Ownwrestler Games

Maker of Modern and Contemporary Art Container

On the Web Ceris Arte container of Modern Art and Contemporary
International Mail Art archive

Saturday, August 18, 2007

Pokemon Silver Chronicles

Found a CVS server

After spending an entire afternoon to find, install and test products for free backup and CSV, in the end I came across this server CSV (called CSVNT) downloadable here .
For now I can say is that a product meets your expectations, I intend to come back later to see if after a increased use will have changed my opinion.

same time I can tell you that Cobian Backup 8 thinking about it as my backup manager has not passed the test because it still has problems on FTP (PRU cambiado user to the service, given that the base can not access the internet) as which never closes the session, another problem is the copy on LAN without a domain: I can not give him the right to write to the destination directory (do not exclude that this is a problem 'system).

Wednesday, August 15, 2007

Liver Pain Causes More Condition_symptoms



I discovered an interesting thing in Windows.
Among the settings of the Local Security Settings there is one that reads:
"Network access: Sharing and security model for local accounts".
If you leave the selection: "Classic" will be available for all folders can define authentication in an "accurate" (for each user can define the usual permissions) if you change to "Guest only" change everything is simplified and authorization in the style of MS Win Home. "

Monday, August 6, 2007

Results After Using Adipex

Serialization of objects in C #

is the easiest way to serialize and deserialize an array of bytes into an instance of a class: public Object
Desierializza (Byte [] bytes) {

System.IO.Stream s = new System.IO.MemoryStream (statistic.DbParameter)
s.Write (bytes, 0, bytes.Length)
BinaryFormatter bf = new BinaryFormatter ();
return bf.Deserialize(s);
}

public Byte[] Serializza(Object o)
{
System.IO.Stream s = new System.IO.MemoryStream(statistic.DbParameter);
BinaryFormatter bf = new BinaryFormatter();
return bf.Serialize(s, o);
}