Hi,
I'm currently learning ASP.NET, and read that the page validation occurs after Page.Load(). When I put
if (Page.IsValid == true) whatever;
then I get an error, even though that line is in my Page_PreRender() event handler.
How does that make sense?
Thanks in advance, just trying to understand it fully.
...
hi all im building a menu and im trying to put an hover effect on each menu item
but... when i hover everything is working great and i get the html i want and the menu item has a backgruond image.
but the unhover effect dosnt fire most of the times. i found out that if i move my mouse horziantly across the ul menu it works fine. but if ...
Hi,
I'm just using a simple slideToggle function of jQuery. It works properly in my HTML file. But whenever I take codes into a ASP.NET WebForm project, script doesn't work. I can't achieve slide effect.
Is this a known issue? It's probably a popular mistake done by developers though. What could be the problem? Any possibilities?
(I d...
Hi there, what i'm asking about is that is it possible to create a flas ebook where u can flip pages as if u r reading a printed book, and populate the content of that ebook from a database?
in other words , can i have a web page that have ,let's say, a flash ebook viewer tha loads its pages content from a database?
regards
...
I had ajax slide show and I tried to make images as href to other link I didnot .
<web service>
public AjaxControlToolkit.Slide[] GetSlides()
{
return new AjaxControlToolkit.Slide[] {
new AjaxControlToolkit.Slide("<a href='NewsEvents.aspx'>images/aboutus_Iso_2.png</a>", "QUALITY ASSURANCE CERTIFICATE ISO", "EL- ARABY group re...
I have a databound dropdownlist, bound to an object datasource. I want to have a default value of "None" inserted at the top of the list and I would like to do this declaritively if possible. After much googling I came up with the below code. However it does not display my default item. I was under the impression that setting the AppendD...
Hi,
I am using MVC 2.
I have 2 controllers called Application and Note. The application is a loan application. A note can be added to an application.
On my Index I have a grid that displays all the applications, and an action column with a link that says "Add Note".
In my Application controller I have action methods for create and ...
When creating an asmx webservice, ASP.NET generate dynamically a webform client for testing, is it possible to customize it (for example I'd like to create a checkbox for boolean, combobox for list of values,...)
Aren't the source code accessible somewhere ?
...
Hello
I've a JavaScript function in my page through which i make some elements in the page as 'JQuery UI droppable'.
function setDroppableTargets()
{
$(.cssDockZone).droppable();
}
But the elements with the class cssDockZone is created dynamically upon user interaction. So in the code behind i create the control first and finally at ...
Hi i have a entity that cold Users that have a navigation property UsersData that have a field "LastLoginDate" what i want to do is use EntityDataSource to display some information of the users inside a GridView (I don't want to do it from code behind with linq) . I tried to use Include property of EntityDataSource but i don't know how u...
Hello,
Is there an easy way to reset all the fields in a form. I have around 100 controls in my asp.net form and there is submit and reset buttons.
How do I make all values in the fields null when user hits reset button?
I have a lot of dropdown boxes, textboxes, checkboxes
Please help
...
I have developped an asmx webservice with visual studio and I deploy on IIS 7 which has 3.5 Framework by copying all the files.
When testing it says
Could not load file or assembly
'System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or
one of its dependencies. The system
cannot fi...
I had controls any control have class from style sheet when I click on event .I tried to do that but i didnot please any one help me.
aspx:
<a id="CPCSS" runat="server" href="CompanyProfile.aspx" >Company Profile</a>
CEO Word
cs:
protected void CPCSS_onclick(object sender, EventArgs e)
{
CPCSS.Attributes.Add("Class", "ad...
I guess I'm missing something here, but I can't find a way to pass a simple variable from my code behind file to the .aspx page.
In code behind I have:
Dim test As String = "test"
and in my aspx page I try: <%=test %>
that gives me the following error:
Error 2 'test' is not declared. It may be inaccessible due to its protection le...
Hi everyone,
I want to implement such logic in my asp-net-mvc application:
user clicks a button ->
server executes some time-consuming logic in ~15 threads (i get data from really slow independent sources) ->
when all work is done, server merges the results and passes it back to user
The other day i've seen an article which explain...
Hi,
Is there some sort of issue between internet explorer 8 and referencing external scripts outside the domain when using https. I used script from to lookup addresses using postcodes etc. using the script from http://www.postalcodeanywhere.com/. A button shows up in Firefox to do the address lookup but it does not show in IE 8.
The sc...
I was going through Scott's list of .NET questions at http://www.hanselman.com/blog/WhatGreatNETDevelopersOughtToKnowMoreNETInterviewQuestions.aspx
In a comment there is a scenario - You are reviewing an ASP.NET application and find that the viewstate is storing "id", which is being used for different unrelated purposes on different pag...
I'm an ASP.NET newbie, but not so new at programming in general.
I'm creating a commercial website, and I want to allow an admin to add new articles (an article consists of text, images and various properties such as category).
I am trying to decide the optimal Modus Operandi. This site is commercial, so SEO is a major consideration. Thi...
I want to know what exact events fires when ASP.NET page load event fires. As i am using a lightbox in which some insertion is going on and after insertion i want that the parent page reloads with the new value loaded in gridview which i have in parent page. In light box page i added javascript event of parent window reload but sometime ...
Hi, i am following the example at http://msdn.microsoft.com/en-us/library/system.web.util.requestvalidator.aspx but it doesn't seem to work and i still get error. Here is my class and how i add it to webconfig
my webconfig:
<httpRuntime requestValidationType="CustomRequestValidation"/>
my class:
public class CustomRequestVali...