|
Hi
I am using formview control in my web apllication . i am using sqldatasource for binding data . its giving edit , new , delete . but i dont want only delete . how to remove only delete from that formview cotrol .
|
|
|
|
|
As I recall, binding a formview to an sqlDataSource causes auto-generation of the FormView html code. All you need to do is find the delete button(s) and remove them, or set their Visible propery to false.
|
|
|
|
|
Can we capture the events like click of ASP.NET2.0 controls like link button at client side.
For example, there is a link button which performs some operations say download,when the checkbox of the GridView are checked.
But what if when the checkboxes are not checked and the link button is clicked, it will uselessly sends request to server and opens download box with no records.
Is there any way to capture this event at client side so that if the checkboxes are not checked alert soem message like "plz select record", and if call link button event only when atleast one checkbox is checked
Thanks in advance,
|
|
|
|
|
Validators will do this for you. And, you can capture anything you like, just put the client side event handlers in the controls that are generated and write processing javascript. Some control have an onclientsideclick event in ASP.NET, you can return false and they won't click through.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
yes, link button has onclient click event......
some you plz explain me in more detail, i mean how can i handle the checkbox selection
from gridview?
means only the download link button work when atleast one checkbox in gridview is checked...
oterhwise say "select record"
|
|
|
|
|
You need the client ids of all your checkboxes, then you can write javascript to iterate over them and see if any is checked. So, you need to write the client ids as javascript variables in your code behind.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hello to all.
i m using asp.net2.0.I want to read word file and move its content to textbox..
thanx
yogesh
|
|
|
|
|
yogeshpan wrote: i m using asp.net2.0.I want to read word file and move its content to textbox..
And what is the problem?
Apurva Kaushal
|
|
|
|
|
just as streamreader used to read txt file i want to read a document in .doc format
yogesh
|
|
|
|
|
Check this[^] out.
Apurva Kaushal
|
|
|
|
|
Try here[^]
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
hehehehehehe
It seems that your new article will be the most frequently used reply
M. Gouda
foreach(Minute m in MyLife)
{
myExperience++;
}
|
|
|
|
|
I'm afraid so
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
you should use js to read .doc file and then show in textbox...
|
|
|
|
|
Hi all! as we know if we creates an UserControl thenwe can get HttpRequest object using this.Request property. now which interface should i implement for creating a custom control in order to getting HttpRequest object in custom control?
|
|
|
|
|
I need to subclass an extender control and put it inside a UserControl.
But the target control will be on the webpage.
However when I assign the TargetControlID="TextBox1" I get the following error:
Server Error in '/SampleWebSite' Application.<br />
-------------------------------------------<br />
The TargetControlID of 'MyExtender' is not valid. A control with ID 'TextBox1' could not be found.<br /> Here, "MyExtender" is the UserControl which has the extender control inside it. The "TextBox1" is on the webpage where this UserControl is used.
Obviously it is looking for the TextBox1 inside the UserControl itself. How can I make it search on the entire webpage instead?
What is the way to properly assign the TargetControlID in such a case?
Thanks,
modified on Thursday, March 13, 2008 7:11 AM
|
|
|
|
|
hiii
how to find the provider in the connection string that is used while connectiong to oracle databse in asp.net application
thank you
|
|
|
|
|
Why do you want to know the provider, shouldn't you have set it? or am I mis undertstanding
|
|
|
|
|
If you searching for provider name that is to be given in Connection string its System.Data.OracleClient
|
|
|
|
|
iam using a custom validator to a textbox checking for first character should not be numberic .when iam clicking button for the first time after entering numerics in the text box the error message is not firing .its is firing for the second time not to allow numerics for the first time .how can i solve this problem.
|
|
|
|
|
provide your code to enable us provide help
M. Gouda
foreach(Minute m in MyLife)
{
myExperience++;
}
|
|
|
|
|
if ur exprence is increasing hen why r u decreaseing exprence of another...
myExperience++;
...........
i have new artcile ... .. for increase of your loop.....
......Keep it up......
This reply FOr Mohammed Gouda
|
|
|
|
|
raushan_9 wrote: why r u decreaseing exprence of another
When and how I did so?
raushan_9 wrote: i have new artcile ... .. for increase of your loop.....
......Keep it up......
Where is it?
raushan_9 wrote: This reply FOr Mohammed Gouda
Ofcourse it is for Mohamed Gouda, cause you clicked reply button below my message
M. Gouda
foreach(Minute m in MyLife)
{
myExperience++;
}
|
|
|
|
|
It was a crap article. It got deleted in 5 minutes.
I'm going to become rich when I create a device that allows me to punch people in the face over the internet.
"If an Indian asked a programming question in the forest, would it still be urgent?" - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
I have a weird problem I've been trying to solve for a couple of hours now. I have a user control that works fine, the only problem is that if I add that control to my page in visual studio the control will not be declared in the designer.cs file. I don't get any error messages or anything. If I add code manually to declare the control it will work, but that is not how you want to work.
Any suggestions?
I have looked over the markup in the control as well as the page and I can't find anything that seems wrong.
Regards,
--Tomas
|
|
|
|