.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

in Grid_RowEditing Event find index....

Posted By:      Posted Date: October 10, 2010    Points: 0   Category :ASP.Net


I have newly use Asp.net Grid in Past i was use Telerik:RadGrid

in asp:Grid i have create a <asp:tempelateColumn> in which under <ItemTempelate> i create the link button CommandName="Edit" on click i goes t GridListing_RowEditing event

i want to find out the index in that Event

protected void GridListing_RowEditing(object sender, GridViewEditEventArgs e)




And another thing is that why

e.CommandArgumet is not Come in that Event


Plz help me to solve my problem....

thanks to all

View Complete Post

More Related Resource Links

Trap Selected Index change event of listbox using Javascript.

Hi All, This is reagarding listbox selection. I have a list box with multi select option. I want to trap the selected index change event of Listbox through javascript. Item of list box can be selected using Click of mouse and also the keyboard up down key with shift. I tried onclick event to bind the javascript function. It works fine if I select by mouse, but it doesen't work for up/down key of keyboard. Thanks, Naveen

Help to find event for RibbonTab [WPF4]

I'm using WPF Ribbon RTW for my app. The problem is that I can't find event which reacts to changing tabs. Does this event exists?There is no knowledge that is not power.

find the label control of gridview in save button event in C#

hi, every one..i want save the gridview in buttonsave event..here i wrote the code like thisfor (int i=0;i<gridview1.row.count;i++){label lbl=(label)gridview1.rows[i].findcontrol("lbl");Textbox txtname=(Textbox)gridview1.rows[i].findcontrol("txtname");}here i got the textbox value but am not getting label value how to get that label value..thanks in advance

How to Capture a DropDownList Selected Index Change Event

I have a gridview that receives data based on selection from a primary dropdownlist object. Works. Within the gridview, there is a dropdownlist whose selected index is based on the query from the primary dropdownlist. Works. Problem. How do I force the used to  change whatever value that the dropdownlist contains after they make their initial selection from the primary dropdownlist; except the default value of "Please make a selection". Gridview, contains a checkbox which drives whether a selected row is inserted into the data base. The databind in done using an ObjectDataSource on the presentation page, not in the code behind.   Thank you.   Ayomide 

Backup failed for Object Shared Search Index failed in event OnBackup.

Hi, Farm level backup completed with 2 errors on SharePoint server 2007 through STSADM command line. Error details: Error: Backup failed for Object Shared Search Index failed in event OnBackup. For more information, see the error log located in the backup directory. Error: Object Shared Search Index failed in event OnPrepareBackup. For more information, see the error log located in the backup directory.     WebException: The current operation timed-out after 3600 seconds. Debug:    at Microsoft.Office.Server.Search.Administration.SearchSharedApplication.Microsoft.SharePoint.Administration.Backup.IBackupRestore.OnPrepareBackup(Object sender, SPBackupInformation args)    at Microsoft.SharePoint.Administration.Backup.SPBackup.RunPrepareBackup(SPBackupRestoreObject node) Error: Object Shared Search Index failed in event OnBackup. For more information, see the error log located in the backup directory.     Object Shared Search Index failed in event OnPrepareBackup. For more information, see the error log located in the backup directory.     WebException: The current operation timed-out after 3600 seconds     WebException: The current operation timed-out after 3600 seconds [26/08/2010 14:23:44]: Debug:    at Microsoft.Office.Server.Search.Administration.SearchSharedApplication.Microsof

Event ID 7000 - The system cannot find the path specified.


This is a very old prolem that i am getting to. First off I went through anywhere from 4 to 6 or more sessions with a Microsoft TECH and it even escalated a couple of levels of TECH support to boot. I can't remember the details specifically. I do know that I've started with gound up (installed/uninstalled NET Framework versions) installs to where I have all the versions installed. The Service doesn't start either automatically nor manual. I tried the patience of the Support people to fix this last error at that time.

I am starting anew to get the NET Framework Service to work properly . I hope I am in the right support forum.


remote server problem ; index file cant find my layouts


hi !

i finally managed to finish my first dynamic application with Webmatrix and razor , everything works well locally.

But there are issues online.

i got an index file and a layout file.



in the index file , i've got the following code :

LayoutPage = Href("~/layouts/_layout.cshtml");

