This prevents a row from being highlighted. Is there a better way to do this?
View Complete Post
I have a gridview with Enable selection and Enable Paging equals to TRUE.
I also set the PageSize of my gridview to 4 so that I only displays 4 rows per page.
The problem is when I click the pager in the bottom of my gridview, my gridview is disappearing and no records appear.
Here is code behind of my gridview:
If e.Row.RowType = DataControlRowType.DataRow Then
e.Row.Attributes("style") = "cursor:pointer"
e.Row.Cells(2).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(3).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(4).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(5).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
e.Row.Cells(6).Attributes.Add("onclick", Page.ClientScript.GetPostBackEventReference(sender, "Select$" & e.Row.RowIndex.ToString))
When is the .NET Garbage Collector unable to reclaim memory? The answer might surprise you. Stay tuned.
MSDN Magazine January 2007
After receiving a late-breaking news bulletin at magazine headquarters early this month stating that the Web is just a fad that will never amount to anything, we have reluctantly decided to retire our venerable Web Q&A column and replace it with one we like to call Dev Q&A.
Edited by Nancy Michell
MSDN Magazine January 2006
Genetic Programming is an evolutionary algorithm that employs reproduction and natural selection to breed better and better executable computer programs. It can create programs that implement subtle, non-intuitive solutions to complex problems. By taking a well-known example from the Genetic Programming community and implementing it with the .NET Framework, this article demonstrates that CodeDOM and Reflection provide all the facilities that are needed to do Genetic Programming effectively.
MSDN Magazine August 2004
MSDN Magazine February 2001
i need to prevent loading big images e.g max 100KB
but i only store url
1. user put url with image (i remember this string in database not image itself)
this cause that i can not check image size before store url in database
because user can store url and after this operation put bigger file at that location)
2. my web page generate some different image based on first image
and i need to load portion of image
to stream and set buffer size to 100KB + 1 Byte
if stream is larger than 100KB that user put bigger file
how can i accomplish that?
FileStream can not use URI as location only disc location
what should i use instead?
I have Two Checkbox in my asp.net textbox..
First what i want is
based on two checkbox user has to be select any one only..
if checkbox1 is selected then Panel1 visible true without postback
if checkbox2 is selected then Panel2 visible true without postback
Hi Experts ,
I searched over the web but no luck so far and thought of getting some help form gurus .
Did any out really implemented a way to handle concurrent logins ?
Please not that i'm no using either forms authentication or Roles/Memberships , I do have custom authentication for my website .
I'm sure it is someway related with global.asax file handling something in application events and session events but unable to figure this one out .
Any pointers will highly be valued and appreciated .
Thanks a tonne in advance .
I've seen this question posted on all corners of the web... "How do I disable "AutoPostBack" on the ASP.NET 2.0 TreeView control?!" Unfortunately, most of the answers either don't work, miss the point (don't work right), or boil down to "You can't do it." I happen to know that this behavior worked perfectly in the IEWebControls TreeView that Microsoft released as an add-on prior to ASP.NET 2.0, however. So I set out to find a solution for the ASP.NET 2.0 TreeView issue.
In a nutshell, the behavior that I and others are looking for is to have a TreeView rendered in a page that allows the user to expand, contract, and select nodes within the TreeView without causing a PostBack to the server. This implies two things: (1) the most recently-selected node should be recorded as the currently-selected node [i.e., at PostBack time, the most-recently selected node is actually represented as the SelectedNode]; and (2) the selected node should exhibit the SelectedNodeStyle as specified in the TreeView declaration.
It appears that the TreeView engineers saw only two possible outcomes from selecting a leaf node in a tree: (1) immediately posting back to the server, or (2) immediately navigating to another web page. They apparently did not consider option (3) just allowing selection in-place on the client, while waiting for a click on so
I wanted to know how to prevent more than one user from
uploading the report at a time .I am new to .net ,plss help with the
code that would be great.Details are below:
This is a Windos based
app written in c# . When User A clicks Upload option on one server
from the menu to upload the files and at the same time when User B
clicks Upload option on different server , User B should be alerted a
message saying "User A's uploading is in progress,pls wait" . How to
achieve this, plsss help with the code.. I am thinking this logic should be kept in a stored proc, How do I write that proc? plss help
Thanks in advance!