|
What do you mean? Please make it clear.
Do you mean scripting language by any chance?
---------------------------------------------------------------------
"The only true wisdom is in knowing you know nothing." -- Socrates
|
|
|
|
|
could you kindly clearly inform ur questions ??
or r u looking for scripting langauge in asp.net???
Thanks
Happy Programming
-----
Abhijit
|
|
|
|
|
<?xml version="1.0" standalone="yes"?>
<passwd>
<principal name="ADM" class="Class value" password="+100-70-44+41-220-96-42+100-70+114+163-3-27+33+142+72">
<grant name="store.all.admin" />
<grant name="launch.more" />
<grant name="launch.all" />
<grant name="user-management" />
<grant name="Direction" />
</principal>
<principal name="Archive" class="Class value" password="+100-70-44+41-220-96-42+100-70+114+163-3-27+33+142+73">
<grant name="Archive" />
</principal>
<principal name="Michael" class="Class value" password="+100-70-44+41-220-96-42+100-70+114+163-3-27+33+142+74">
<grant name="launch.all" />
<grant name="launch.more" />
<grant name="Michael" />
</principal>
<principal name="admin" class="Class value" password="+100-70-44+41-220-96-42+100-70+114+163-3-27+33+142+75">
<grant name="store.all.admin" />
<grant name="launch.more" />
<grant name="launch.all" />
<grant name="user-management" />
</principal>
<grant name="Direction" codebase="file:./jars/r/*">
<permission name="Direccao" class="openwfe.org.worklist.auth.StorePermission" rights="read, write, delegate" />
</grant>
<grant name="Archive" codebase="file:./jars/r/*">
<permission name="Archive" class="openwfe.org.worklist.auth.StorePermission" rights="read, write, delegate" />
</grant>
<grant name="Michael" codebase="file:./jars/r/*">
<permission name="Michael" class="openwfe.org.worklist.auth.StorePermission" rights="read, write, delegate" />
</grant>
<grant name="store.all.admin" codebase="file:./jars/r/*">
<permission name="Store.*" class="openwfe.org.worklist.auth.StorePermission" rights="read, write, delegate" />
</grant>
<grant name="launch.more" codebase="file:./jars/r/*">
<permission name="mainEngine::http://localhost:7080/flow-index.jsp" class="openwfe.org.worklist.auth.LaunchPermission" />
</grant>
<grant name="launch.all" codebase="file:./jars/r/*">
<permission name=".*::http://localhost:.*" class="openwfe.org.worklist.auth.LaunchPermission" />
</grant>
<grant name="user-management" codebase="file:./jars/r/*">
<permission name="passwd" class="openwfe.org.auth.UmanPermission" rights="manage" />
</grant>
</passwd>
EDIT: the XML isn't showing (download here: http://rapidshare.com/files/59995138/test.xml.html)
I have this XML.
I use the code below to open the XML and treat it as a DataSet and view it in a datagrid.
<code> try
{
dataset = ReadXML(szPassword);
dataGrid1.DataSource = dataset;
dataGrid1.DataMember = "principal";
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}</code>
put this in a different class, if you wish.
<code> public DataSet ReadXML(string szMyXMLfile)
{
DataSet ds = new DataSet();
try
{
ds.ReadXml(szMyXMLfile);
return ds;
}
catch (Exception ex)
{
throw new Exception(ex.Message);
}
}</code>
I want to treat The DataSet, NOT the XML, (change values, modify fields) through code.
How Can I get these fields from the dataset's ADM name into an ArrayList? (look at picture) http://bayimg.com/eaHdKAaBg
<code>store.all.admin
launch.more
launch.all
user-management
Direction</code>
Thanks for your replies.
EDiT: here's my current search routine
<code>
foreach(DataRow dr in dataset.Tables["principal"].Rows)
{
if (dr["name"].ToString()=="ADM") // "ADM" (for example)
{
foreach(DataRow dr2 in dataset.Tables["grant"].Rows)
{
textBox1.Text += dr2["name"].ToString() + Environment.NewLine;
aPermissoes.Add(dr2["name"].ToString());
}
if (textBox1.Text.Length>=2) textBox1.Text = textBox1.Text.Remove(textBox1.Text.Length-2,2);
}
}
</code>
-- modified at 12:42 Wednesday 3rd October, 2007
|
|
|
|
|
What XML? I don't see anything.
Paul Marfleet
|
|
|
|
|
I edited my post. I don't know how to make the xml visible in the code. there is a download link.
Thanks for the reply.
|
|
|
|
|
Check the little box next to "Ignore HTML tags in this message..." before you hit "Post Message".
You can go back and edit your message to turn this option on.
|
|
|
|
|
Found a solution
<br />
int nPrincipal_Id = 0;<br />
foreach (DataRow myRow in dataset.Tables["principal"].Rows)<br />
{<br />
if (myRow["name"].ToString()==textBox2.Text)<br />
{<br />
nPrincipal_Id = Convert.ToInt32(myRow["principal_Id"].ToString());<br />
}<br />
}<br />
<br />
foreach (DataRow myRow in dataset.Tables["grant"].Rows)<br />
{<br />
if (myRow["principal_Id"].ToString() == nPrincipal_Id.ToString())<br />
textBox1.Text += myRow["name"].ToString() + Environment.NewLine;<br />
}
|
|
|
|
|
Hi
Is there any way to get the user name that who has changed the file/folder. As for E.g , i have a shared folder , and one FSW is used to monitor the Folder , i am getting all changes, rename, delete or create result, but how i will get the user name of the same that who has create that file or delete that file.
using WMI , i can get the information that who are currently logged on in my system.....
But i am unable to get who has changed
Please Help !!!!
Thanks in Advance
Abhijit
|
|
|
|
|
You can't. NTFS doesn't track who makes changes to what files or deletes a file.
The only way to get the information on a Created file is to get the owner of the file from the files Security Descriptor.
|
|
|
|
|
|
No. If there was a way, I would have told you.
|
|
|
|
|
Hi
I created windows application with c# and setup project that will install application.
For uninstallation i am using batch file which contains following code
MsiExec.exe /x [productcode]
while uninstallation it shows command window and it's looks bad.
I have already add shortcut to that batch file and it is uninstalling application from computer but shows command window behind uninstallation.
How can i hide command window or Suggest any other way to uninstall application
Thanks
Pritesh Patel
|
|
|
|
|
|
thanks a lot
it works.
but still command window will blink for a second
Can i complete remove that window?
|
|
|
|
|
Rather than a batch file, write a simple C# console application and use:
[System.Runtime.InteropServices.DllImport ( "kernel32" , SetLastError=true , EntryPoint="FreeConsole" )]
private static extern bool
API_FreeConsole
(
) ;
public static bool
FreeConsole
(
)
{
return ( API_FreeConsole() ) ;
}
Use a System.Diagnostics.Process to execute the uninstall.
Using a System.Diagnostics.ProcessStartInfo you can set WindowStyle to System.Diagnostics.ProcessWindowStyle.Hidden and CreateNoWindow to false.
|
|
|
|
|
I tried to uninstall this way but still same problem
|
|
|
|
|
And you called FreeConsole?
|
|
|
|
|
Sorry but i couldn't get idea
Can you provide me whole code?
Pritesh
|
|
|
|
|
In interface we are bound to implement all the functions declared in an Interface but it is not in Abstract Class
Is this comment right if yes plz explain it
Thnx
|
|
|
|
|
Answer was right here[^] on Code Project.
A simple search[^] would have yielded this.
Argh...
But fortunately we have the nanny-state politicians who can step in to protect us poor stupid consumers, most of whom would not know a JVM from a frozen chicken. Bruce Pierson
|
|
|
|
|
Hi,
Given a form
I need to be able to collect the Name Property of all the GUI Objects within it.
- Not Only Nested Controls, But also for example tabPages, ToolStripMenuItems and such.
How can this be done?
Thanks.
(.NET 2.0)
|
|
|
|
|
Each object contains the Controls property, which contain all of the controls that they constrain, so this might be a place to start. Hint - this can be done recursively.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Pete O`Hanlon wrote: Each object contains the Controls property
Brilliant minds...
|
|
|
|
|
Colin Angus Mackay wrote: Brilliant minds...
Sometimes our level of genius is quite embarrassing.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
poda....................
|
|
|
|