asp.net

Set up wcf service for http and https and also add username/password to its access

I am kinda new to WCF and the setting up of service and have 2 questions. My first question I have a service that will be accessed via https on a web server. However locally on my local IIS7, it will be accessed via http as https is not available. How can I set up a service to be accessed by both? My second question is regarding how I c...

loading resource file in class library and know which resource file to use

I have a class library and was to add a resource file to it to support both English and Spanish. Any tips as how I can do this? The language will be dictated by the user visiting the site. Would like to have to only load each resource file once and cache or set in static variable and avoid any overheads. ...

Convert UpdatePanel to Panel in code behind

The CMS I use struggles with UpdatePanels in some of my custom controls and master pages during edits. I'd like to convert them dynamically to regular panels on Page_Load or Page_Init or something based on whether the page is being edited. I'd like to convert all the UpdatePanels on a page to Panels dynamically. Finding the UpdatePanels...

Coding for an SQL server in a local project

I'm coding in ASP.Net on a local machine through visual studio. So when I run the code it starts an ASP.Net service for me. So now I'm wondering how I setup an SQL server for local development purposes? I need it to have data in it constantly so that when I stop running the ASP page it doesn't just empty. ...

How to call a JavaScript function multiple times in a loop on page reload with ASP.NET

Hi, I'm using the local database functionality in Chrome and Safari and what I do when I want to save this to a remote database is to create a hidden textfield and then using JSON to stringify each row. In the code behind I then parse each JSON object and insert it into the list. What I want to do now is to delete these rows from the loc...

classified ads script in asp.net

Is there any free Classified ads script in asp.net? ...

Adding class to anchor tag inside of repeater in code behind

aspx file <ul> <asp:Repeater runat="server" ID="rpt1" OnItemDataBound="rpt1_ItemDataBound"> <HeaderTemplate> <li><a id="a1" href="javascript:void(0);" runat="server">Text</a></li> </HeaderTemplate> ...

Web Service Deployment

Hi Does any body know how to pakage several webservices into one before deployment using ASP.Net. Like say for instance, I have 5 web services and i need to deploy all of them in such a way that the user need to click jus one link. Does anybody know how to do that?... ...

Microsoft Office Word in a web browser

I want to have a Microsoft office word inside a web browser so that i can get the control to format the text and specify proper indentation. I don't want a client side to save the document. It should be the same as http://www.asp.net/ajax/ajaxcontroltoolkit/samples/htmleditor/htmleditor.aspx but i want an additonal component i.e RULER to...

programmatically change style on placeholder control

Hi, is there a way to programmatically set style on PlaceHolder control? thanks ...

Why does HttpBrowserCapabilities not work at all?

I've got a web app targeting .net 3.5 and im trying to target iPads. I've visited my page from iPhone, iPad, Chrome, Safari and it gives bad completely erroneous and useless results. I've checked my .net framework browser config folder and v2.0.50727 has a bunch of .browser file (they look pretty shonky but whatever) Anyhow, the v3.0 ...

Question about changing IDs with user control and master page

In my user control I got this inline CSS in which I have only css classes... like I am not setting any attribute or whatever on some ID..got only classes like :- .sp { backgrond-image :url(blah blah); } and so on.. nothing of the sort #id1 { /* set some property here*/ } Now my question:- Do I need to worry about system generated...

IIS 6.0 Gzip Compression in aspx page

Hi, I am not good at IIS management.I enabled gzip compression for my web site but In IIS Temporary Compressed Files folder,i dont see any aspx type file.I just see js,text,css and some html files.Is that normal?Why dont i see aspx pages as compressed.Thats my metabase.xml and i think that my settings are true. IIsCompressionScheme Loc...

enable html dropdown through controller in mvc

i have an scenario where i have to perform some action according to selection of the dropdown . for basic refrence you can use the example of country,state,city. i am able to populate the country list at that time i have set the other two drop downs to disable. after the countries are populated i want to select the state.it is gettin...

How can I debug problems related to (lack of) postback

I have created a custom wizard control that dynamically loads usercontrols as you progress though it. The wizard is behaving as expected in all environments (PC/MAC) and browsers I have tested however a client is reporting that she is unable to complete the wizard. What I know about the issue: It always fails on the same wizard step fo...

Custom validator error text through javascript ?

I want to set ASP.net custom validator error parameter text through client side javascript. How can access it via sender, args parameters in my function? ...

How to find Dynamic control in Java Script created using asp.net

Hi all , I have created dynamic controls in ASP.NET as following .. first i have created checkbox as CheckBox chkDynamic = new CheckBox(); Then TextBox txtDynamic = new TextBox(); txtDynamic.ID = "txtDynamic"; and these controls added in tablecell added in tableRow added in Table added in aspPanel(Only panel created at design pag...

JavaScript Panning on ASP Image

Hey guys, got a little problem here. I tried to implement some javascript, which should add some client side functionality to an ASP Image component. Actually this image component is one of the DevExpress component, called "AspxBinaryImage". It's just a little modified ASP Image, with some more CSS and stuff, but the base is still just ...

How to get an UpdatePanel inside fancybox working

Hi, I'm using fancybox to display the contents of a div when clicking a link. This works using the code below: <a id="popupTrigger" href="#popup">popup trigger</a> <div style="display:none"> <div id="popup"> <asp:UpdatePanel ID="HerkomstCodeUpdatePanel" runat="server" UpdateMode="Conditional"> <ContentTemplate>...

Error with pageDataSource and Dataview "Index 40 is either negative or above rows count."

I am working with Gridview and implementing custom paging with PagedDataSource. there is also some search criteria in this page with which I reset the Grid with the New data according to search criteria. Problem is that sometime when I try to Bind the Grid with PagedDataSource it gives the error "Index 40 is either negative or above ro...