|
led mike wrote: epileptic ferret
Oh geeze, are we going to start the ferret thing again?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi
Here i have one ASPxComboBox control (i.e. Dev Express Control).
I am populating this combo box by using javascript. this javascript i am calling in the page onload.
like :
<script type="text/javascript" src="DevComboItems.js" language="javascript"></script>
<script type="text/javascript" language="javascript">
function startfunction()
{
FillItemTypeCombo(document.form1.cmbItems,'Reason for visit');
//FillDevComboItems('Grade');
}
window.onload=startfunction;
</script>
But this is giving error like: 'Dev express' is undefined. Any one can help me please.
This is my java function.
function FillItemTypeCombo(cboItem, sDefaultItem)
{
var sDefaultItem
//cboItem.options.length=0
for(i=0;i<sItemTypeString.split("|").length;i++)
{
if(sDefaultItem == sItemTypeString.split("|"))
{
for(j=0;j<sItemTypeArray.split("|").length;j++)
{
//cboItem.options[j]=new Option(sItemTypeArray.split("|")[j]);
//cboItem.options[0] = new Option(0,new DevExpress.Web.ASPxEditors.ListEditItem ('sItem',0));
cboItem.options[j] = new Option([j],new DevExpress.Web.ASPxEditors.ListEditItem(sItemTypeArray.split("|")[j],[j]));
}
}
}
}
This is my page.
<body>
<form id="form1" runat="server">
<div>
<dxe:ASPxComboBox ID="cmbItems" runat="server"></dxe:ASPxComboBox>
<%-- <asp:DropDownList ID="cmbItems" runat="server"></asp:DropDownList>--%>
</div>
</form>
</body>
Subbu
|
|
|
|
|
Next time put your code in the "code block" when posting. It helps to make it easier to read. Since you lacked any indentation whatsoever, I will just move along
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi
Here i have one ASPxComboBox control (i.e. Dev Express Control).
I am populating this combo box by using javascript. this javascript i am calling in the page onload.
like :
<script type="text/javascript" src="DevComboItems.js" language="javascript"></script>
<script type="text/javascript" language="javascript">
function startfunction()
{
FillItemTypeCombo(document.form1.cmbItems,'Reason for visit');
//FillDevComboItems('Grade');
}
window.onload=startfunction;
</script>
But this is giving error like: 'Dev express' is undefined. Any one can help me please.
This is my java function.
function FillItemTypeCombo(cboItem, sDefaultItem)
{
var sDefaultItem
//cboItem.options.length=0
for(i=0;i<sItemTypeString.split("|").length;i++)
{
if(sDefaultItem == sItemTypeString.split("|"))
{
for(j=0;j<sItemTypeArray.split("|").length;j++)
{
//cboItem.options[j]=new Option(sItemTypeArray.split("|")[j]);
//cboItem.options[0] = new Option(0,new DevExpress.Web.ASPxEditors.ListEditItem ('sItem',0));
cboItem.options[j] = new Option([j],new DevExpress.Web.ASPxEditors.ListEditItem(sItemTypeArray.split("|")[j],[j]));
}
}
}
}
This is my page.
<body>
<form id="form1" runat="server">
<div>
<dxe:ASPxComboBox ID="cmbItems" runat="server"></dxe:ASPxComboBox>
<%-- <asp:DropDownList ID="cmbItems" runat="server"></asp:DropDownList>--%>
</div>
</form>
</body>
Subbu
|
|
|
|
|
Don't double post a half an hour apart, does not get you help any faster
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I just discovered that the managed cryptographic algorithms in .net are not FIPS compliant (more here:[^]) but the CSP's are.
I'm curious if anyone knows why not?
"It's so simple to be wise. Just think of something stupid to say and then don't say it."
-Sam Levenson
|
|
|
|
|
It's pretty straightforward: Microsoft haven't submitted the managed parts of System.Security.Cryptography to testing against FIPS 140-1. They have submitted the Cryptographic Service Providers (the unmanaged CryptoAPI). See the list of approved modules[^].
I don't know why they haven't. I don't really see any reason, other than expense, unless it's simply that the rules don't allow JIT-compiled code. (I don't know whether they do or not, I haven't read them.)
FIPS restricts the algorithms that can be used to this list[^].
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Mike Dimmick wrote: I don't really see any reason, other than expense
For every software developer that has an existing .net application that uses the managed crypto stuff and has just been informed by their US federal govt. customers that they in turn just discovered that they have less than 2 weeks to have fips approved crypto in there even though the developer used the exact same approved algorithm that outputs the same result but used the managed version which Microsoft happened to not submit it in a giant f*** you to all their managed developers without explanation...well, I guess you have to laugh really the alternatives are to wail and moan about it.
Oh well I guess this affects so few people at this point that no one cares except those developers. Maybe I'll start a micro niche support group.
"It's so simple to be wise. Just think of something stupid to say and then don't say it."
-Sam Levenson
|
|
|
|
|
I can't seem to find a way to format a float, to always have at least two places, but will include up to n places when required, i.e. it will render three places if required, but no trailing zero when only two places are required.
Then, why is my number always rounded to two places in the following example?
float f = 22223.430321F;
MessageBox.Show(string.Format("{0 .0000}", f));
|
|
|
|
|
|
No, thanks. I've since learned that the default for float is rounding to two places, regardless of formatting, and I missed the conversion from SQL float to CLR double. I can work with a double as expected.
|
|
|
|
|
Hi, guys
Do you know any managed pattern for syncropnization of options betwean 2 applications?
I have a Configuration tool and tray application. Both run under the same limited user account, and when user modified settings in Configurator i need tray application to be updated without restarting it.
Target framework is 2.0
I searched in internet and found only Remoting, but it depends on a port number, so there might be a situation when other app already uses this port
Are there any gracefull decisiongs?
I will be glad if you give me some links, code portions...
Thank's in advance
Siarhei
|
|
|
|
|
Cuchuk Sergey wrote: I searched in internet and found only Remoting, but it depends on a port number
If the processes are on the same machine, a port doesn't matter.
For a TcpChannel the port can be 0, and an unused port will be used.
An IpcChannel will perform better and requires no port number.
.NET Remoting Overview[^]
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Thank's Mark!
you really helped me very much, i've got very nervous - now i'm refactoring my opensource app and making it cross-platform,
so your answer is really was very helpfull for me
Thank's
Siarhei
|
|
|
|
|
Hi,
I need to pull some table from SQL server; some are for read-only purposes while others will be both for reading and writing. I need to put these tables on laptops which do not have SQL server installed. I was thinking of storing them in XML files. My questions are:
1. What is the best way to store the tables on laptops for application to use? These tables will need to be synchronized with the main server once connectivity is available.
2. I know for pocket pcs there is pull and push mechanism available. What kind of mechanism should I use in my case?
3. What precautions should I take or things I should be aware of for such a project?
Thanks in advance.
|
|
|
|
|
Hi,
1. I believe you have several options. Some of those are:
- use SQL Server compact edition on laptop. This way you have full database engine on laptop and you can use it as the normal database. In this case you can use replication between master and replicant database and no custom code is needed in order to transfer data between databases.
- save the tables as datasets directly using datasets WriteXml method. This is an easy way to serialize the data. Remember to store if rows are modified on laptop (don't accept changes until you get the data back to the server).
2. This depends on your solution. If you're meaning replication done using SQL Server, pull may be easier to implement but on the other hand it's not necessarily as secure as push.
3. - First of all security. How can get the data to laptop and which laptop. How and where the data is stored in laptop (root of C-drive may not be the best option ). Is the data encrypted and so on.
- modifications. If the data can be modified only in one place, you must implement logic how to prevent modifications in other places. For example if data is on the laptop, can it be updated at the server...
- Simultaneous modifications. If the data can be updated anywhere, you will end up to conflicts. This happens when data is modified in two places separately. When the data is combined from laptop to the server and the server is not in original state (as the data was when it was taken to laptop), what is the right conclusion (there's no obvious answer to this). Perhaps, the lates is correct or combination of both updates or so on... This is typically the most challenging issue in this kind of project...
Hope this helps you,
Mika
|
|
|
|
|
Mika,
Thanks.
I am going ahead and storing them as xml on the lap top. No two people will modify the same table but read from the same tables which rarely change--this makes things a lot easier.
Why not on the root of C drive? I don't understand. Then where is the best option?
|
|
|
|
|
Glad it helped you.
You should always consider security of the data when storing it to the hard drive, especially if the data is confidential in any way (actually you should consider this point always, even with memory operations).
Few things to start with:
- root of C-drive is visible to every user so the data is also
- user's own home directory is typically visible only to the user and people with administrative rights
- it's not a good practice to store files at root level, organize them in folders, preferrably named after the application.
Mika
|
|
|
|
|
Great thanks for the help. Very good and clear answer!
|
|
|
|
|
In both VS 2005 and 2008, it seems it is impossible to edit the contents of a template (at least a FormView template and a LogIn template inside a Master Page content container) in true WYSIWYG mode, because the width of the templates while they are being edited has no relationship to what they really look like. Example: put a Login Control inside a container in a Master Page. Grab the right side of the control and drag it. The width box shows that you are changing its size, but the size on the screen stays the same after you release the mouse. If you look at the page when not in edit mode, the control width will be what he width box says.
Is this a VS "feature" or is there some setting I have wrong?
|
|
|
|
|
Hi folks,
because I have a question. How can I create a certification request with .net-framework?
Regards Wolfgang
|
|
|
|
|
whaese wrote: How can I create a certification request with .net-framework?
There is not enough context. What sort of certification are you talking about?
|
|
|
|
|
Hello,
thank you for your interest. I'm trying a certification request PKCS#10 as ASN.1-data to create. The content and structure is in the relevant documents of the RSA. But how can I do this in .Net-Framework?
Regards
Wolfgang
|
|
|
|
|
Hi,
I am switching from VS 2005 to VS 2008. Till now we are using VSS that come with Visual Studio 6.0 as a Version Control.
I heard VS 2008 having inbuilt VSS feature, but after installing i did not get any option to create VSS project or connect to VSS Project.
Any one having idea/tutorial/link, that would be great help.
Thanks
Binod K.
(Miles to go before I sleep)
|
|
|
|
|
I don't know if it will connect to VSS 6.0. It will connect to VSS 2005. Perhaps it is time to upgrade.
There are no built in VSS features in VS 2008.
|
|
|
|