.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

how to use .jsfile in webusercontrol???

Posted By:      Posted Date: September 25, 2010    Points: 0   Category :ASP.Net


i have one webusercontrol in this i have 6-textboxes i want to write jscript validation for this.... how can i achive it...??

plz help me....

View Complete Post

More Related Resource Links

Asyncfileupload doesn't work in webusercontrol

I'm having a problem with a Webusercontrol that has an asyncfileupload control. My websusercontrol is being loaded in a placeholder control that's wrapped by an updatepanel.Due to asyncpostback, I have to load and clear the placeholder's controls. The webusercontrol works flawlessly, except the asyncfileupload, which doesn't want to upload at all. I can assure that the code is without error, because I used to have the webusercontrol running as an *.aspx site. I guess that the problem is the fact that the control has to be cleared and reloaded with every asyncpostback ?

Nested WebUserControl Problem...


I have a page that I am using to call all user controls at the time they are needed to perform different actions against the database.  I have gotten the user controls to load at their proper times, however I am having some difficulty with one of the controls.  The control in question has to be called at the time of page load but not rendered until asked for by the user. Nested in the control is another custom control for uploading a picture.  When the user clicks the "Change Picture" link button the desired result is that the file upload control and save/cancel buttons become visible.  However when the user clicks the "Change Picture" link button nothing happens on the first click, then on the second click the main user control closes.  I have looked at alot of articles regarding nesting user controls but none of them describe how to make the control dynamic and persistent until it is not needed any longer.

Here is my code for the 2 user controls and the main page....

Nested Control:


<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EmployeeImgUpl.ascx.cs" Inherits="HR_Intranet.userctrls.EmployeeImgUpl" %>
<link href="../App_Themes/UserCtrls/UsrCtrls.css" rel="stylesheet" type="text/css" />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Condit
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend