|
You need to check out Event Bubbling:
http://www.odetocode.com/Articles/94.aspx
|
|
|
|
|
|
Hi,edboe
I read your tips,but I can't understand it well.
Can you give me more tips why FixedDataGrid is not work?
thanks
|
|
|
|
|
Hi,edboe
I read your tips,but I can't understand it well.
Can you give me more tips why FixedDataGrid's DeleteCommand,EditCommand,InsertCommand,UpdateCommand and CancelCommand is not work?
thanks
|
|
|
|
|
Hi,
DropDownLists are fine when it comes to databinding or ListItems. BUT what about Both together?
For instance, DropDownList populated with all Emplyees. You will be able to select a Particular employee. And also, I would like to select an option which is "All" which is not in the Database. I have tried a few things, but cant work it out at the moment.
Thanks for any help.
|
|
|
|
|
Just add this after the databinding code:
ddlList.Items.Insert(0, new ListItem("text", "value"));
|
|
|
|
|
You star!
Thank you very much =D. Didn't know that I could add the items from the back end code. I was trying to add it from the Front end.
Much Appreciated.
|
|
|
|
|
No problem. Just don't try and be too clever and do something like this:
ListItem blank = new ListItem("none", "");
ddl1.items.insert(0, blank);
ddl2.items.insert(0, blank);
'cause it doesn't work too well...
|
|
|
|
|
lol,
no no.. but I can do this no? :
ListItem A = new ListItem("All", "");
ListItem B = new ListItem("All", "");
ddl1.items.insert(0, A);
ddl2.items.insert(0, B);
Seeing as I have declared the ListItems separately, it should work well, yes?
|
|
|
|
|
Yep. That's not a problem.
|
|
|
|
|
Hi
I develop one flash intro for my website(ASP.NET using C#).I want to load Home.aspx page after finishing the flash intro automatically no need to skip intro options.
Plz Post me.
Thanks in Advance
|
|
|
|
|
getURL("yoururlhere.com")
|
|
|
|
|
It looks like flash request, Whatever in flash the answer is
<br />
on (load) <br />
{ <br />
getURL("page.html", "target");<br />
}<br />
keep Learning and you never will be out of date...
|
|
|
|
|
With all do respect, wouldn't that load the page before it completes?
I would think adding this to a blank keyframe at the end of your movie would work:
getURL(http://www.whatever.com, "_self");
|
|
|
|
|
To drag and drop the items from listbox1 to listbox2 with the mouse clicks.
when the item from the first listbox1 is draged and droped it into the listbox2, the corresponding items should disappear in the first listbox and it should be appeared in the second listbox.
gane
|
|
|
|
|
Hi Guys,
I have an issue that there must be a simple answer too that I am not seeing. I am developing an Intranet application, where the client wants a Yes/No Megbox, for some input, We are able to use VBscript for this, (All Browser are IE and this is a one Local Application.)
In the previous application in 1.1 there was the same msgbox, that simply wrote the answer to a hidden field on the form using
Document.Form1.OPType.value= "0"
We want to replicate this in ASP.net 2.0
and I realise that they have chnaged the DOM because of Master Pages, so I have attempted to write to the new model like this
document.aspnetForm.OPType.value = "0"
but I am getting an Script error?
Does anybody know how to write hidden field using Vbscript in ASP.net 2.0.
P.S
I am well aware of Vbscript and it's limitations in browsers and Internet Blah Blah Blah , so please avoid answering the question with that advice, as I have a specific reason for doing it this way which I do not want to go into.
"a fool will not learn from a wise man, but a wise man will learn from a fool"
"It is hard to fail, but it is worse never to have tried to succeed." - Theodore Roosevelt
"Success is going from failure to failure without losing your enthusiasm." - Winston Churchill
My Website || My Blog
|
|
|
|
|
cykophysh39 wrote: I realise that they have chnaged the DOM because of Master Pages
No, the DOM has not changed. If you put a control in a container (like a Content control), it's id changes. You can use the ClientID property of the control to find out the id that you can use in client script to access it.
---
b { font-weight: normal; }
|
|
|
|
|
I figured it out.
Thanks, I compounded the problem because my hidden control was placed in a user control inside of a container control, I have now got it .
Thanks for the feedback
"a fool will not learn from a wise man, but a wise man will learn from a fool"
"It is hard to fail, but it is worse never to have tried to succeed." - Theodore Roosevelt
"Success is going from failure to failure without losing your enthusiasm." - Winston Churchill
My Website || My Blog
|
|
|
|
|
i want to fire a perticular event after 30 second.
and the image shown in image box also repalced by other image after 10 second.
help me.
dcjoshi2
|
|
|
|
|
Use the java script function ‘window.setInterval’
Thomas
|
|
|
|
|
Hi all,
I am creating an dynamic page , in that page there will be 3 (for example) div layers, each layer has it's contents such as calender, link, news likw this. The admin of this site can change the menu(Div layer) order, assume that Calender is place 1 and Link in place 2 and News in place 3, if the admin drag the div layer 3(News) over the div layer 1(calender) and drop there means, the oreder should changed as News is place 1 and Calender in place 2 and Links in place. I found solution for drag and drop, but i cant able to get an idea for the dragover or replacing the position. Plz can any one suggest me to how to do this using javascript??
Example:
Positon 1:
Calender
Positon 2:
Link
Positon 3:
News
After drag and drop of News on the Calender position the apperance should become like this:
Example:
Positon 1:
News
Positon 2:
Calender
Positon 3:
Link
Thanks in advance
Bye
Know is Drop, Unknown is Ocean
|
|
|
|
|
u can use webpart controls it helps in personalization of pages
|
|
|
|
|
Hi,
Thanks a lot for your replay, I can't able get you clearly, Web part control means??? can you explain me in details with an example plz..
once again thanks a lot
Bye
Know is Drop, Unknown is Ocean
|
|
|
|
|
i want to trap keypress event in textbox control in asp.net with c#. i.e. if user press wrong key that key didn't work. only those keys work hows works is defined.
deepak
dcjoshi2
|
|
|
|
|
You can't do that using ASP.NET. The keypress occurs on the client computer, so you have to use client script, i.e. Javascript.
---
b { font-weight: normal; }
|
|
|
|