|
Sir,
I have gone through ur suggestion.Now the problem is I want to stop the execution of the lines on pressing the enter key.
Thanks
|
|
|
|
|
Hi,
In the Command event handler, you can check for the CommandName using any conditional statment like if in C#.
If the condition is satisfied, then you can execute your block of code , otherwise, you may simply leave the block from execution.
protected void Button1_Command(object sender, CommandEventArgs e)<br />
{<br />
if(e.CommandName=="btn1")<br />
{<br />
block of code<br />
} <br />
}
Here btn1 is the CommandName of the Button1.
If this soln is not clarifying your problem, you may expain your problem more clearly ( WHY you need to perform this?).
(I think, you are a student or Fresher to DotNet. Kindly refer a book for this kind of theoretical question you have posted today.)
Regards,
Jay
|
|
|
|
|
Sir,
I actually want to restrict the user pressing the enter key.I mean if there is a focus on the button now if the user does not click the button but press the button by keys Then the code should not execute.
Please help.
|
|
|
|
|
|
Sir,
Please explain that what's the difference between c#.net and vb.net.
This is actually this is an interview question
Thanks
|
|
|
|
|
|
I have a question about right mouse click popup menu in IE.
I try write a program that add a new item into popup menu's items(I want program popup menu).but i don't know any thing about this .
please help me .
computer
|
|
|
|
|
Hi there,
Do you mean Context Menu ? Have a look at the msdn article
Context Menu[^]
Regards,
Jay
|
|
|
|
|
no. context Menu work on a button . but I want work on a hyperlink .
computer
|
|
|
|
|
Hi All
I am devloping a testing tool in which i need to store the html file with its other folder too means i have a url using that url i have to open html page and then store that html with its other folders also which contains javascript files and other stuff so please tell me how to do this
|
|
|
|
|
What have you tried so far?
|
|
|
|
|
Nice one now my approach is like whenever we open a web page its files are store in Temporary Internet files folder in our machine so i am trying to get those file from their. What you think ?
|
|
|
|
|
|
i have a button in my form in asp.net(c#). i want when i push this button a color box open and i can select a color and that's color's hex number fall in the textbox.i want a color box such as properties of background color
|
|
|
|
|
|
Hello
I m Working on a Project here i have to put one functionality that is Autosave in every 10 sec using Ajax Control..Just like in Gmail where we Compose our Text and After Sometime It will Automatically Save into Drafts.This Process Going on in Every Few Intervals..
I have tried so much To do But nothing Work
Pls Anyone help me to Sort out this Problem..
Thanks & Regards
Aavesh
|
|
|
|
|
Hi,
I want to fetch the user account's disabled date and time from Active Directory Service through SQL Server Query. Please provide me the solution if you would have came across working with ADS.
Mohan
|
|
|
|
|
plz help me out..
I want to select a row by putting the cursor anywhere in that row, row should be selected. I dont want to use check boxes. And also swapping of rows in datagrid.
Thanks in advance.
Libran
|
|
|
|
|
private void myGrid_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
e.Item.SetRenderMethodDelegate(new RenderMethod(Script));
}
private void Script(HtmlTextWriter Writer ,Control ctl)
{
int count = ctl.Controls.Count;
for(int i=0; i
|
|
|
|
|
Thank you verymuch for your response.Where I have to add this code ? Please tell me. I ma new and learning.
Thanks and Regards,
Libran
|
|
|
|
|
click on ur datagrid propertis and the go to it's event in ItemCreated press enter and then write this code
|
|
|
|
|
Thanks for your reply.
But I am not able to get it.I am not able select a row in the grid.
Thanks and Regards,
Libran
|
|
|
|
|
did u do that code behide that i send for u?
if did plz tell me
|
|
|
|
|
did u do that code behide that i send for u?
if did plz tell me plz
|
|
|
|
|
I have included that code in code behind page.But I didn
t get it. Please help me.
|
|
|
|