|
shanthi jothi wrote: Please help me how to generate payslip report is not crystal report in all employees and export this report in ms-word.
Please help me how to answer is not question in all sense and export this question to micro-soft
was joking ..
hey make your question clear
If You win You need not Explain............
But If You Loose You Should not be there to Explain......
|
|
|
|
|
Is it your home work ?
try to do your self. if stuck the welcome to CP , otherwise, no soluation.. Sorry...
cheers,
Abhijit
|
|
|
|
|
Hi friends
I have created a package using C#.net
myPackage.PackageType = DTSPackageType.DTSDesigner90;
myPackage.Name = "MySSISPackage";
myPackage.Description = "Created using the SSIS API";
myPackage.CreatorComputerName = System.Environment.MachineName;
myPackage.CreatorName = "Otey";
//Add the OLE DB and Flat File Connection Managers
Console.WriteLine("Creating the MyOLEDBConnection");
cnOLEDB = myPackage.Connections.Add("OLEDB");
cnOLEDB.Name = "MyOLEDBConnection";
cnOLEDB.ConnectionString = "Data Source=RELL;Initial Catalog=Northwind;Provider=SQLNCLI.1;Integrated Security=SSPI;Auto Translate=False;";
//cnOLEDB.ProtectionLevel = DTSProtectionLevel.EncryptAllWithPassword;
Console.WriteLine("Creating the MyFlatFileConnection");
cnDestination = myPackage.Connections.Add("OLEDB");
cnDestination.Name = "cnDestination";
cnDestination.ConnectionString = "Data Source=RELL;Initial Catalog=testssis;Provider=SQLNCLI.1;Integrated Security=SSPI;Auto Translate=False;";
Console.WriteLine("Adding a Data Flow Task");
TaskHost taskDF = myPackage.Executables.Add("DTS.Pipeline") as TaskHost;
taskDF.Name = "DataFlow";
DTP = default(MainPipe);
DTP = taskDF.InnerObject as MainPipe;
// Add the OLE DB Source
Console.WriteLine("Adding an OLEDB Source");
DFSource = default(IDTSComponentMetaData90);
DFSource = DTP.ComponentMetaDataCollection.New();
DFSource.ComponentClassID = "DTSAdapter.OLEDBSource";
DFSource.Name = "OLEDBSource";
CManagedComponentWrapper SourceInst = DFSource.Instantiate();
SourceInst.ProvideComponentProperties();
DFSource.RuntimeConnectionCollection[0].ConnectionManagerID = myPackage.Connections["MyOLEDBConnection"].ID;
DFSource.RuntimeConnectionCollection[0].ConnectionManager = DtsConvert.ToConnectionManager90(myPackage.Connections["MyOLEDBConnection"]);
SourceInst.SetComponentProperty("OpenRowset", "Categories");
SourceInst.SetComponentProperty("AccessMode", 2);
SourceInst.AcquireConnections(null);
SourceInst.ReinitializeMetaData(); // Error line
SourceInst.ReleaseConnections();
I am getting an exception "Exception from HRESULT: 0xC0202009 -1071636471"
please help on this.
thanks
|
|
|
|
|
How to find group of single user from active directory.
Please help me.
thanks
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
what is it precisely that you want to do ? What do you mean by 'group of single user' ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Answer:-
Private Function GetGroups(ByVal _path As String, ByVal _
username As String, ByVal password As String) As String
Dim GroupString As String
Dim myDE As New System.DirectoryServices.DirectoryEntry(_path, _
username, password)
Dim mySearcher As New DirectorySearcher(myDE)
mySearcher.Filter = "sAMAccountName=" & username
mySearcher.PropertiesToLoad.Add("memberOf")
Dim propertyCount As Integer
Try
Dim myresult As SearchResult = mySearcher.FindOne()
propertyCount = myresult.Properties("memberOf").Count
Dim dn As String
Dim equalsIndex, commaIndex As String
For i As Integer = 0 To propertyCount - 1
dn = myresult.Properties("memberOf")(i)
equalsIndex = dn.IndexOf("=", 1)
commaIndex = dn.IndexOf(",", 1)
If equalsIndex = -1 Then
Return Nothing
End If
GroupString += dn.Substring((equalsIndex + 1), _
(commaIndex - equalsIndex) - 1) & "/"
Next
Return GroupString
Catch ex As Exception
If ex.GetType Is GetType(System.NullReferenceException) Then
'they are still a good user just does not
'have a "memberOf" attribute so it errors out.
'code to do something else here if you want
Else
End If
End Try
End Function
Piyush Vardhan Singh
p_vardhan14@rediffmail.com
http://holyschoolofvaranasi.blogspot.com
http://holytravelsofvaranasi.blogspot.com
|
|
|
|
|
Hai Friends,
I need an help from you people.I want to show checkbox inside a dropdownlist.If i checked the checkbox in dropdownlist insert the text n db.How is it possible.Please help me.
|
|
|
|
|
The droplist doesn't do that but you could create your own droplist with a div in javascript. I am sure if you google, you'll find someone has already done it for you.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
|
Hi,
I have displayed data in gridview vertically but i am not able to update it vertcally.
Please help me.
Thanx in advance!
Abhishek
abhishek pundir
|
|
|
|
|
If you've had to pivot your table to show data in a column instead of a row, there's no way the control will let you update a column instead of a row. Your best bet is to use a repeater, start with your normalized data, and write the edit/update functionality yourself.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have a asp.net web application. I need to fetch all the permissions of a file/folder.
I have used the following code to access the rights of a folder
static void Main(string[] args)
{
// Get the object and its SecDescp
DirectoryInfo dir = new DirectoryInfo("C:\\Documents and Settings\\pankaj\\Desktop\\ASPDev");
DirectorySecurity sec = dir.GetAccessControl(AccessControlSections.All);
// Create an empty Security Descp...
DirectorySecurity secNew = new DirectorySecurity();
// Get the explicit perms on the object.
AuthorizationRuleCollection col = sec.GetAccessRules(true, false, typeof(SecurityIdentifier));
// List all the explicitly set permissions on the object...
foreach (FileSystemAccessRule rule in col)
{
// Add the explicit permission to the new Security Descp.
//secNew.AddAccessRule(rule);
Console.WriteLine("{0}", rule.FileSystemRights.ToString());
//Console.WriteLine("{0}", rule.AccessControlType.ToString() + " | " + rule.IdentityReference.Value + " | " + rule.InheritanceFlags.ToString() + " | " + rule.IsInherited.ToString() + " | " + rule.PropagationFlags.ToString() + " | " + rule.FileSystemRights.ToString() + "\r\n");
}
// Create a child folder with the explicit permissions only...
//DirectoryInfo info2 = new DirectoryInfo("e:\\kgk\\Test\\Child");
//info2.Create(secNew);
Console.ReadLine();
}
However I need to fetch the IUser permissions.
Would you please let me know how can I do this.
Pankaj
modified on Tuesday, November 25, 2008 1:36 AM
|
|
|
|
|
On the server - why ?
On the client - you can't.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i have to develope a system where the wight should come from weighbridge directly through comport.how it can be possible in case of asp.net.is there any dll required for this operation.
thanks in advance.
|
|
|
|
|
Not possible. There is no way that ASP.NET can read a port. ASP.NET can host a component that reads a port, but that's a whole different question, and has nothing to do with ASP.NET, really.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
so it is not possible to read the data that come from a comportin a asp page.but system.io.ports namespcase is there.is it help me?
|
|
|
|
|
souravghosh18 wrote: system.io.ports namespcase is there
AFIK, It will try to connect with your server port not local system.
you can build a windows components and install it in client then try to retreive information for that client. Just an idea. you can try it.
Check This one too
http://www.studiosnippets.com/detail.aspx?sid=8[^]
cheers,
Abhijit
|
|
|
|
|
Sure - if you want to read the COM port on your server. You need to buy a basic book on ASP.NET and read it. The canned version: C# code runs on the server, javascript runs on the client. Any C# class that relates to hardware, therefore, will examine the hardware on the server, not the client.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
All, I have a sitemap source and the web.config has Security Trimming Enabled.
"<sitemapnode title="User Administration" roles="Admin"></sitemapnode>"
My question is how would I get to allow 2 different roles on the same node? Say Admin, and AccountAdmin?
Revolutionary: Disk drives go round and round.
|
|
|
|
|
The attribute name roles suggests that the value can contain more than one role. I haven't checked the documentation for this attribute, but I know that the users attribute takes a comma separated list of users, have you tried a comma separated list of roles?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I have not tried that and didn't know. Just really starting.
I will give that a shot first thing in the morning.
Revolutionary: Disk drives go round and round.
|
|
|
|
|
Hello all,
I have a page that has a number of items on it (ImageButtons, to be exact). When an image button is clicked, it posts back and I use the ModalPopupExtender to bring up a modal dialog that can contain a user control that is loaded dynamically, depending on what was clicked. After a button on the modal popup is clicked, I need to save changes into a hidden field on the form. However, after postback, the control is totally gone. How do I need to recover the data that was in the form?
|
|
|
|
|
Your control needs to be created every time, and it won't have viewstate unless it's created before page load. I'd use a hidden control to track data from the control, and what controls exist.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Another option would be to use the viewstate to track data from the control. You just have to manually set the data in the viewstate.
I prefer this method because you can store any serializable object in the viewstate, so it gives you more control over how the data is stored. Plus, you can use viewstate encryption to encrypt the data and prevent users from seeing the contents.
|
|
|
|
|
Dear Sir,
How to set password to my database.mdf in App_Data folder?
Thank You.
|
|
|
|