asp.net

Calling WCF Services from web site: one call or many?

This may sound like a very stupid question - and probably is! For an ASP.Net website with calls through to a WCF Service: Three web clients click the button that calls the WCF Service simultaneously. Does the web server make 3 concurrent calls? (e.g. WCF Service receives 3 concurrent calls) one on behalf of each web client? My guess ...

embed videos through youtub

I had task to embed videos through youtub cahnnel in our website .so I want any one help me how can I do that? I hadnot any information to do that ...

Can't find file

Hi! I'm working on a custom menu system in asp.net that populates a horizontal menu on the fly based on which menu item is selected from the website's main menu. This 2nd menu is populated from a custom XML file in the website's root directory. (See http://loganyoung.wordpress.com/2010/06/03/asp-net-horizontal-submenu-from-xml/ for det...

How do I know that a configuration is set up if I can't see it on my web.config file?

Hello, I'm walking through the Series on "How to use charts with ASP.NET" (Scott Michell). Somewhere, he says: ...Both of the above configuration additions are automatically added to Web.config when you add a Chart control to a web page for the first time in your project... I've checked on my web.config, but I didn't see anything. So...

finding the server spec. on which my website runs

hi, i need to find out what are the details of the processor the server has. i need to know which kind of processor, type of OS, RAM etc. i've got a reply from one webhosting company: "This is a shared hosting server, it is a dual processor (quad core xeon 2.8) 16Gb ram, mirrored 300GB SAS15k drives" how can i get those details on othe...

ASP.NET: Setting a cookie in a cached page

How do I set a cookie on a page, base on a query-string-value, if the page is returned by the Output-cache? I have a page with this output-cache: <%@ OutputCache VaryByParam="cookievalue" ... And I have this code in the Global.asax's *Application_BeginRequest*: // Validation and checkings HttpCookie cookie = new HttpCookie("__cookie...

Hide the html contorl from the server side without using attributes runat="Server"

Hi, I am using HTML control,and want to visible false from the server side with out using attributes runat="Server" tell me any solution ...

Building a webservice with XML?

XML Webservice: the webservices takes in an XML request and responses with a XML response. im not sure if im doing the right thing for the request? With the XML request, do i take the XML request from the page input parameter? Example http://api.domain.com/webservice/xmlExample1.aspx?xml=&lt;Example1&gt;&lt;FirstName&gt;David&lt;/Fir...

Do webcontrols have any disadvantage over html server controls?

Hi, I just thought I should ask because It doesn't make sense to me that both versions exist. Is this just for compatiblity with older HTML programmers? They both can do the exact same thing when runat="server" is set, right? Unfortunately my book on the subject does not really elaborate on this, and I couldn't find anything on Google. ...

Import excel file with asp.net

Hi there, I'm working on an asp.net /c# app I need my app to allow users to upload .XLS files (located on the user machine). How can i read data from the .XLS file but without saving the file on server? tks ...

Javascript timer

I have a set of objects and each those object keep track of some strings. Those objects are created at page load and stored in an object array. I have four user controls in ascx file that displays those strings of a particular object at a time. And also I have a play button in the same ascx file which is default set to play. When I load...

How can I delay checkbox postback?

I have an ASP.NET page with Javascript. I have some checkboxes and I want to give the user time to check and uncheck more then one box before the postback... so when the user tick/untick a check box the postback happens after 5 seconds. How can I do this? tryed different methods found online but all incomplete or wrong. Thank you! ...

C# Gmail settings set POP3 enabled

Hy, I am retrieving mails from a gmail account programaticaly using this libraries http://mailsystem.codeplex.com/ . Everything it's OK (I get the messages count and a list of all messages) when I run my application for the first time after I set the 'Enable POP for all mail' to OK in the 'Forwarding and POP/IMAP' tab in Settings menu....

ASP.Net + Load Balancing + Reports (Crystal or SSRS)

We currently have two web servers (Windows Server 2008 Standard, IIS7) setup to host an ASP.Net website and are using the basic features of our hardware firewall to provide network load balancing (NLB) between the two servers. This means we have had to change the ASP.Net session state mode to SQL Server in order to make the data stored ...

Custom 404 error not redirecting properly

I have this custom error redirect in my web.config file but it doesn't seem to be working since i added the redirectMode="ResponseRewrite" It works fine for 500 errors but not for 404 (it just doesn't redirect when i have a 404) Here's the code from web.config <customErrors mode="On" redirectMode="ResponseRewrite"> <error statusC...

Storing complex data in a list

Hi, I'm working with a product called SiteFinity. I have a class which looks like so: public class Categories { public IContent oContent {get; set;} } I'm then looping through a list and trying to check whether the current value already exists, like so: IList items = base.CreateDataSource(); IList filteredList = new Lis...

How to build an ASP.NET Proxy Site

I want to build a proxy site that renders any URL. Given an url, I need to replace all html links, css links and js urls from href="/original.htm" to href="http://www.myproxy.com/get?www.original.com/original.htm" sort of. How can I do? is there a ready-to-use framework? I use ASP.NET and C#. ...

Image Upload Preview in Update Panel.

In my asp.net page I have an image upload control where users can upload there profile photo. what I want is when user browse his/her photo an immediate preview should displayed. Is there any ajax image control for that or how can I implement that? ...

Enabled/Disable controls in Xmlhttp Response

I have a page that has 3 to 4 divs with gridviews in each that get data loaded using Ajax Xmlhttp calls. Now the problem is that I have checkboxes in the grid and need them to be disabled/enabled when they load to the main page in the div. When i set the Enabled=false tag in the ASPX page to the checkbox, the UI throws an "Object requi...

How to call window.alert("message"); from C#?

I have my own exception based on some condition and want to raise an alert when control comes in this catch block catch (ApplicationException ex) { //want to call window.alert function here } ...