I want to zoom to map using .net gridview rowclick is it possible to use asp.net in arcgis javascript api
thanks and regards,
bharath
Bharath... Questions this specific need to be directly appropriately to a Place or Space within GeoNet.
I have moved it to
https://community.esri.com/community/developers/web-developers/arcgis-api-for-javascript
GeoNet Help is for help about GeoNet and not about help with particular software types, implementations or issues.
Also, Hi, is a nice title but unlikely to solicit answers which you would find useful.
It's possible, but you're going to need to provide a little bit more information for a specific answer. Your framework/architecture play a role (potentially) in how this performs. Also, whatever else happens on your rowclick event make a difference on what you can/should do. There are large handful of methods to accomplish what you want. A few things to remember though:
1. Consider partial vs. full post back on your .NET control and how that will affect your JavaScript. In other words, look into what happens to your JavaScript on a full post back (when the page essentially refreshes for lack of better words).
2. Re: #1, Hint: You want a partial post back. You're also going to want to look at how to register client scripts in your .NET code. Registering client scripts is a way to make sure your JavaScript functionality occurs after an event fired by a .NET server control.
3. Consider not using a .NET server control and look into other avenues to display your data. Look at maybe parsing your .NET data into JSON and using a client friendly control to display your data and use an input button element for your zoomTo.