I have form with 2 DDL named
State and City
State:
<asp:UpdatePanel ID="States" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="States"EventName="SelectedIndexChanged" />
</Triggers>
<ContentTemplate>
<asp:DropDownList ID="States" runat="server"
...
Are there any issues with changing elements which will appear on a web page within a thread. I am from a windows programming background and obviously if a thread needs to change the GUI in some way you have to delegate it to the GUI thread.
Basically my page uses 3 sql queries which can be run concurrently to obtain the page data. So I ...
In the Application_Error method in Global.asax I am trying to retrieve a value from session state.
I am able to access session state as long as I throw the exception. EG:
thow new Exception("Test exception");
However if it is an unhandled exception, i get the following error when trying to access session state: "Session state is not...
I'm building a caching system and I want it to be ready for distributed caching a la memcached. What I'm looking to do is to convert a traditional Hashtable/Dictionary of (string -> object) and to allow per-item expiration to be handled by the Cache itself, in the way that the System.Web.Caching.Cache can do.
I'm aware that memcache re...
i am programatically adding Webcontrols in to a User Control i am also adding a javascript event passing the controlID as a parameter but the clientID is the one i assigned a it does not contain the one that asp.net generates
var txt = new TextBox();
txt.ID = "MyID"+Number;
chkBox.Attributes.Add("onClick", "EnableTxtBox('" +tx...
I'm storing some files in my database and since I'm storing them in binary format and not keeping any other information, I have to make sure that all of them are in the same format so that I'll be able to "serve" them later (If there's a simple way to infer the file type from a byte array, please tell, but that's not the focus here).
So...
I need a technique for dealing with what seems pretty simple!
I have a form, with some logic on the server side for validation.
if the server side code indicates that there is an issue, I want to display a modal popup to the client.
I am having trouble getting it to work in this way.
I found if I keep all the logic client side, I can ...
We should have a full release of asp.net MVC well before .NET 4.0 and VS 10 come out, right?
I'm really hoping MS can keep MVC as dynamic as other more open frameworks are.
...
In ASP.NET, is it possible to use both code behind and inline on the same page? I want to add some inline code that's related to the UI of the page, the reason to make it inline is to make it easy to modify as it outputs some HTML which is why I don't want to add it in the code behind, is this possible in ASP.NET?
Edit: I'm sorry, obvio...
How do you globally set the date format in ASP.NET?
My local machine and servers have Regional Settings set to "English (New Zealand)".
When I format a date with "dd/MM/yyyy" I expect to see "19/11/2008" for today for example.
Until recently, that is what I did in fact get from both my local machine and the servers.
Just recently, fo...
So, I've spent enough time using ASP.NET webforms to know that I'd almost rather go back to doing classic ASP than use them. But I'm hesitant to move to ASP.NET MVC until it becomes more mature. Are there any open source alternatives?
The main thing I'm looking for is something that's easy to learn and to get a prototype up and runnin...
Hey all,
EDIT: For the inner queries, there could be more than one match per inner query. It grabs a bunch of tags with the same game_ID. Thats why .First or .Max won't work.
Need some help, I have a query in LINQ that looks like this:
from yy in Tags_Lookups
where yy.Tag_ID == (from xx in Tags_Lookups
where xx.Game_ID == new Guid(...
This question is directly related to my previous question ASP.NET AJAX
Is it possible to perform the post back asynchronously? I have multiple CustomTextbox controls on the page, when i post back i want to update another control on the form.
If i place all the controls in an updater panel after the first post back to a process that ...
I have a control application - using asp.net webservices.
I have a timer which does an asynchronous webservice call every 5 seconds to update the screen.There are also user buttons to refresh parts of the screen, also doing async webservice calls.
The issue is my screen get messy if a user webservice command is issued before the timer ...
I've been trying to use WF in my ASP.NET application (actually, it's ASP.NET MVC .. but the fact that it's MVC instead of WebForms should not matter at all).
Now, i can run the WF and it works fine, etc.. but it kicks off ASYNCRONOUSLY, so any results from the WF (good or bad) get lost page life cycle.
So .. after crying like an emo fo...
I need rich UI designer for editing the web.config for ASP.net application.
From the designer We can edit the tags in config files
It may be any windows application going to edit my config files.
...
Hi,
Is there a way to define the timezone for an application in ASP.NET such that all times read from/compared to current server time are implicitly converted, or do I need to put in conversion statements as each and every DateTime.Now call?
...
I need to use a byte array as a profile property in a website. Normally I would declare the type as system.string or system.int32 but I have no idea what the type if for a byte array.
EDIT: I need to use this as profile property that is declared in the web.config like below:
<profile defaultProvider="ProfileProvider" enabled="true">
...
Hi Guys,
Ours is an upcoming company, so we cannot buy two three third party controls and find out by ourselves which the best one is.(One of the better solutions)
We have a budget to buy just one.
So we would like to know which is third party control is the best to use in ASP.NET based on your experiences.
And also I definitely saw a ...
Hi
I use the Autocomplete extender feature to get the list of suggestions from my database. There is no scroll bar for this control, so I have added a scroll bar in a panel (MS .net 2.0) which i attach to my autocomplete extender.Now the issue is with the srcoll bar.
like this
<asp:Panel ID="autocompleteDropDownPanel" runat="server" ...