|
How to set the visibility of a particular row of a gridview is false in the click event of a button.
|
|
|
|
|
It cant be possible you can only hide the row in rowdatabound event.
|
|
|
|
|
i have to do it in a button click event.How to catch the selected row from a button click event.
|
|
|
|
|
You can't. He just told you that. How does a button select a row ? Is it in the row ? Then perhaps you can check the parent, or store an id in the button's tag and just remove it from the data source.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Ya, if the button is in a row then you can hide it from row command event, else it is not possible.
|
|
|
|
|
Hello,
I have a global question.
Is there a way to add event to existing control.
For example, the panel control do not have Click Event. Is it poosible to inherits the control and to add Click Event?
Thank you
Shay Noy
|
|
|
|
|
I expect so, but I'd expect it to be a lot of work. You'd need javascript to post the form back, make sure that it posts back with the data you need, you'd need to check the values when then viewstate tree is recreated, etc.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I didn't really understood your reply but what I mean is not only for ASP.net. The same question is for vb.net too. Take any control existing in vb.net, I would like to add to it an event that it doesn't have using EventHandler, delegate, Event, raisevent...
Thank you
Shay Noy
|
|
|
|
|
shaynoy wrote: but what I mean is not only for ASP.net.
Well, if you think the answer is going to be the same for both ASP.NET and winforms, then apart from being in the wrong forum, it's clear you don't really understand what ASP.NET is and does.
shaynoy wrote: Take any control existing in vb.net, I would like to add to it an event that it doesn't have using EventHandler, delegate, Event, raisevent...
Well, I think the fact that you didn't understand me means you won't do this any time soon for ASP.NET, but for winforms, it's not too hard, I would think.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hi, All
How to set Theme to Master page.
I can only set theme at content page.
Thanks a lot
modified on Monday, October 19, 2009 8:44 AM
|
|
|
|
|
I don't know what you're asking ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
xtplatinum wrote: How to Add Theme to Master page, them different with content page
Do you want to apply theme to all of your content pages from master page ? or what?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi sir.
Sorry about my word. I'm little in english.
I mean How to set theme to master page.
At content page I can set theme by --> Theme="Theme_Normal" StylesheetTheme="Theme_Normal"
But At master page can't.
Thank in advance.
|
|
|
|
|
Hi,
Theme-->Title?
If you want to set the page title, try this: Master.Page.Title = "Your page title".
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 21:56pm.
|
|
|
|
|
Hi all,
Im getting the error while converting xml to a dataset.Please help me.
Cannot add a column named 'PerUser': a nested table with the same name already belongs to this DataTable.
|
|
|
|
|
I suspect the error means what it says. What have you done to try to correct it ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Im converting xml file to dataset using the following code.
TextWriter twHistory = new StreamWriter(location + ".xml");
twHistory.WriteLine(XMLdoc);
twHistory.Close();
DataSet dsHistoryXml = new DataSet();
dsHistoryXml.ReadXml(location + ".xml");
While reading the xml document the above mentioned error returns.
<br />
Cannot add a column named 'PerUser': a nested table with the same name already belongs to this DataTable.
|
|
|
|
|
I used embedded mp. in my web site. When i used an mp4 file as target with http protocol(ex. http://212.10.22.22/xx.mp4), it doesnt play. but when i used it as local file(c:\xx.mp4) it plays. There is no file location mistake. Because i can download from http://212.10.22.22/xx.mp4 (this is a sample location.) Wİndows media player itself cant open it from http address(from url). But Media player classic or vlc player can. And lastly not all files behave like this. I can play some files in embedded media player with both http and local conditions. Code snippet:
OBJECT ID="Player" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
WIDTH="440"
HEIGHT="380"
PARAM NAME="AutoStart" VALUE="True"
PARAM NAME="URL" VALUE="http://212.10.22.22/xxx.mp4" ...
Please help.this is vey serious
|
|
|
|
|
|
|
Dear All,
I would like to do the following.
to create a label, when a specific event is fired
to change its text to 'loading' and add '.' in a half second like
loading
loading.
loading..
loading...
is it possible to make this with javascript.
|
|
|
|
|
Ersan Ercek wrote: to create a label, when a specific event is fired
to change its text to 'loading' and add '.' in a half second like
loading
loading.
loading..
loading...
You can simply do it usign AJAX. Try to use AJAX UpdatePanel and UpdateProgressBar .
Let us know if you need further help.
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
there are two ways to achieve this..
if you are using ajax then you need to put gif like
http://www.cis.uab.edu/forensics/blog/loading.gif[^]
in your update progress control which is related to ajax update panel.
or second thing if you want to handle it manually then you can show and hide it on start and end of each event manually.
Http://www.gen-sys.com
Government Dyal Singh College Lahore.
|
|
|
|
|
Dear All,
Could somebody tell me how to call selectedindexchanged event during page_load event...
All the best
|
|
|
|
|
I assume you want to trigger that event during page_load.
Why don't you put the code in the event handler in some other method (a new one, which you must implement). Then you call the new method both in the event handler and in handler for page_load?
SkyWalker
|
|
|
|