asp.net

"Page.IsValid cannot be called" occurs in Page_PreRender event handler

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. ...

hover event problem with jquery

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 ...

JQuery is not working properly when embeded into a ASP.NET WebForm project

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...

create flash ebook

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 ...

link images in ajax slide show

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...

Add default listitem to asp.net dropdownlist

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...

MVC 2 map routing from one controller to another

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 ...

Is it possible to customize the default asmx test form client ?

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 ? ...

Access a dynamically created control through javascript - ASP.NET

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 ...

EntityDataSource Show Entity Data With It Navigation Properties

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...

Clear all fields in ASP.net form

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 ...

My asmx webservice works locally but not when deployed on remote IIS 7

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...

give <a> style in code behind

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...

asp.net pass variable from code behind to .aspx

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...

ASP.NET MVC Multithreading

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...

internet explorer 8 and issue with calling external scripts in https

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...

Recommendation for Viewstate abuse

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...

ASP.NET - best method for website where user can create articles (like a blog)

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...

ASP.net, C# Page load on lightbox close issue

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 ...

asp.net 4 custom request validator doesn't seem to work

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...