C# - How To Execute Some Initial Startup Code On A IIS Hosted WCF App
Jan 21, 2010I'm trying to find a hook / way to run some initial code to wire up a bunch of things before a service is called.
View 2 RepliesI'm trying to find a hook / way to run some initial code to wire up a bunch of things before a service is called.
View 2 RepliesI have a user control that is supposed to call a javascript function at startup, where exactly should I put my javascript function and how should I call it when the Control Is shown to the user.
View 13 RepliesWeb hosting provider has set the .net trust level as Medium. so report viewer & crystal reports are not working. it required full trust.so is it possible to execute the reports in medium trust? and how?
ReportDoc.Load(Server.MapPath("~/Reports/Proposal.rpt"));
DataTable dt = cm.DisplayUserInfo("select * from tblProposal_Master where proposal_id='000006'").Tables[0];
ReportDoc.SetDataSource(dt);
CRV.ReportSource = ReportDoc;
CRV.DataBind();
I'm trying to understand how to execute AJAX animation on an asp button that has to execute code on Postback. In other words, I have button with code behind that needs to be excuted, but at the same time want to be able to have one of animation extenders be applied to it. I understand that I need to use the BeginRequest Event, I'm just not sure how, or which javascript commands to use to call the ajax animation so the postback will still occur.
View 5 RepliesI have asp.net 2.0 site which is calling web services hosted on another server. When i have an xml file from where web service ip for eg. www.mysite/webservice1/myservice.asmx is given. When i call the same server from developer machine using local networkit works fine.But the same is when hosted remotely and from client end when services is called reading xml fiile from client machine it given a message 'remote server not connecting'.
View 1 Replies iam trying to add an iFrame to an code behind file dynamically, using cell.Controls.Add(new LiteralControl("<iframe id=AttachmentFrame scrolling='yes' frameborder='1' title='ShowAtt' width='100%' height='50%' src='pdf/1.pdf'></iframe>"));
row.Controls.Add(cell);
viewTable.Rows.Add(row);
when launching the page its loading the pdf then not displaying in the webpage even when i try to open another aspx page in the iframe nothing is appearing although seems launching the webpage cuz it asks me username and password then nothing displays.while adding the iframe in the aspx file its both links are working correctly
note: i have a friend told me that in code behind like the one above have he has it working correctly but in my case i dont know whats wrong!
I have a web app that needs to do two things at the same time. After a user clicks a button on the site, a javascript function needs to execute and while thats working I need the server side code for the button click to execute without waiting on the client side to finish.
To be more specific, the client side function takes about 23 seconds to complete, and while that is running the server side code promts the user for printing a document. So I need the javascript to run "in the background".
Hi I have a situation where I want to set the initial visible property of an Image to False and then in my code change it to True and then run a sub routine. My problem is that no matter how I order the code the sub runs before the image becomes visible. When I debug the image only becomes visible when it hits End Sub. Is there any way around this? Here's my code:
[Code]....
i have created a website with a template (CSS Full Site Flash 8) using VS 2010
and after i did host the site to the internet, ASP code didn't work
but HTML code works fine, for example this code for desplaying picture didn't work and the picture is not displaying:
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/photo1.jpg" />
i don't know if it is from the web.config or if i missed something also i notes that the site in is not working in firefox browser (HTML code will appear instead of design) but in internet explorer the design works fine but without the asp controls
I have an ASP.Net site using Forms authentication. One of the aspx pages loads a WinForms user control hosted in IE. That control must connect with a WCF service located in the same ASP.Net web site.How can I make the WCF service secure? Currently I have set the WCF service to use AspNetCompatibilityRequirements mode but the user control hosted in IE can't connect to the WCF service as it isn't logged in.
View 1 RepliesI uploaded asp.net website in filezilla when I am trying to access that it is displaying code instead of page..
View 1 RepliesI have ASP code in asp page. I want to run the the asp code (preferable) from my asp.net page using vb.net or execute the asp page from my asp.net page using vb.net on page load_event.
View 4 RepliesExecute javascript in code behind? can i call javascript like this
For i
As
Integer = 0
To 10
'call javascript code
Next
Basically i have two asp.net buttons on my asp.net page as follow:
[Code]....
and this is the code behand fo btnSave onclick event:
[Code]....
and this is the code behand of btnPreviwe onclick event:
[Code]....
as you can see, when the btnSave is clicked, it is programmatically clikced the btnPrevew first, and btnPreview registers and fires the required JavaScript. But actually once the btnSave clicked, it does go to the btnPreview_OnClick event, but for some unknow reasons, the javascript in btnPreview_OnClick doesnt work, however, when i just put cstext2.Append("alert('hi')" instead of cstext2.Append("'SaveSignature()'", the javascript does executed, and also if i modifed the asp.net code for btnPreview to this, it works too.
[Code]....
I use a js function in a source page as below
<a href="javascript:;" onclick="openwin('Sample.aspx?DID=<%#Eval("UID") %>', '', '700','300','yes'); return false ">
I need to excute this function from vb.net code behind page .
I have a form that the users fill out and submit, sometimes there is an error and I need to delete the submitted data from the
database before the user resubmits. So I want to run some code when the error fires, how can i do this?
s it possible to execute a SSIS package in C# Code ? We can process cube using the namespace "Microsoft.AnalysisServices.AdomdClient". What will be namespace/method to be used for executing a package/task, if possible? This considers Script Task too, in SSIS.
View 2 RepliesI have a button where I use an Animation Extender. When I click the button I have to set OnClientClick="return false;" otherwise the Animation Extender closes.
So that causes my problem. How do I execute server side code from this button?
I have tried this code in my code behind, but there is an error:
Code:
Dim strScript As String
strScript = "<script>"
strScript = strScript & "return false;"
strScript = strScript & "</script>"
ScriptManager.RegisterStartupScript(Me, GetType(Page), "MyScript", strScript, False)
This is my code for the Animation Extender:
Open data"></asp:Button>
i'm a beginner with c# 2.0 and ajax
i have two radio button and i want to execute a javascript if user selected the second radio button
i want execute a javascript if confirm(message)
but i wonder if it possible to GET the value of the if (confirm) if user has click ok or cancel !?
How to execute asp.NET code in scheduled task of windows?
View 5 RepliesI had a custom confirm box Using Jquery....In that It crates two buttons Yes and No. I need to execute my code in Yes click.....how?
View 6 RepliesI have downloaded a jquery tool which creates overlay windows so here is the code which I want to trigger by calling a javascript function instead of a button or link.
The CSS
[Code]....
The HTML note the overlay is executing when i click the button i want this to be triggered on javascript function)
[Code]....
[Code]....
All i want to do is call a function lets say "ShowOverlay()" from my code behind using ClientRegisterScript() and it should do the same as it is doing on button.
I have written a code to download a file . I require that if the file is successfully downloaded on the clients then only certain code should be executed otherwise not.
View 4 Repliesi want some c# code(not java or jquery) execute on textbox focus how can i do that?
View 5 RepliesI have an asp:DataGrid with templated columns. Here's one of those columns:
<asp:TemplateColumn>
<ItemTemplate>
<asp:LinkButton ID="btnDetails"
Runat="server"
CommandName="details"
Text="Details"
Font-Size="0.8em"
CommandArgument='a=<%# Eval("a")%>&b=<%# Eval("b")%>' />
<...>
When the command fires, the CommandArgument comes back unevaluated - it is the string a=<%# Eval("a")%>&b=<%# Eval("b")%>, not a=5&b=6 as I want. What's wrong with how I'm doing this?