|
Hi,
I made a .net assembly which in which I put an activeX control called DSOFramer. I have converted this in a windows control library and compiled it and installed it in GAC.
This library contains the code to display and edit the office documents similar to DSOFramer control. This same code when tried with DSO Framer and windows application it is displaying the documents. After this,
I tried to put this control on a web form, by using
/* <object id="DSO1" classid="
"DSOControl1.dll#DSOControl1.FramerControl""
width="800" height="300" style="font-size:12;">
<param name="FileUploadURL"
="" value="http://localhost/ServerFileUpload/UploadFile.aspx" />
<param name="MaxSessionUpload"
value="10646" />
*/ tag as above.
But here its not displaying any word or excel file. Could anybody please tell me whats wrong with this and how should I achieve my target. Please tell me if you know. Please.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
i'm doing small web application C#,and there have some reports for each an application.i need to put computer ip address for corner of each report,when they took print out it should print that puticular computer IP address as well,how can i do that.
pls help me to do this.
thank you
-- modified at 0:14 Tuesday 16th January, 2007
|
|
|
|
|
The IP Address of the client machine or the Proxy is available in serverVariables collection.
|
|
|
|
|
i need IP Address of client machine.
thank you
|
|
|
|
|
Hi,
try this
Response.Write(Request.UserHostAddress())
but this will applicable for clients browsers...you may get IP on your machine as 127.0.0.1 which is default IP in IIS..
trish
|
|
|
|
|
Thank you for ur helping,but i need other's client IP Address,if they put print out it should print document and IP Address as well.
|
|
|
|
|
Hi
It will definately return Client's IP address..
But maybe it will return wrong IP where this site will hosted..
Just try access to access your page from some others browser..it will return correct static IP address of the machine!!!
try this ,if still confused then let me know..
trish
|
|
|
|
|
Hi
Yes it working when i'm trying in different solution,but there is small problem actuall i have Reports in one solution and my UI in another solution,so i put the parameter field into my report and i call that parameter from my ui as follows,
In my UI there is method call GetReport()
i have created object of my report document and i set it to it like this,
ReportDoc.MyreportName objectOfReport=new ReportDoc.MyreportName();
objectOfReport.setParameterValue("MyParameterName",Request.UserHostAddress);
but there occur error like this: System.Runtime.InteropServices.COMException: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
what should i do?
thank you
|
|
|
|
|
Hi
Pls help me to do this,this is urgent
thank you
|
|
|
|
|
Hi,
I think you are using Crystal report for generating report..
Unfortunately I don't have crystal report installed on my PC..
But I search similar problem for you on net..try this link you may got the solution
http://forums.asp.net/thread/1003903.aspx
Trish
|
|
|
|
|
Hi
Im appreciate your helping,ok trish i solved that problem i did in diferrnt way.Thank you very much.
|
|
|
|
|
I have a server control that I have made. In it I am making use some strongly typed List properties tagged with [PersistenceMode(PersistenceMode.InnerProperty)]. The idea being that I can markup in my consuming page like
<cc2:GenericForm ID="GenericForm1 runat="server" ...>
<EmailRecipients>
<cc2:Emailrecipient Address="someone@somewhere.com" />
<cc2:Emailrecipient Address="someelse@somewhere.com" />
...
</EmailRecipients>
</cc2:GenericForm>
This works fine, in the sense that intelisense works perfectly and I am able to use the values and render my control perfectly at run time. However, if I look at the design surface I don't see my control as its supposed to be rendered. I see a gray box with a red error message that reads
"Error Creating Control - GenericForm1 'cc2:GenericForm' could bot be set on property 'EmailRecipients'."
How can I avoid this error box? I don't even really care if the control renders out fully or if it just renders a blank little gray box that says "GenericForm1" or something like that. I setup a designer class for this control, and overrode the GetErrorDesignTimeHtml method, but Visual Studio doesn't use it. I am not certian what is the pertinent code so here is a bit of it
Here is the property in my control class
private List<EmailRecipient> _EmailRecipients;
[PersistenceMode(PersistenceMode.InnerProperty)]
public List<EmailRecipient> EmailRecipients
{
get
{
if (_EmailRecipients == null)
_EmailRecipients = new List<EmailRecipient>();
return _EmailRecipients;
}
set { _EmailRecipients = value; }
}
And here is the EmailRecipient class itself.
public class EmailRecipient
{
private string _Address;
public string Address
{
get { return _Address; }
set { _Address = value; }
}
}
Thanks for your help.
|
|
|
|
|
hi,
can anyone tell me which site is good to refere(other than microsoft & codeproject) for ASP.NET 2.0 new controls like gridview,linkedlist, etc.,
i need some samples on this controls.
Thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
www.asp.net[^]
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
thanks alot. really very good site. now i am watching the vedios on .NET 2.0.
thanks,
Rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Well there are many sites:
http://www.gridviewguy.com/Articles.aspx
www.w3school.com
and many others....
|
|
|
|
|
Thanks alot
rahi
If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hello,
I have an ASPX file with this.
Default.aspx:
<asp:SqlDataSource ... >
<SelectParameters>
<asp:QueryStringParameter DefaultValue="<font color=FF0000>25</font>" Name="PageSize" QueryStringField="PageSize" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource> But I would like to replace it with something like this.
Default.aspx:
<asp:SqlDataSource ... >
<SelectParameters>
<asp:QueryStringParameter DefaultValue="<font color=FF0000><%= PageSize %></font>" Name="PageSize" QueryStringField="PageSize" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource> Default.aspx.cs:
public partial class Default : System.Web.UI.Page
{
public Int32 <font color=FF0000>PageSize = 25</font>;
...
} The key point being, that I want to use a variable (PageSize) from the code behind class as a parameter to the SqlDataSource control. But it doesn't work. Does anyone know what I'm doing wrong?
Thanks for any help!
|
|
|
|
|
You can't put a script tag inside a server control.
Put an ID on the control, and set the property of the control from code behind:
<asp:QueryStringParameter ID="PageSize" Name="PageSize" QueryStringField="PageSize" Type="Int32" /><br />
<br />
PageSize.DefaultValue = 25;
---
Year happy = new Year(2007);
|
|
|
|
|
Thanks, but I get this error message:
Parser Error Message: Type 'System.Web.UI.WebControls.QueryStringParameter' does not have a public property named 'ID'.
|
|
|
|
|
Should be <asp:QueryStringParameter ID="PageSize" Name="PageSize" QueryStringField="PageSize" Type="Int32" />
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
Thanks, because of your help I figured that I can do something like this in code behind:
SqlDataSource1.SelectParameters["PageSize"].DefaultValue = Convert.ToString( PageSize );
|
|
|
|
|
It won't work as a coding expression... but would it work as a databinding expression, using <%# ... %> syntax? Are databinding expressions evaluated in data source controls?
|
|
|
|
|
Hello All,
I'm trying to design a simple web site using a menu control that can
found at:
http://www.destinpipeline.com/default.htm
Is this an older way to do menu controls, and can this easily be done
in ASP.NET 2.0? Please provide any links to examples on how to do
this? If you also notice when you click on Capacity how the title
changes from Informational Postings to Capacity. I also need to figure
out how to do that as well.
Thanks
|
|
|
|
|