when i call the index page with


everything works

but when i try

http://mysite.com/test (without the / at the end )

the server throws this :

Server Error in '/test' Application.

The specified layout page 'test/layouts/_layout.cshtml' could not be found. The following paths have been used: ~/test/layouts/_layout.cshtml;~/Shared/test/layouts/_layout.cshtml;

it seems it cant find the layout file.

any suggestions ?

Pass index number and find the char in a string?


How do i find the charactors in teh first index and the last index number of a string? 


How to find the control which have raised Onrowcommand event


Hi All,

In the last cell of my gridview I have 2 separate linkbuttons. I want to further process them using Gridview Onrowcommand event but How would I know which particular link has actually raised the event. Any idea? Please help. Thanks. 

Running SSIS job step as Proxy account does not find log provider for windows event log

When I run a ssis job step using a proxy account i get this error message:

Description: The log provider type "DTS.LogProviderEventLog.2" specified for log provider "SSIS log provider for Windows Event Log" is not recognized as a valid log provider type. This error occurs when an attempt is made to create a log provider for unknown log provider type. Verify the spelling in the log provider type name.  End Error  Error: 2010-02-02 14:43:03.88     Code: 0xC0010021     Source:       Description: Element "{028F8760-7E28-4F62-A204-66F33F4064BE}" does not exist in collection "LogProviders". 

If the account is a member of administrators group on the sql server the job step works fine.

Since the logprovider DTS.LogProviderEventLog.2 exists on the system I guess that this has something to do with access rights, probably to some registry key(s), but I cannot find out which part of the registry the proxy user does not have access to.

When running the same package using DTEXEC in a Command Prompt and using RUNAS <proxyuser> the package works fine and writes to the event log.

Kind regards


update 17-Feb-2010: Microsoft has reproduced this situation and I hope to get a workaround or fix soon :-

How to use Regular Expression to find a particular pattern and its index in the string??



I need some help here. I have a document containing some string like the following:


Now what I need is that I need to extract this "BusinessGoal" which as you can see, is 32 characters ahead after "-" (hyphen) and change it's case to uppercase.

The real challange is that, This "BusinessGoal" should only be replaced only and only where there is "Ref-<any 32 characters>" before it and not all. So if I find something like TypeName = "BusinessGoal"  it will be simply ignored.

So how am I going to make that reg Ex. I think it would be a combination of Regex and String Api. 

Kindly help me out.

Thanks and regards



Fahad Ali Shaikh

Error Creating Spatial Index - Could not find spatial tessellation sheme 'GEOMETRY_GRID'

I am trying to create a spatial index on a column of type geography in Server Management Studio. We are running SQL 2008 Workgroup. I setup the index and click ok, but getting the error:

Could not find spatial tessellation sheme 'GEOMETRY_GRID'. Specify a valid tellellation scheme name in your USING clause.

What in the world does that mean? We have created other spatial indexes in different tables successfully.

How to find the id of an event related to a task in infopath ?



Here is my problem :

I have an approval workflow on events and I would like to display some informations of my events in the approval form.

But when I open my approval form in infopath I see no fields about the ID of the related event (I only have the ID of my task), do you know where I can find it ?

Thanks for your answers.

Radio Button Event

Here I have explained the events of radio button with javascript.
Let me explain the scenarion first,
We are having two radio button say radioobtn1 and radiobtn2. If I click on the button 1 then I need to show one DIVor FORM. same as when I click on radiobtn 2. I have given the code for the above scenarion.

how to impose javascript event processing?


If I have some form control like textbox and I want the event handler to be located in the html instead of at the server side, how to do that? Of course I can copy paste javascript code in the aspx file. But is it possible to do that using some object oriented approach (ie programmatically in the code behind)?


Dropdown Event (Template Field)



I have grid view control that includes a dropdown control in a template field.

I wish to execute some code when the value is changed in the dropdown list.  Can't figure out how to capture this event though?

Any suggestions?

find a Control inside a GridView using jQuery


I have databound GridView in my page and I have a hidden DIV in all rows. Each row contains a Button that I want it to make the DIV visible for me! how can I use that with jQuery?!

here is the code page: 

<asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
                                EnableModelValidation="True" GridLines="None" ShowHeader="False" Width="100%">
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend