Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Javascript and server calls

Reply
Thread Tools

Javascript and server calls

 
 
Ric Pullen
Guest
Posts: n/a
 
      07-17-2003
Is it possible to have a button run client side script and then depending
if its valid allow the postback to continue otherwise it prompts the user.

I know this sounds like a validation issue but its not possible to do it
with the validation components.

I use infragistics webgrid and i want to test if there is an active row...
if so then I will allow a postback otherwise prompt the user to select one.

I have already assigned the javascript with the following code
btnEdit.Attributes.Add("onclick", "javascript:EditRowSelectedCheck()")

Cheers.


 
Reply With Quote
 
 
 
 
Anatoly
Guest
Posts: n/a
 
      07-17-2003
1)There is much better place to ask questions related to infragistics:
http://www.infragistics.com/support/newsgroups.asp.
2)

function IsSelected(){
var grid = igtbl_getGridById(GridId);
return (grid.getActiveRow() != undefined);
}

GridId here string(Id of UltraWebGrid)
HTH




"Ric Pullen" <Richard.Pullen-> wrote in message
news:...
> Is it possible to have a button run client side script and then depending
> if its valid allow the postback to continue otherwise it prompts the user.
>
> I know this sounds like a validation issue but its not possible to do it
> with the validation components.
>
> I use infragistics webgrid and i want to test if there is an active row...
> if so then I will allow a postback otherwise prompt the user to select

one.
>
> I have already assigned the javascript with the following code
> btnEdit.Attributes.Add("onclick", "javascript:EditRowSelectedCheck()")
>
> Cheers.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload and Preview Image with Javascript with making any server calls kiran Javascript 7 11-09-2011 03:20 AM
Voipdiscount Outgoing Calls with Sipgate Incoming Calls on a Linksys PAP2 Giganews UK VOIP 27 10-09-2006 11:28 PM
ods calls business object then method calls ta with output params andy6 ASP .Net 2 06-09-2006 01:54 AM
MoVoIP - FREE MOBILE Inetrnet Phone Calls - FREE Internet Phone Calls ubifone VOIP 0 07-29-2005 04:31 PM
Sequence of constructor calls and destructor calls. Honne Gowda A C++ 2 10-31-2003 09:31 AM



Advertisments