Click here to Skip to main content
15,916,463 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: The compiler failed with error code -2147024888 Pin
Richard Deeming27-Jun-16 3:51
mveRichard Deeming27-Jun-16 3:51 
GeneralRe: The compiler failed with error code -2147024888 Pin
Stevens27-Jun-16 8:59
Stevens27-Jun-16 8:59 
GeneralRe: The compiler failed with error code -2147024888 Pin
Richard Deeming27-Jun-16 9:04
mveRichard Deeming27-Jun-16 9:04 
GeneralRe: The compiler failed with error code -2147024888 Pin
Stevens27-Jun-16 10:06
Stevens27-Jun-16 10:06 
QuestionHow to display .mp4 video on Intranet Pin
David Mujica23-Jun-16 4:12
David Mujica23-Jun-16 4:12 
AnswerRe: How to display .mp4 video on Intranet Pin
2374127-Jun-16 7:33
2374127-Jun-16 7:33 
QuestionAsp .net application performance issues using JavaScript to open the application’s asp pages. Pin
Stephen Holdorf21-Jun-16 8:50
Stephen Holdorf21-Jun-16 8:50 
AnswerRe: Asp .net application performance issues using JavaScript to open the application’s asp pages. Pin
Richard Deeming21-Jun-16 9:01
mveRichard Deeming21-Jun-16 9:01 
Most popup blockers are going to block your onload script. And why are you restricting the user to such a tiny window?

It would be much better to use:
location.assign('WebForm1.aspx');

That way, the page opens in the current window / tab, and doesn't get blocked.

Alternatively, remove the landing page, and set WebForm1.aspx as your default document.

Since you're using the RowDataBound events, you can retrieve the ID directly from the row's DataItem, rather than using the DataKeys collection:
C#
protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
    e.Row.Attributes.Add("ondblclick", DataBinder.Eval(e.Row.DataItem, "ID", "location.assign('WebForm2.aspx?id={0}');"));
}

Alternatively, you could store the ID in a data- attribute on the row, and use JavaScript to wire up an event handler on the parent grid:
C#
protected void GridView_RowDataBound(object sender, GridViewRowEventArgs e)
{
    e.Row.Attributes.Add("data-id", DataBinder.Eval(e.Row.DataItem, "ID", "{0}"));
}

JavaScript
// Using jQuery:
$("#GridId").on("dblclick", "tr[data-id]", function(){
    var id = $(this).data("id");
    location.assign("WebForm2.aspx?id=" + id);
});


The performance issues are most likely related to loading the data from your database. However, you would need to profile your code to determine precisely where the bottleneck is.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Asp .net application performance issues using JavaScript to open the application’s asp pages. Pin
Stephen Holdorf21-Jun-16 9:18
Stephen Holdorf21-Jun-16 9:18 
GeneralRe: Asp .net application performance issues using JavaScript to open the application’s asp pages. Pin
Richard Deeming21-Jun-16 9:36
mveRichard Deeming21-Jun-16 9:36 
QuestionProblem adding source to sitemap. Pin
larsp77721-Jun-16 3:11
larsp77721-Jun-16 3:11 
QuestionHow to Change Password in ASP.NET connect to Ldap authentication Pin
Yosua Michael20-Jun-16 14:09
Yosua Michael20-Jun-16 14:09 
AnswerRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Richard Deeming21-Jun-16 2:04
mveRichard Deeming21-Jun-16 2:04 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Yosua Michael21-Jun-16 14:33
Yosua Michael21-Jun-16 14:33 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Richard Deeming22-Jun-16 3:20
mveRichard Deeming22-Jun-16 3:20 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Yosua Michael22-Jun-16 21:34
Yosua Michael22-Jun-16 21:34 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Richard Deeming23-Jun-16 1:56
mveRichard Deeming23-Jun-16 1:56 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Yosua Michael23-Jun-16 16:23
Yosua Michael23-Jun-16 16:23 
GeneralRe: How to Change Password in ASP.NET connect to Ldap authentication Pin
Richard Deeming27-Jun-16 3:05
mveRichard Deeming27-Jun-16 3:05 
QuestionHow to implement MULTIPLE.OPERATIONS functionality in .net Pin
Raghavendra.Kodimala18-Jun-16 22:03
professionalRaghavendra.Kodimala18-Jun-16 22:03 
QuestionRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
ZurdoDev20-Jun-16 2:18
professionalZurdoDev20-Jun-16 2:18 
AnswerRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
Raghavendra.Kodimala20-Jun-16 3:43
professionalRaghavendra.Kodimala20-Jun-16 3:43 
GeneralRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
ZurdoDev20-Jun-16 3:48
professionalZurdoDev20-Jun-16 3:48 
AnswerRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
Richard MacCutchan20-Jun-16 4:03
mveRichard MacCutchan20-Jun-16 4:03 
GeneralRe: How to implement MULTIPLE.OPERATIONS functionality in .net Pin
Raghavendra.Kodimala20-Jun-16 23:59
professionalRaghavendra.Kodimala20-Jun-16 23:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.