Link to home
Create AccountLog in
Avatar of marugangareddy
marugangareddy

asked on

How to assign text for jquery Dialog box in run time

hi

i am Populating  Jquery Dialog box from C# Codebehind  using Page.ClientScripts

Here i wrote a function to assign title but I couldn't understand how to assign text to it
Avatar of IgorNed
IgorNed

Add title property to your dialog initialization:
.dialog({title: 'Dialog Title'});

Open in new window

Avatar of Gurvinder Pal Singh
or simply just

$(".ui-dialog-title").html("New dialog title");

Avatar of marugangareddy

ASKER

Here I want to show the user the update is failure I wanted to show the message why it is failed so i need title and text I trid to give text at the div but it dispalying always in the webpage

Thanks in advance
ASKER CERTIFIED SOLUTION
Avatar of IgorNed
IgorNed

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer