|
Hi Abhi,
Actually i am trying to launch an notepad application in client system.i referred Whirly Wiry Web and created an application which works fine..But i have to create registry key and register the dll manually in the client system..i want this to be done through program.How can it be done?
Thanks in advance.
|
|
|
|
|
Well... if your issue is to show any notes, I would recommend to show this in browser rather than opening it in notepad. You might use textarea easily to create an interface just like Notepad.
I saw you are using ActiveX. Well, ActiveX has some limitation as well. Even from ActiveX you cant register or directly access the file system. It has to use the interfaces it provides to access the file system from the browser.
AFAIK, you cant register some external dll from ActiveX as well.
So the only option, if you still require this, is let the user download your custom software and run in their machine. The executable would be downloaded to clients file system to access and register dlls .
Cheers.
|
|
|
|
|
It sounds malicious. Why would you like to place your dll into client computers?
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Does your client Aware of that ? If yes, allow client to download one exe from your site and run. Which will call your Web Service to send you the information of registry. Or you can use ActiveX ( Only on IE ).
But my question is Does your client aware of this ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
hi Abhi,
yes they know it..currently i am using ActiveX. But i don't know how to pass dll to the client system and register it.
|
|
|
|
|
Prasadsm wrote: currently i am using ActiveX.
This will work only on IE
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi All,
How to set the all child control in Panel to Readonly Mode.
i have nearly 18 TB, 10 RadioButtionList and 10 DropdownLists in Panel Control.
Need a function which set the all the controls Readonly mode..
JohnDas
|
|
|
|
|
You can loop through the control collection for the panel and set the ReadOnly property as true wherever applciable. You can make use of reflection instead of switch cases. Like this:
PropertyInfo propInfo = this.Controls[ctrlIndex].GetType().GetProperty("ReadOnly");
if(propInfo != null)
propInfo.SetValue(this.Controls[ctrlIndex], true, null);
In case the control does not has a ReadOnly property, you can check for Enabled .
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Good answer....
|
|
|
|
|
Thanks.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Good answer! I was think about using switch case with in a loop, but this is even simpler!
Very good & Thanks!
|
|
|
|
|
hii all....
i am using role and membership provider in my website.The default password validation
when we create new user is given such that the password length must be atleast seven characters and shud be alpha numeric.I want to cutomize this validation to make it simple for user.how can i do it.plz guide me.....
thank's in advance.........
|
|
|
|
|
Add a validator (or two)to the password text box so that it checks for the character size and characteristics you are after...
|
|
|
|
|
Below Is the sample to Customize in web.config file..!
<membership>
<providers>
<clear/>
<add name="AspNetSqlMembershipProvider"
connectionStringName="MyAspNetDB"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
applicationName="YouApplication"
requiresUniqueEmail="true"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="100"
minRequiredPasswordLength="5"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression=""
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
</membership>
|
|
|
|
|
|
Any Time..!
|
|
|
|
|
|
Hi!
How can I create a ItemTemplate Checkbox that that gets the data from a database and display only the checkboxes and not the TRUE or FALSE text.
The Code I currently have looks like this:
<asp:TemplateField>
<ItemTemplate>
<asp:Checkbox id="chkLunch" runat=Server Text='<%# (DataBinder.Container, "IsLunch")%>'></CheckBox>
</ItemTemplate>
</asp:TemplateField>
If I change the "Text" to "Checked" I get a Cast error.
Can anyone please help?
Illegal Operation
|
|
|
|
|
Use ctype function.
Be an Eagle, Sky is Yours.
|
|
|
|
|
and that would mean? I am using C#
Illegal Operation
|
|
|
|
|
Illegal Operation wrote: <asp:checkbox id="chkLunch" runat="Server" text="<%# (DataBinder.Container, "IsLunch")%>">
Use Checked Property for that.
Like :
<asp:Checkbox id="chkLunch" runat=Server Checked='<%# Convert.ToBoolean(Eval("DBField")) %>'.....
DBField should the field of your database.
It will resolve your issue.
Thanks !
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Sorry, I didn't see your post before replying, so replied similar answer.
|
|
|
|
|
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
LatestArticle :Log4Net
Why Do Some People Forget To Mark as Answer .If It Helps.
|
|
|
|
|
Try this:
<asp:CheckBox ID="chkLunch" runat="server" Checked='<%# Convert.ToBoolean(Eval("IsLunch")) %>' />
This should work provided IsLaunch should return value that is convertable to Boolean.
|
|
|
|