|
Set the Selection Mode property to ' Multiple ' and then u can select multiple item by pressing Ctrl Key
VanithaVasu
|
|
|
|
|
HI
1)Set selectionmode="multiple" of list box to enable multiple selection. 2) You can select multiple names using ctr+mouseclick.
3)To retrive all selected names from listbox you can use: Request.Form("listbox_Name").ToString() function, which will return all selected items in a listbox into a string.
Arun Singh
Noida.
|
|
|
|
|
hi
On a click of radio button i am displaying a Table .
code which i have written in java Script is
stationtable.style.display=""; ( it is written in a external .js file )
this thing is not working with firefox ...( No errors are coming )
Please tell me how to solve this
Thank You
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
ALT + F4 wrote: stationtable.style.display="";
try stationtable.style.display="none";
|
|
|
|
|
stationtable.style.display="none" is to hide the table
and stationtable.style.display="" is used to show the table ...rite
its working with I.E but not with Firefox
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
ALT + F4 wrote: and stationtable.style.display="" is used to show the table ...rite
Well, then try stationtable.style.display="block" or stationtable.style.display="table" . Second one works only with firefox, I guess.
|
|
|
|
|
i am afraid ..its not working ... one more thing ...for hide/show of table i have written javascript inline ( for few things ) its working fine ..
but with external JS its not working ..
Is it gud to write Jscript in aspx file
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
ALT + F4 wrote: for hide/show of table i have written javascript inline ( for few things ) its working fine ..
but with external JS its not working ..
Strange . Code written on an external JS file is working perfectly at my end.
ALT + F4 wrote: Is it gud to write Jscript in aspx file
There won't be any problem to write JS on aspx page. writing JS on an external file is a matter of code separation. If you take the viewsource of this forums page, you will find many JS methods written in the aspx page. If you need to re-use the JS function in multiple pages, then better approach would be external file.
Take the viewsource of this forums page and find out how they are showing/hiding the tables. It's a good cross-browser script. You can take that.
|
|
|
|
|
Problem Solved ....i was taking the table name directly like tab.style.display which is not acceptable ...document.getElementById works fine
Dont Get Paid for the Hours you worked, Get Paid for the Work You Have Done in an Hour.
|
|
|
|
|
Hello friend!
I've faced a problem.
I want to bind a grid view through java script.
Actually, I've web service that returns a data set.
I've called the web service from java script. But I cann't bind the returned dataset to grid view.
Is there any way to bind dataset with grid view through java script?
Pls help me.
Thanks!
|
|
|
|
|
samrat.net wrote: I want to bind a grid view through java script.
Gridview control exists on the server and will be rendered as normal HTML table. So you can't bind a gridview using JS. You can iterate through the data you are getting from webservice and add rows to the table using java script.
|
|
|
|
|
I'm not much sure but Have you tried Ajax for your problem?
Amit Agarwal
|
|
|
|
|
BIND : - it means the control is getting parsed/filled by server.
with javascript, u are able to change the innerHTML of any control only. that means, you need to call any page asynchronously on which gridview is being BIND and get the HTML of that page ), put that HTML into some control, may be DIV, on your current page.
This technique is used where no particular AJAX platform is used (OPEN).
refer http://www.w3schools.com/Ajax/ajax_browsers.asp[^] for more knowledge on this.
Ashish Sehajpal
|
|
|
|
|
Hello freinds...
I am Developing a project For Property Site.
and i want to give Live help in this project. Live chat just like http://www.magicbricks.com/property/faces/jsp/indexc.jsp[^] live help given in top of right.
So Please suggest me. How to Create live Chat Function in this project.
|
|
|
|
|
|
Check out http://www.hotscripts.com/[^] for the various chat components that may be available for you in your preferred technology.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
yahoo IM is favorite choice.
have you tried http://www.codeproject.com/KB/HTML/Yahoo.aspx[^]
try to get user credentials by hidden fields. provide one user id (yahoo id) for questioning (ready made for customers to ask question...they won't be aware they are using yahoo IM !) .... just a trick
Ashish Sehajpal
|
|
|
|
|
I don't know if this is a problem in my code or a manifestation of the vs2005 ide but if I run multiple copies of an ajax tabpanel enabled aspx page on my machine I run into "Sys.ArgumentOutOfRangeException: specified argument was out of the range of valid values. Parameter name: value" which occurs on line 69 of the scriptresource.axd (ajax code I think).
It dies here:
set_activeTabIndex : function(value) {
if (!this.get_isInitialized()) {
this._cachedActiveTabIndex = value;
} else {
if (value < -1 || value >= this.get_tabs().length) {
throw Error.argumentOutOfRange("value");
}
If I run only one copy of the page its fine. Seems to be unable to keep track of two copies simultaneously. I also have seen errors complaining about duplicate tabpanelid's in the same situation.
Any idea if this is related to the "casini" webserver ide or if it will go away if I run it under IIS? Currently I'm only running it in the ide. Thx.
|
|
|
|
|
Can we use the SUBSTRING in Index Search select Query... ie Something like the below..
cmdSearch.CommandText = "select Vpath, path, FileName, size, write, attrib, SUBSTRING(Characterization,90,DATALENGTH(Characterization)-1) as Characterization, DocTitle, rank from scope('shallow traversal of " + "\"" + "/Software" + "\"" + "," + "\"" + "/Industries" + "\"" + "," + "\"" + "/" + "\"" + "') where FREETEXT(contents,'" + searchText + "') and FileName NOT LIKE 'inc_%' and FileName NOT LIKE '%.js' and FileName NOT LIKE 'searchresult.aspx' and FileName NOT LIKE '%.css' order by rank desc ";
Im getting Error:
Incorrect syntax near '('. Expected ',', '.', FROM. SQLSTATE=42000
|
|
|
|
|
Have you tried removing the substring part and seeing what happens??
Anyways... whats this stuff for??
from scope('shallow traversal of " + "\"" + "/Software" + "\"" + "," + "\"" + "/Industries" + "\"" + "," + "\"" + "/" + "\"" + "')
Alexei Rodriguez
|
|
|
|
|
|
Ya If im removing the SUBSTRING the Query works fine.
The SCOPE() function is used to search the SEARCH STRING with my ROOT folder,Industries and Software folders only. No SubFolders are included while Searching.
|
|
|
|
|
Hi
I think there is no error in the SubString function, there is an error after scope function.
For searching multiple folders, syntax is given below:
<br />
SELECT "DAV:displayname"<br />
FROM <br />
SCOPE('shallow traversal of "http://myserver/public"',<br />
'shallow traversal of "http://myserver/public/userinfo"',<br />
'shallow traversal of "http://myserver/public/userinfo/phonenumber"')
Please check this site for more information:
http://msdn2.microsoft.com/en-us/library/aa579385(EXCHG.80).aspx[^]
When i debug your code, i got the following statement:
select Vpath, path, FileName, size, write, attrib, SUBSTRING(Characterization,90,DATALENGTH(Characterization)-1) as Characterization, DocTitle, rank from scope('shallow traversal of \"/Software\",\"/Industries\",\"/\"') where FREETEXT(contents,'abc') and FileName NOT LIKE 'inc_%' and FileName NOT LIKE '%.js' and FileName NOT LIKE 'searchresult.aspx' and FileName NOT LIKE '%.css' order by rank desc
which is different from the given syntax.
Hope this helps.
Harini
|
|
|
|
|
Hi Harini,
That SCOPE() function is working fine. Based on ur reply on yesterday only i solved that problem.
|
|
|
|
|
hi,
I have a menu in Default.aspx, based on the menu clicked corresponding user control is loaded dynamically using LoadControl(). This User control loaded has a formview control in which a dropdown and a textbox are present. When i set the autopost back property of the dropdown to true and select an item in it. The User control which is loaded is disappearing.
I have found that the page_load event of the Defualt.aspx is called.
I have used Ajax too..but it didn't help me. Can anyone help me ?
thanks,
deep.
modified on Friday, April 25, 2008 12:33 AM
|
|
|
|