Hi
I've setup up a WCF web service to handle requests from a Silverlight application. That service has Windows authentication set up which works well with the following endpoint configuration
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="Test.Service.ServiceBehavior">
<serviceMetadata...
<select name="MessageType" style="width: 151px">
<option value="P">P - Proprietary</option>
<option value="B">B - BCBSA</option>
<option value="S">S - Place Specific</option>
</select>
How to set the selected value for this Dropdownlist box?
<%=p.MessageType%>.. this is the value I am getting from database so that In my ...
This is going to sound very silly but I can't get a string to convert into a DateTime that carries the date and time
I try this :
Response.Write(year + " " + month + " " + day + " " + hour + " " + min );
//prints 2008 9 23 11 59 0 (represents 9/23/2008 11:59 00 AM)
DateTime dt= new DateTime(year , month , day , hour , min , 00);
Bu...
I have a simple custom control that boils down to a label and a listbox. Selections in the listbox are reflected in the label as comma separated values.
My question is what is the best and simplest way to make the page developers experience of working with the custom control exactly mimic the experience of working with just the listbox...
I have a website that is currently running under .NET 3.5. I am thinking of making it run under 4.0, but I use many 3rd-party DLL's for compressing, Bit.ly, Twitter, XML, etc. If these DLL's were created for .NET 3.5 (in VS2008), will they continue to run under 3.5? Or is 4.0 somehow backwards compatible for old libraries?
...
When I go to parse through the table, all the stuff I created programmatically is missing...
I must be forgetting something so that it's losing all the stuff that I built programmatically (I am only getting the shell of the table).
Any ideas?
If I put the table in a Session object after I programmatically create it then it works exc...
i just use this code to insert value in datatable and pass this table in method
look code---
public class RoomBO
{
DataTable dt;
RoomDal objRoom = new RoomDal();
public int insert(int room,string bedType, int bed, int charge)
{
//adds the details of the new room
dt = new DataTable();
dt.Columns...
I am trying to copy code from one project to another. There is one problem however:
The type 'Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.Practices.EnterpriseLibrary.Data, Version=3.1.0.0, Culture=neutral, PublicKeyToken=nu...
I just built my first DDS and I like how simple it was to do, and how much functionality comes right out of the box. I was able to customize the various pages a bit, though there are two things I still need to do, and I'm not sure where to go. There is not a lot of writing on DDS's yet, surprisingly, at least not in books.
Problem 1: ...
I am working on creating an iphone application which logins to we website and retrieves a table, and displays the content within the app. To view the table a Login is required. It seems the site is using Form-Baseds Authentication. WebSite's Login Screen
So How do I pass the login ID and pass from xcode to the to the site and retain the...
Can someone tell me if its possible to run both a 64bit compiled web site and a 32bit compiled website on the same IIS7.5 machine. The core OS would be Windows 2008 R2 64bit. I looked around and can only find how to switch the appPools to 32 or 64. But the question I want answered is can you have one appPool 32bit and another 64bit? ...
From Rails and some people's ASP.NET MVC examples I got the feeling that routes are mostly written in lowercase. C# conventions do require uppercase classes and method names so controllers and controller action's will remain uppercase but I'm wondering if I should start writing routes in global.asax.cs in all lowercase (as opposed to wha...
i am trying to figure out how to display message box after it done executing the server side code
here is the code which works from the client side but still looking for a way to make it work from code-behind
.aspx
<div id="status"></div>
script:
$("#status").fadeTo(500, 1, function() { $(this).html("You are now registered!").fad...
Add dynamically controls to asp placeholder in addition to controls which already exist in it ?
how to add them?
for example - on page load I added to textboxs and labels to placeholder on button click I need to add additionally one more textbox.
...
I am beginning to wonder if this is even possible. It just seems so simple.
I have a published web project. I want to add some .ascx files (with .cs & designer.cs files) to that published web site. These are simple custom user controls that access methods already part of the original application.
Question? Is it possible to just d...
Hi guys and girls,
I seem to have a problem fully understanding url routing. Like on an aspx page called News.aspx I want to show the full news listing, on the page News.aspx?view=detail&id=x I want to show the news details. And on the Page News.aspx?view=browse&pageindex=1 I want users to be able to browse to the archives.
So basiclly...
I have a Windows Service that retrieves messages from a RabbitMQ queue. The service works locally on a Windows 7 machine. When I install the service on a Windows 2008 server it does not work (and does not throw any errors). My ASP.net MVC app can publish messages to the same queue. Could there be a firewall or security issue here? ...
Hello everyone.
I have an HtmlEditor from asp controltoolkit.
That creates an iframe with a couple things i need (bold letter, etc).
I need to add text to that iframe with jquery.
so long i have this.
$('#<%= tbDescripcionInsert.ClientID %>').contents().text(textoMercancia.substring(15, textoMercancia.length));
My problem is that t...
I’m trying to decide which of the two factory patterns I should use in my Asp.Net applications:
1 : All DAL providers derive from same abstract base class DepartmentsProvider, which defines public interface of the class ( all the necessary CRUD methods for which derived classes (providers ) provide a concrete implementation ). BLL lay...
Hi everybody,
I have a web site with a bunch of DLL in the bin directory. I have to use a newer version pf AjaxControlToolkit and I can't replace the old one.
So I create a virtual directory in the web site. I copy the new AjaxControlToolkit and the others DLL. But when I try to get the session variable (accessed normaly by the website...