all groups > asp.net > october 2007 > threads for sunday october 14
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
applying irm permission in asp .net
Posted by Raan at 10/14/2007 10:43:27 PM
Hi,
I can open, edit,save the file,but I can not apply IRM to Word in
asp.net.
my code likes this:
Doc = WordApplication.Documents.Open(); // open
WordApplication.Selection.TypeText("edit it");// edit it
// Doc.Permission.Add(userid, permission, expireddate) // apply IRM
Doc.Save(); // ... more >>
Casting Application object in C#
Posted by Ant at 10/14/2007 8:14:00 PM
Hi,
I simply want to cast an Application object into the value it's holding. Can
this be done on onew line?
e.g. (int)Application["userCount"] += 1;
or Convert(Application["userCount"]).ToInt32 += 1;
or Int32.Cast(Application["userCount"]) += 1;
I've had to do it as below:
... more >>
VB.NET vs C#
Posted by shapper at 10/14/2007 8:08:58 PM
Hello,
I have been working with Visual Studio 2005 and I use mostly VB.NET.
Sometimes I notice that a few things that were possible with C# were
not possible with VB.NET.
Now I am starting to use VS 2008 and ASP.NET 3.5.
Should I use C# instead of VB.NET?
Could someone tell me the re... more >>
CSS for GridView in a asp:UpdatePanel
Posted by John J. Hughes II at 10/14/2007 5:34:29 PM
I have a GridView in an update panel. The CSS to set it to 100% does not
work. If I remove the GridView from the UpdatePanel goes to 100% correctly.
Below is my wonderful code, am I doing something wrong or is there a work
around?
CSS...
..gridviewClass
{
width: 100%;
}
ASP Stuf... more >>
changepasswordtemplate.. findcontrol on textboxes?
Posted by jobs at 10/14/2007 12:34:36 PM
RE: changepassword template.. findcontrol on textboxes?
I've done this before for formviews and grdviews.. but somehow i am
unable to test the value of changepassword text box ?
Getting this error:
Object reference not set to an instance of an object.
my simple code below . I underst... more >>
What is Dependency Injection?
Posted by Anonieko at 10/14/2007 12:00:00 AM
Pigsaw said...
"You don't want to hard code dependencies into your classes, because
then you can't test them without relying on the dependent classes. So
you "inject" those dependencies simply by setting them as properties -
possibly in the constructor, possibly with setter methods. And it
... more >>
|