Hi I am using the following to sort results of a datatable returned by a tableadapter
Dim spots = myDataTable.Where(Function(t) t.UserID = 1).OrderByDescending(Function(t) t.Title)
The thing is, I also need to OrderByAscending the very same datatable. But as far as I see, it is not giving it as an option. I am sure there is a way to ...
I can't figure out why the exception from a static ASP.Net Page method isn't bubbling up to the Application_Error event to be handled in the global.asax file. I'm not really expecting any errors, but I would like to be safe and know about them if they do happen to occur and would rather not wrap every static method in a try...catch.
Doe...
Hi
I am trying to add an Application Extension Mapping to a website in IIS6 running on windows XP. My steps are as follows:
Home directory > Configuration > Mappings > Add
Executable: aspnet_isapi.dll
Extension: .xml
Verbs: All Verbs
but the OK button is always greyed out.
Is this a limitation of IIS6 on XP?
...
This is related to naming conventions for a DOM element's id attribute and I guess the name attribute as well. When it comes to JavaScript, from what I understand and have done is always use camel case except for the names of classes. Classes are Pascal cased.
Having said that I develop in ASP.NET mainly and here's where I run into a na...
I'm a bit of an MVC newbie, so you'll have to forgive what I imagine is an elementary question.
I created a custom viewmodel in order to have a multiselect list in my form:
public class CustomerFormViewModel
{
public Customer Customer { get; private set; }
public MultiSelectList CustomerType { get; private set; }
public Cu...
I am using the PartialCaching attribute on the base class of a user control.
I would like the cached controls to vary based on the properties set on the control instance.
For example:
<mycontrols:control1 runat="server" param1="10" param2="20" />
...output would be cached separately from a control instance with different properties:...
This was a hard question for me to summarize so we may need to edit this a bit.
Background:
About four years ago we had to translate our asp.net application for our clients in Mexico. Extensibility and scalability was not that much of a concern at the time (oh yes, I just said those dreadful words) because we only have U.S. and Mexican...
This seems to be a great article by Scott Mitchell for creating syndicated feeds in ASP.NET 3.5. The problem for me is that it uses C# and Linq, which I'm not as sharp on at the current time.
http://dotnetslackers.com/articles/aspnet/How-to-create-a-syndication-feed-for-your-website.aspx
Does anyone know where an example might exist f...
Hi,
I'd like to know if it is possible to set a field of a DetailsView BoundField (in edit mode) from javascript? I can't set an id for the boundfield, so obviously can't use document.getElementById() to get to it, but I was wondering if there's another way to do it?
...
This will set the value, but will not cause a postback:
function SelectValue($ddl, $val) {
$ddl.options | % {$i = 0}{ if ($_.value -eq $val) {
$ddl.selectedIndex = $i; }; $i += 1; }
}
Also, once I get the postback working, will I need to add a delay, eg:
while($ie.ReadyState -ne 4) {
start-sleep -m 100
...
I am trying to implement an application which will dynamically create a list with a button next to each item on that list. I am partially able to do this using the Panel control in the aspx page and adding html dynamically in the code behind. I am having problems adding the LinkButton dynamically which will do database work based on wh...
How can I calling a webservice not written by me from asp.net ajax. What's the latest and best way of doing it?
...
I was wondering if the following error,
System.Web.HttpException: Unable to serialize the session state. In 'StateServer' and 'SQLServer' mode, ASP.NET will serialize the session state objects, and as a result non-serializable objects or MarshalByRef objects are not permitted
was caused by not serialising properties.
Any ideas?
Thank...
I have a DetailsView that I'm posting back - and inside of that is a UserControl. I'm having some difficulty located it in the postback data.
As an example:
<asp:DetailsView ID="dvDetailsView" runat="Server" AutoGenerateRows="false">
<Fields>
<asp:TemplateField>
<ItemTemplate>
Some text here
</ItemTemplate>
<EditIte...
Hi All,
I am new to mobile application development.
How to Debug .net applications in windows mobile.
Please help me in this. Thanks in advance.
...
Hi All,
I need some suggestions on following code:
Scenario: Its like a Opinion poll, You have to choose Yes/No and the data will be stored on DB.But I think this code can be optimized,can some body suggest proper way of doing this.
<form id="form1" runat="server">
<div>
<asp:radiobuttonlist id="RadioButtonList1" runat="server...
i have a datatable with the results i just want to refine the results using this datatable... i am trying to do it but this datatable is distroyed each time page is refreshed......
...
Hi,
i'm reading the book manning - asp.net ajax in action. on page 54-58 client delegates and callbacks are described.
in short:
with the client delegate you can change the this variable in the event handler itself to reflect another object. (so it won't be the DOM object that triggered the event for DOM events)
with a callback you c...
I was wondering is there is a way to introduce sub-domains in Asp.net 3.5 routing
All i found as this http://blogs.securancy.com/post/ASPNET-MVC-Subdomain-Routing.aspx
But i was looking for something more complex to allow doing wild-card sub-domains
Any Help ?
...
Hi,
How would you go about implementing private mail functionality such like Bebo/Facebook and other social networking sites?
You have the option to post public comments on a member's profile, but you can also send a private mail.
I was considering using XML and just storing it as a field in that particular user's record. Does this so...