|
I want to develop an Activex control for FTP. I need to add the same control in toolbox (means need the design also )
Please give some suggestions
|
|
|
|
|
Please Do Not Cross Post
cheers,
Abhijit
|
|
|
|
|
Why duplicate post?
Cheers!!
Brij
|
|
|
|
|
hello frnds,
i have created a following code on VB.Net 2005, and word 2003
Code:
dim pro as new process
pro.startInfo = "word file address"
pro.srart()
this code run successfully on some machine. but on some machine it shows me error that
"Clsid com class factory componenet exception 80040154"
what should i do ???
is it 32 bit processor problem ???
help me
any one ever face this type of error ????
thanks in advance
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Try this
right click on the Setup package you created for it
Then, Click on the Configuration manager button
Under Platform, there's a dropdown where you'll see it says Any CPU - click on the dropdown - if you don't see X86, then create a New one - it will bring up a small form that should get you where you want.
Also - in the project Properties - click on compile, and then the Advanced compile optiions and set the target platform there.
Cheers!!
Brij
|
|
|
|
|
Hi,
I'm having problems getting logs to work. Here are some configuration snippets.
// -- IN MY LOG4NET.XML ------------------------------------------
<?xml version="1.0" encoding="utf-8" ?>
<!-- This section contains the log4net configuration settings -->
<!-- See http://logging.apache.org/log4net/release/manual/introduction.html for more information -->
<log4net>
<appender name="FileAppender" type="log4net.Appender.FileAppender">
<file value="data/ErrorTrace.txt" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%d %-5level %logger - %message%newline" />
</layout>
</appender>
<!-- Possible levels: ALL, DEBUG, INFO, WARN, ERROR, FATAL, OFF -->
<root>
<level value="ALL" />
</root>
<logger name="MyWebAppLogger">
<level value="ALL" />
<appender-ref ref="FileAppender" />
</logger>
</log4net>
// -- IN MY WEB.CONFIG -------------------------------------------
<add key="log4netXmlPath" value="log4net.xml"/>
// -- IN MY GLOBAL.ASAX.CS ---------------------------------------
protected void Application_Start(object sender, EventArgs e)
{
var config = new FileInfo(configPath);
log4net.Config.XmlConfigurator.ConfigureAndWatch(config);
}
What could be wrong? For some reason when I enter debug mode through visual studio (by pressing F5), it correctly creates the data sub directory as well as the ErrorTrace.txt. However, it does not work when I copy the release files to my IIS virtual directory.
*Additional note: the virtual directory is configured to have write access.
Can anyone help?
Rafferty
|
|
|
|
|
Are you 100% sure that your directory has been configured for write/create access for the correct user? Are you working in integrated mode in debug and then anonymous in your release site?
|
|
|
|
|
Hi Paddy,
Thanks for the reply. I wrote some code to test the creation of a dummy text file and it did NOT work. You're right, looks like I only thought I had set the write access.
Can you instruct me on how to do this? I thought it's a matter of checking the "Write" checkbox in the IIS Web Site Properties?
I'm not sure what you mean by integrated and anonymous modes. How can I check?
Thanks!
Rafferty
|
|
|
|
|
You need to actually set the security rights on the physical folder in the file system (right click > Properties > Security). If you don't know what integrated security is, then you're probably not using it, so you'll need to set rights for the ASP.net account and for whatever account your website runs under anonymously (check this in IIS Manager > Virtual directory > Right click > Properties > Directory Security > Edit (you should see a user name beside the anonymous checkbox).
|
|
|
|
|
Okay thanks! Since my local is not in an AD, I'm not seeing the Security tab in Properties. But since it's confirmed that it's an IIS setting problem than log4net config/coding problem... at least I have some direction.
What I don't understand is that the logging of this web application used to work, when we were still doing the following:
Trace.Listeners.Add(new TextWriterTraceListener("data/ErrorTrace.txt"));
Trace.AutoFlush = true;
So I'm also inclined to think that it's not a permissions problem. Would you know why it worked using trace listeners and stopped working when I switched to log4net?
Rafferty
|
|
|
|
|
Hi,
Please answer my question . i took two dropdownlist ..one is department and one is employee.. in ddldept i m poupating data frm database ..ok . then .if user can select any one in ddldept Name Like HR,PM,payroll so automatically i m populating employee name to ddlemploye according 2 user selcted dept. ok .. if once i selected ddldept any field so data populating and if i selcted again another field then here populating all employee name i.e .. prevoius selected data and current data.. and my prob is now .. s i want only current selected data only .. please can u tell how to solve this prob..
Some Thing need 2 do NEW
|
|
|
|
|
There is a clear method. Call that before you fill the second drop down. Something like
ddlemploye.Items.Clear()
|
|
|
|
|
ok thnx dude..
Some Thing need 2 do NEW
|
|
|
|
|
By using ajax calendar extender how to check the selected date's day is saturday or sunday.
Thanks in advance...
|
|
|
|
|
AJAX calendar extender don't have anything to do here. You can get the day using DateTime.DayOfWeek.ToString() and check it is saturday or sunday
|
|
|
|
|
hi everyone
i got some problems to manipulate a gridview using the AJAxControls toolkits
here is my problem i got a gridview binded with data here is the code ofmy page
]]>
<title>Untitled Page
<asp:scriptmanager id="ScriptManager1" runat="server" xmlns:asp="#unknown">
<asp:updatepanel id="UpdatePanel1" runat="server" xmlns:asp="#unknown">
<contenttemplate>
<asp:gridview id="GridView1" runat="server" allowpaging="True" allowsorting="True" autogeneratecolumns="False" datakeynames="StructId" datasourceid="ObjectDataSource1" onselectedindexchanged="GridView1_SelectedIndexChanged">
<columns> <asp:boundfield datafield="StructId" headertext="StructId" insertvisible="False">
ReadOnly="True" SortExpression="StructId" />
<asp:boundfield datafield="Code" headertext="Code" sortexpression="Code">
<asp:boundfield datafield="Type" headertext="Type" sortexpression="Type">
<asp:boundfield datafield="Nom" headertext="Nom" sortexpression="Nom">
<asp:boundfield datafield="Departement" headertext="Departement" sortexpression="Departement">
<asp:boundfield datafield="Postcode" headertext="Postcode" sortexpression="Postcode">
<asp:boundfield datafield="City" headertext="City" sortexpression="City">
<asp:boundfield datafield="Password" headertext="Password" sortexpression="Password">
<asp:templatefield headertext="Séléction">
<itemtemplate>
<asp:hiddenfield id="hidden" runat="server" value="<%# Bind(" code")="" %>"="">
<asp:checkbox id="chkSelect" runat="server" headertext="Sélection">
<triggers> <asp:asyncpostbacktrigger controlid="GridView1" eventname="SelectedIndexChanged">
<asp:objectdatasource id="ObjectDataSource1" runat="server" deletemethod="Delete" xmlns:asp="#unknown">
OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="GridViewJSSample.DataSet1TableAdapters.StructureTableAdapter">
<deleteparameters>
<asp:parameter name="Original_StructId" type="Int32">
<asp:gridview id="selectionGridview" runat="server" xmlns:asp="#unknown">
the paging is done in ajax wish is great thing!!
my problem now that i want an event that fires when i'm selecting a checkbox in my gridview, the hole row will change style to turn to selected style and get in the row id(structure code)in sever side to fill the second gridview ans add the selected row in gridview one to selectionGridview.
thanks you for your help
|
|
|
|
|
excuse me, but i need your help... first of all, i don't know your answer jeje but i need to know how did you do to make paging work for you??? ah! is just that i don't find the answer anywhere... thanks
|
|
|
|
|
I have a FormView control on my form connected to an objectdatasource and I can't understand why it is looking for an update query with parameters that are not part of the ObjectdataSource definition.
Here is my ObjectDataSource:
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete"
InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" SelectMethod="GetData"
TypeName="PriceModuleTableAdapters.TAKUSQuoteHistoryTableAdapter" UpdateMethod="Update">
<DeleteParameters>
<asp:Parameter Name="Original_ID" Type="Int32" />
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="QType" Type="Int32" />
<asp:Parameter Name="Qdate" Type="DateTime" />
<asp:Parameter Name="RequestorID" Type="String" />
<asp:Parameter Name="CustomerID" Type="String" />
<asp:Parameter Name="FORMULA_CODE" Type="String" />
<asp:Parameter Name="Version" Type="String" />
<asp:Parameter Name="RMC1" Type="Decimal" />
<asp:Parameter Name="RMC2" Type="Decimal" />
<asp:Parameter Name="RMC3" Type="Decimal" />
<asp:Parameter Name="Complexity1" Type="Decimal" />
<asp:Parameter Name="Complexity2" Type="Decimal" />
<asp:Parameter Name="Complexity3" Type="Decimal" />
<asp:Parameter Name="FormulaWtPerGallon" Type="Single" />
<asp:Parameter Name="ProdCost1" Type="Decimal" />
<asp:Parameter Name="ProdCost2" Type="Decimal" />
<asp:Parameter Name="ProdCost3" Type="Decimal" />
<asp:Parameter Name="MarginMult1" Type="Single" />
<asp:Parameter Name="MarginMult2" Type="Single" />
<asp:Parameter Name="MarginMult3" Type="Single" />
<asp:Parameter Name="UseLevel1" Type="Single" />
<asp:Parameter Name="UseLevel2" Type="Single" />
<asp:Parameter Name="UseLevel3" Type="Single" />
<asp:Parameter Name="Original_ID" Type="Int32" />
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="QType" Type="Int32" />
<asp:Parameter Name="Qdate" Type="DateTime" />
<asp:Parameter Name="RequestorID" Type="String" />
<asp:Parameter Name="CustomerID" Type="String" />
<asp:Parameter Name="FORMULA_CODE" Type="String" />
<asp:Parameter Name="Version" Type="String" />
<asp:Parameter Name="RMC1" Type="Decimal" />
<asp:Parameter Name="RMC2" Type="Decimal" />
<asp:Parameter Name="RMC3" Type="Decimal" />
<asp:Parameter Name="Complexity1" Type="Decimal" />
<asp:Parameter Name="Complexity2" Type="Decimal" />
<asp:Parameter Name="Complexity3" Type="Decimal" />
<asp:Parameter Name="FormulaWtPerGallon" Type="Single" />
<asp:Parameter Name="ProdCost1" Type="Decimal" />
<asp:Parameter Name="ProdCost2" Type="Decimal" />
<asp:Parameter Name="ProdCost3" Type="Decimal" />
<asp:Parameter Name="MarginMult1" Type="Single" />
<asp:Parameter Name="MarginMult2" Type="Single" />
<asp:Parameter Name="MarginMult3" Type="Single" />
<asp:Parameter Name="UseLevel1" Type="Single" />
<asp:Parameter Name="UseLevel2" Type="Single" />
<asp:Parameter Name="UseLevel3" Type="Single" />
</InsertParameters>
</asp:ObjectDataSource>
When I try to update a record I get the following error:
ObjectDataSource 'ObjectDataSource1' could not find a non-generic method 'Update' that has parameters: QType, Qdate, RequestorID, CustomerID, FORMULA_CODE, Version, RMC1, RMC2, RMC3, Complexity1, Complexity2, Complexity3, FormulaWtPerGallon, ProdCost1, ProdCost2, ProdCost3, MarginMult1, MarginMult2, MarginMult3, UseLevel1, UseLevel2, UseLevel3, original_ID, ReqName, CoName, FormulaDesc.
Notice that the fields, ReqName, CoName and FormulaDesc are not even defined in the Objectdatasource UpdateParameters !
What's going on here?
How do I force the FormView control to use the Update method as defined in my ObjectDataSource?
|
|
|
|
|
Pardon me if this is a stupid question: This is the first ASP.NET app. that I have ever worked on.
Is there a way for code in the ASP .NET app. on the server to trigger a page refresh on the client?
I am working on a small web app. that monitors a special-purpose "server" machine (not a web server), and the server is capable of sending out notifications to "subscribed" clients when the state of certain things change on the server. It would be nice if I could set up the web app to receive those notifications (in a worker thread or something), and then cause the client page to refresh when one of the notifications came through. I am not sure this is even possible, or practical, since this seems to me to be bass-ackwards from the way web apps in general work.
Alternatively, I could do the Java script client trick that I saw somewhere that makes the client refresh the screen every N amount of time, but I would rather do the above if possible (because I am difficult, I guess).
Again, please excuse me if this is a stupid question...
|
|
|
|
|
Tom Delany wrote: It would be nice if I could set up the web app to receive those notifications (in a worker thread or something), and then cause the client page to refresh when one of the notifications came through. I am not sure this is even possible, or practical, since this seems to me to be bass-ackwards from the way web apps in general work.
Delany, you idiot, the server can only respond to requests from the client! What the heck do you have in that coffee mug?
In thinking about it further, I realized it was stupid question, and that anything I do to make the page refresh would have to be from the client side.
Unless there is some magical mechanism that I am not aware of...
|
|
|
|
|
You must use javascript to refresh a page. Of course you could check some variable on the server using an ajax call and then refresh the page (or not) based on the result.
I didn't get any requirements for the signature
|
|
|
|
|
Thanks. After I thought about it, I realized that must be true. Good idea about checking the variable. I'm starting to wonder if it is worth all the effort, though. I think maybe just having the client refresh the page "every so often" would be good enough.
|
|
|
|
|
Here is the javascript if you want to go that route.
// CREDITS:
// Automatic Page Refresher by Peter Gehrig and Urs Dudli
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com & http://www.designerwiz.com
// info@24fun.com
// 8/30/2001
// IMPORTANT:
// If you add this script to a script-library or script-archive
// you have to add a link to http://www.24fun.com on the webpage
// where this script will be running.
////////////////////////////////////////////////////////////////////////////
// CONFIGURATION STARTS HERE
// Configure refresh interval (in seconds)
var refreshinterval=60
// Shall the coundown be displayed inside your status bar? Say "yes" or "no" below:
var displaycountdown="yes"
// CONFIGURATION ENDS HERE
////////////////////////////////////////////////////////////////////////////
// Do not edit the code below
var starttime
var nowtime
var reloadseconds=0
var secondssinceloaded=0
function starttime() {
starttime=new Date()
starttime=starttime.getTime()
countdown()
}
function countdown() {
nowtime= new Date()
nowtime=nowtime.getTime()
secondssinceloaded=(nowtime-starttime)/1000
reloadseconds=Math.round(refreshinterval-secondssinceloaded)
if (refreshinterval>=secondssinceloaded) {
var timer=setTimeout("countdown()",1000)
if (displaycountdown=="yes") {
window.status="Page refreshing in "+reloadseconds+ " seconds"
}
}
else {
clearTimeout(timer)
window.location.reload(true)
}
}
body onload="starttime(); "
I didn't get any requirements for the signature
|
|
|
|
|
Wow! Thanks man! That was over and above my expectations. I was planning to go Google for it again (I found something similar once before).
Again, thanks!
WE ARE DYSLEXIC OF BORG. Refutance is systile. Your a$$ will be laminated.
There are 10 kinds of people in the world: People who know binary and people who don't.
|
|
|
|
|
You're welcome.
I didn't get any requirements for the signature
|
|
|
|