Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:705423
More Search Options
RSS Available
Matching Posts
Re: server-side validation event not firing
Hi, are you setting any of the properties of the validator in runtime? It may be cause for your problem, if the validator is not hooked properly, then the button event wil l be fired before the the validation event. Check whether you have set the clientvalidation, if you are not using it then it should false, though if you are able to raise a postback, this should not be problem.
Posted to
Web Forms
(Forum)
by
kakali
on 1/31/2008
Re: server-side validation event not firing
Hi, Please check that you set EnableClientScript ="false" for the validator. Server side validation normally fires if you set EnableClientScript ="false" and causesvalidation = true for the button raising the event.
Posted to
Web Forms
(Forum)
by
kakali
on 1/31/2008
Re: Word files in ASPX Page
Hi, Then you can display it in iframe as well though i am not sure how your tool will capture the updated word doc from client side. If that is done then you can use it. Or else you can use Response.BinaryWrite(); byte [] data = //read your file into byte HttpResponse response = HttpContext.Current.Response; AddHead(response, yourMIMEType, yourFileName); //mimetype will be doc if (data != null ) { Response.BinaryWrite(data); Response.Flush(); } In this case also you need to capture the updated document
Posted to
Web Forms
(Forum)
by
kakali
on 1/31/2008
Re: server-side validation event not firing
Hi, Please check the CausesValidation property is set true for the button. Is postback is happening properly and the validation event not firing?
Posted to
Web Forms
(Forum)
by
kakali
on 1/31/2008
Re: Validating 3 drop down lists
Hi, You need to use custom validator. You can use this in server side, then u can directly use the session variable If you want the validation to be in client side then add a attribute to your customvalidator: customValidator1.Attributes.Add("CheckLength", Session["yourvalue"]); then in the ClientValidationfunction of the custom validator: function ValidateLength(source, args) { if(args.Value.length > source.CheckLength ) { args.IsValid=false; } else { args.IsValid=true; }
Posted to
Web Forms
(Forum)
by
kakali
on 1/31/2008
Re: How can I access dynamically created controls?
HI, It's good to add the control in some server container control (say, Panel) created in design time. Then you can find the control by FindControl or as below: foreach (Control _control in this.yourPanelName.Controls) { if (_control.GetType() == typeof(yourControlType)) { //your code } } Don't forget to re-create the control in each postback.
Posted to
Web Forms
(Forum)
by
kakali
on 1/31/2008
Re: Word files in ASPX Page
Hi, You can display a doc file in a iframe, but you can't edit and save it back to server. Because browser will download the file from server to temp file folder and if use saves the file also, it will be saved in temp file folder in the client, not in the server . You have to use WebDAV or sharepoint for the same.
Posted to
Web Forms
(Forum)
by
kakali
on 1/31/2008
Re: Word files in ASPX Page
Hi, Best thing to use WebDAV.
Posted to
Web Forms
(Forum)
by
kakali
on 1/31/2008
Re: OPen Link in new window
Hi, Add this Javascript function: function fn() { var x = window.open( 'test.aspx' , 'PopUpWindow' , 'width=800, height=600,statusbar=yes ,scrollbars=yes, menubar=no, resizable=yes' , true ) x.window.focus(); } You can call this function to 'OnClick' event of any control, say a linkbutton. The 4th optional parameter (replace: boolean) of window.open checks whether the same window is already open or not. if set to true, then it replaces the exsisting one. For that you
Posted to
Web Forms
(Forum)
by
kakali
on 1/31/2008
Re: Web site namespace
Hi, All the web pages are by default inherited from System.Web.UI.Page class, so you can't put your own namespace there. If you want to use a specific one, then better you create a class file (wrapped it by your namespace) inheriting from System.Web.UI.Page class. And all the web page can be inherited from that base class. Please remember that you cann't use any namespace in aspx/aspx.cs files. I am not very clear about your intension, but if you are trying to instantiate any wab page and
Posted to
Web Forms
(Forum)
by
kakali
on 1/30/2008
Page 1 of 14 (133 items) 1
2
3
4
5
Next >
...
Last »
TechNet Edge:
Managing Your Entire World - Tech Focus November 2009 Part 3
Channel 10:
Show Us Your Tech - Mark Pendergrast Edition
TechNet Edge:
Mark Russinovich interview at TechEd EMEA 09
TechNet Edge:
IT Manager Podcast #31: Talking About Virtualization
TechNet Edge:
System Center Operations Manager 2007 R2 – Service Level Dashboard part 1: Introduction
WindowsClient:
MSXML XHTML DTDs - making the web better
TechNet Edge:
How it works: Active Directory Rights Management Services
Channel 9:
Inside Windows 7: Recovering Windows from System Degradation and Boot Failures
Channel 10:
Ebay Launches IE8 Webslice for Holiday Shopping
Channel 10:
New Windows Smartphone Includes Built-in PowerPoint Projector
Channel 10:
Bing's Top Searches Reveal Our Celeb Obsessions
Channel 9:
Ping 39: Chrome is here, Dancing in MS Stores, Iphone & Bing
ASP.NET:
Building Twitter Search using the ASP.NET Ajax Library Beta – Part 1
Silverlight:
Using Azure as a Silverlight Streaming replacement
Silverlight:
Building extensible Silverlight applications with MEF
TechNet Edge:
Joachim Nässlander on Live Migration
ASP.NET:
T4MVC 2.6: MVC 2 Areas support
ASP.NET:
Script# Update - v0.5.5.0
Channel 10:
Difference between DirectX 10 and DirectX 11
Channel 10:
WHS Power Pack 3 Arrives
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online