CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > windows_hosting.hosting_open_forum Tags:
Item Type: NewsGroup Date Entered: 4/1/2004 8:24:11 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 83 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
bobafett
Asp.Net User
Javascript and user control (ascx) help!4/1/2004 8:24:11 PM

1/1

Hi, I need to ask a question for laguage selection. But the code and control for changing the language are in an ascx page. For now I do this:

I put this in my code

<input id="funcLangue" style="WIDTH: 92px; HEIGHT: 22px" type="hidden" size="10" name="funcLangue" runat="server">4

and that for the button
<img src=En.jpg> border=0>

My javascript code place information in the hidden input and then call a postback to call a sub in my vb.net code.

function LangueEn()
{
if(confirm("Keep your language selection for your next visits?"))
{
document.forms['Defaut'].elements['Menu_funcLangue'].value = "English";
__doPostBack('Menu$ChangeLangue', '');
}
}


My user control i used in myna page with different root deep. I try to bu consistent and all the aspx page using this menu.ascx as a form named "defaut". All page are en link to the menu.ascx whit the same tagname like this:

<%@ Register TagPrefix="Baultar" TagName="Menu" Src="../Controles/User/Menu/Menu.ascx" %>

The problems when i am in the index.aspx page alle work good, if I go to another aspx page using this menu.ascx I got an error ("Objet is null") on the line

document.forms['Defaut'].elements['Menu_funcLangue'].value = "English";

After some research, I found that asp.net change the name of my control. My program supposed that the name is always menu_funcLangue to asp.net change it to menu1_funcLangue. Why?

Meaby i do all this with the wrong method. Somebody have some suggestions?

Thansk a lot
master4eva
Asp.Net User
Re: Javascript and user control (ascx) help!4/2/2004 5:19:06 AM

0/0

Check that the user control's ID is "Menu1". If you want consistency, you could even override the ID and have a static ID:

protected override string ID {
get {
return "Menu";
}
set {
}
}

-- Justin Lovell
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning DotNetNuke Skinning and Design: Skinning and Desing Authors: Andrew Hay, Nina Meiers, Shaun Walker, Pages: 432, Published: 2007
Programming ASP.NET: Building Web Applications and Services with ASP.NET 2.0 Authors: Jesse Liberty, Dan Hurwitz, Pages: 930, Published: 2005
ASP.NET 2.0: A Developer's Notebook Authors: Wei Meng Lee, Pages: 326, Published: 2005
ASP.NET 2.0 MVP Hacks and Tips Authors: David Yack, Joe Mayo, Scott Hanselman, Fredrik Normén, Dan Wahlin, J. Ambrose Little, Jonathan Goodyear, Pages: 400, Published: 2006
Pro ASP.NET Web Forms Techniques Authors: Alex Homer, Pages: 580, Published: 2003
ASP.NET 2.0 Website Programming: Problem-design-solution Authors: Marco Bellinaso, Pages: 576, Published: 2006
Visual Basic.NET Unleashed Authors: Paul Kimmel, Pages: 784, Published: 2002
Essential SharePoint: Microsoft Office Document Collaboration in Action Authors: Jeff Webb, Pages: 310, Published: 2005
Mastering Dreamweaver MX Databases Authors: Susan Sales Harkins, Bryan Chamberlain, Darren McGee, Pages: 707, Published: 2003
Pro Ajax and the .NET 2.0 Platform Authors: Daniel Woolston, Pages: 463, Published: 2006

Web:
Re: how to debug javascript which is there inside user control ... Re: how to debug javascript which is there inside user control (ascx page) in VS2008 ... usercontrol and unable to do with .ascx(usercontrol) page, any help ...
How to use javascript code in user control page file ascx and ascx ... How to use javascript code in user control page file ascx and ascx.vb. ... javascript code and how to call its function .please help me its ...
ASP.NET 2.0 User Control (ascx) - Using Javascript User Control (ascx) - Using Javascript. c g posted at 24-Apr-07 11:09. I have an ascx. I have some client side JS on the ascx itself. ...
Accessing HTML Control in ASCX through JavaScript Talk about Accessing HTML Control in ASCX through JavaScript. ... So how do I access HTML controls that are in a user control using ...
Javascript function to validate a textbox on ASCX - help - ASP.NET ... Javascript function to validate a textbox on ASCX - help ... You must know that a user control also adds extra information to the names/id's of a control ...
Job Openings: Expert Javascript / DHTML programmer to help with a ... 41996, 07/2008 - 07/2008, Expert Javascript / DHTML programmer to help with a . ascx control, $441 (40 hrs @ $11.11), 4.9 L Buyer-to-Provider Feedback: 5.0 ...
Web UserControl (ascx) and UrlProperty attribute appliable to custom web server control rather than ascx user controls. ... neverending patience and your help. My questions must be funny ...
CodeProject: ASCX Control Parser. Free source code and programming ... A program that allows you to convert .ascx User Controls into redistributable controls ... A Simple Date Selector User Control in ASP.NET (JavaScript based) ...
[RESOLVED] [2008] Connect AJAX Extender inside UserControl (ascx ... Here, "MyExtender" is the UserControl which has the extender control ... You would need JavaScript for this. The WebPage can search for ...
How to validate fields located in user control (.ascx file ... How to validate fields located in user control (.ascx file) Web. ... on viewDetails.ascx, system throws following Javascript error: ...




Search This Site:










<a href='...'>...</a> problem

where does my text go!

restoring deleted toolbox tab

creating html document from asp

checkboxlist problem. text overwriting value.

error uploading/ installing forumblog module

encryption- where to store the keys?

stopping the back button

running remote debugger

how skinning and css works ..

about strongnamed assemblies and asp.net in the bin directory

unique datasets

how to delegate membership authorization to new role

how do you import a sql database in visual web developer express 2005?

changing default save-as value

whitepaper on control adapters

oliver hine weather.com feed for dotnetnuke

displaying two datalist

usercontrol events

binding a gridview to a .txt file

recipe module

user's machine address

mydotnetnuke - user customizable pages

amsx, c#, common base classes - where??

help with rreading from word doc and then outputing contents.

user session timeout problem

how to add some contrls to webpart dynamicily

preventing progammatically added webparts from entering personalization db

trying to build scott mitchells photo site in asp.net in 24 hours

web deployment project migration tips

 
All Times Are GMT