My page contains a Repeater that is loaded with data asynchronously as the data becomes available, using an UpdatePanel to manage the asynchronous requests.
The page contains something a little like this:
<asp:UpdatePanel ID="DataUpdatePanel" runat="server">
<ContentTemplate>
<table>
<asp:Repeater ID="RepeaterBlock" runat="serve...
In my global.asax I have the following code:
public static bool Was = false;
protected void Application_Start(object sender, EventArgs e)
{
Was = true;
}
When I open a page and look at the Was variable, it's still false. What gives? (Note: the variable isn't used anywhere else, I made it just for this test case)
Update: I just f...
We have to develop an specific webpage with php and up until now we have used asp.net, the problem is that we arent able to take the tipical development steps in php.
For asp.net:
Design interface (aspx/html) (With visual designer)
Create controls events (Button click, combo select etc...) (for ex. double click on x control creates th...
We have a web site in the domain, let's name: http://website.com. It is necessary to implement same look-and-feel on another web site (https://custom.website.com). As we can see, the 2nd is in the sub-domain of the 1st one, but it is secured (it uses https).
To achieve same look-and-feel same DLLs are used in both web sites. These DLLs ...
Hi
Is there an alternative to overriding the page render method to make my gridview rows clickable. This works fine in single grid view mode, but when nested , although the code steps through and seems ok, I don't get the selected index firing on the nested grid view.
Edit: I have tried the following line in RowDataBound, but don't kno...
Is it possible to add javascript reference dynamically from code behind aspx.cs?
Like this:
private void AddScriptReference(string path)
{
//Add reference to <head></head>
}
Should result in a script reference being added to the head of the page, like this:
<html>
<head>
<script type="text/javascript" src="path-to-script...
I need to update the handler mappings on IIS 7.5 to allow URLs that don't have extensions to be routed to an application. The application was originally written in ASP.NET 2.0, but then later upgraded to ASP.NET 3.5. I don't know if that has relevance, but I've had no problem updating handler mappings for other .net 3.5 apps before. I sh...
Hi All,
I am trying to set some client-side properties on a set of controls in the EditItemTemplate of an ASP.Net ListView.
For instance, if the EditItemTemplate contains something like this:
<tr id='phoneRow'>
<td>
<asp:Label ID="lblPhoneLabel" runat="server" Text="Phone Number: " />
</td>
<td>
<asp:Label ID="lblPhoneNu...
Hello,
I am messing up somewhere when writing a function to execute stored procedure. I think i don't have an idea how to execute SqlHelper.ExecuteReader. in SQL server 2005
This should return the state name. But i get it empty. Any idea, why??
Thanks in advance :)
reader = SqlHelper.ExecuteReader(DbConnString, System.Data.CommandTyp...
I am trying to create a simple search box that results in something like http://www.example.com/Search?s=searchTerm I have the routing setup so that it accepts a url like this, and does the right thing. The problem I'm having is getting the form to create the querystring. I have tried many variations of:
<% using (Html.BeginForm("Sear...
The following works:
If 1=1
rdoYes.checked = True
Else
rdoNo.checked = True
End If
However, the following doesn't work:
IIF(1=1, rdoYes.checked = True, rdoNo.checked = True)
Why is this?
Thanks!
...
I am using an AJAX CollapsiblePanelExtender for several sections of a form. I can collapse a panel programatically using the following 2 lines:
ajaxCollapsiblePanelExtender1.Collapsed = true;
ajaxCollapsiblePanelExtender1.ClientState = "true";
However, the expand/collapse animation does not play as when the Expand/Coll...
I need to get data from a database and I need to spit out this data in html formatk using my command line app. For this I am planning to use some sort of template-engine. I was wondering if there is anything in .NET that can do this for me?
The best option would be if I could reuse the asp.net mvc template engine (razor) in my app, thi...
Hi
I'm newbie when talks about Error Handling. It's a subject that i want to study but right now i just don't have free time, so i'm looking to implement an error/exception handler one a few projects i've developing last weeks (C#, .NET 3.5).
What do you recommend me to implement for this? Other point is where to store the errors logs....
I use a separate project for my data layer and call one class within it clsData.cs. I'd like to know which page from the Presentation Layer (in another project within the solution) has referenced it from the clsData side, if that's possible
...
I'm having trouble with an app that runs on IIS 6, but not IIS 7.5 (as outlined in this question: IIS 7.5 Can't open Handler Mappings?)
I think it might solve the problem if I could run IIS 6 on my machine as well as 7.5. Can this be done? Will it cause any problems if I do this?
...
I'm trying to build a process that will repopulate an item that was inserted into cache every 30 minutes. I inserted the item into Cached to expire after 30 minutes. I setup a delegate (http://msdn.microsoft.com/en-us/library/system.web.caching.cacheitemremovedcallback(v=VS.90).aspx) to be called when the cached item expired. My goal was...
I am using vb.net, I have a user contol in a page, this user control creating table rows with textbox and button dynamically and adding button event dynamically. This adding function is calling the user control page_load event.
My problem is the button event is not fireing in first time page load. but it is fired in second time page.
...
Hello.
I have a button on which I wish to validate a specific ValidationGroup in ASP.NET. This button is not a server control, but a standard a tag with an onclick event on.
I have multiple validation groups on this page, so by calling Page_ClientValidate() is not enough, as the other validators will kick in as well.
If your answer r...
My background is mostly in desktop applications on the Microsoft platform. I've been working a lot with ASP.Net MVC lately and completely skipped over learning webforms. I find I'm having the most trouble (not being a web guy) with writing my views in MVC. How proficient should I be with HTML and javascript to write good views in MVC?...