Showing posts with label working. Show all posts
Showing posts with label working. Show all posts

Thursday, March 29, 2012

Pop up with AJAX enable page

help pls. I just add the Ajax tools on my page and now my pop up code is not working.
Page.ClientScript.RegisterStartupScript(Me.GetType, "myscript", "<script Language='JavaScript'>alert('" + x + "');</script>")
tnxPage.Clientscript.RegisterStartupScript(me,"scriptAlert","alert('test');",True);

Look at the last parameter.
Page.Clientscript.RegisterStartupScript(me,"scriptAlert","alert('test');",True)

error on "me" - cannot be converted to 'system.type'

any other solution pls... tnx
Sorry, my bad.

Page.ClientScript.RegisterStartupScript(Me.GetType, "scriptAlert", "alert('test');", True)
Sorry, my bad.

Page.ClientScript.RegisterStartupScript(Me.GetType, "scriptAlert", "alert('test');", True)

:D it's me again. ive tried your code but still no pop up message :(. this code works if you dont have Ajax updatepanel but in my case i used AJAX Updatepanel. any help pls.

tnx
Does this help?

http://www.asp.net/AJAX/Documentation/Live/tutorials/CustomizingErrorHandlingforUpdatePanel.aspx
Does this help?

http://www.asp.net/AJAX/Documentation/Live/tutorials/CustomizingErrorHandlingforUpdatePanel.aspx

yes it helpz. tnx to all

pop ups not working

Hi

i am working on a project which involves pop up windows to enter information which worked fine at uni

i brought the exact same project home and the popups dont 'popup, nothing happens

i've allowed popups in internet explorer, but they still dont work

is there something else i've overlooked??

cheers!!

hehe

sorry for wasting space

just remembered i took a line of code out just before i left uni yesterday that stopped popups working

blah!!

Saturday, March 24, 2012

Populate Dropdown with File Names

I'm working with an ASP.Net web page that's using C#. I'm trying to
populate a Dropdown with the File Names that reside in an image folder
that's in the same project. So far all I've been able to find is the
below code...and even then that's not quite what I'm after.

DirectoryInfo di = new DirectoryInfo(@dotnet.itags.org."~/Images/Entry/");
FileInfo[] fis = di.GetFiles();
DropDownList5.DataSource = fis;
DropDownList5.DataTextField = "Name";
DropDownList5.DataValueField = "Name";
DropDownList5.DataBind();

Any help in trying to get this resolved quickly would be appreciated.

ThanksOne thing I neglected to say...the Dropdown will also reside in the
EditItemTemplate of a Formview. Is there a way to bind that control if
it's there?

Thanks Again

Dave wrote:

Quote:

Originally Posted by

I'm working with an ASP.Net web page that's using C#. I'm trying to
populate a Dropdown with the File Names that reside in an image folder
that's in the same project. So far all I've been able to find is the
below code...and even then that's not quite what I'm after.
>
DirectoryInfo di = new DirectoryInfo(@."~/Images/Entry/");
FileInfo[] fis = di.GetFiles();
DropDownList5.DataSource = fis;
DropDownList5.DataTextField = "Name";
DropDownList5.DataValueField = "Name";
DropDownList5.DataBind();
>
Any help in trying to get this resolved quickly would be appreciated.
>
Thanks