Click here to Skip to main content
15,914,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How to upload a asp.net project to server to make it online. Pin
Declan Bright9-Jan-08 21:42
Declan Bright9-Jan-08 21:42 
GeneralRe: How to upload a asp.net project to server to make it online. Pin
coolsatty10-Jan-08 20:45
coolsatty10-Jan-08 20:45 
GeneralRe: How to upload a asp.net project to server to make it online. Pin
imsathy10-Jan-08 22:32
imsathy10-Jan-08 22:32 
Questionhow to handle a double click event in the grid view Pin
jagan1239-Jan-08 20:27
jagan1239-Jan-08 20:27 
AnswerRe: how to handle a double click event in the grid view Pin
Declan Bright9-Jan-08 21:44
Declan Bright9-Jan-08 21:44 
GeneralSystem.IO.IOException: The process cannot access the file because it is being used by another process. Pin
pekhaleyogesh9-Jan-08 20:27
pekhaleyogesh9-Jan-08 20:27 
QuestionGridView with javascript calender Pin
AS@139-Jan-08 20:21
AS@139-Jan-08 20:21 
GeneralRe: GridView with javascript calender Pin
Declan Bright9-Jan-08 23:15
Declan Bright9-Jan-08 23:15 
When a textbox column of a GridView is written out to the browser, the Id's of the text boxes are generated automatically by ASP.NET. The solution to your problem is letting the javascript calendar know the id of the textbox sitting next to it, in the same row of the grid.

You can do this in the RowDataBound event of the GridView which is fired as the data for each row of the GridView is bound.
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
    if (e.Row.RowType == DataControlRowType.DataRow)
    {
        // Access textbox here and assign onclick ...
    }
}
Once you access the TextBox you can assign the onclick event to it with the appropriate client side textbox Id.
myTextBox.Attributes["onclick"] = "popUpCalendar(this, " + myTextBox.ClientId + ", \"dd/mm/yyyy\")";
Use the ClientId property on the server side to get the id of the textbox which will be written to the browser for that particular row. By examining the source of the web page you will see that the onclick for each row will have the correct id for the associated textbox.

Declan Bright
www.declanbright.com

GeneralCreate PDF from ByteArray Pin
Kumaran21cen9-Jan-08 20:14
Kumaran21cen9-Jan-08 20:14 
Questionprinter queue in asp.net Pin
bharathy9-Jan-08 20:06
bharathy9-Jan-08 20:06 
Generalif we keep gridview in loop to check for the values is the speed of the application get it slow Pin
jagan1239-Jan-08 19:03
jagan1239-Jan-08 19:03 
GeneralRe: if we keep gridview in loop to check for the values is the speed of the application get it slow Pin
N a v a n e e t h9-Jan-08 19:13
N a v a n e e t h9-Jan-08 19:13 
GeneralRe: if we keep gridview in loop to check for the values is the speed of the application get it slow Pin
jagan1239-Jan-08 19:34
jagan1239-Jan-08 19:34 
GeneralRe: if we keep gridview in loop to check for the values is the speed of the application get it slow Pin
N a v a n e e t h9-Jan-08 19:42
N a v a n e e t h9-Jan-08 19:42 
GeneralRe: if we keep gridview in loop to check for the values is the speed of the application get it slow Pin
jagan1239-Jan-08 20:06
jagan1239-Jan-08 20:06 
QuestionHow to clear browser history pages programmatically from ASP.Net web page Pin
Anuradha6129-Jan-08 18:48
Anuradha6129-Jan-08 18:48 
AnswerRe: How to clear browser history pages programmatically from ASP.Net web page Pin
N a v a n e e t h9-Jan-08 19:12
N a v a n e e t h9-Jan-08 19:12 
AnswerRe: How to clear browser history pages programmatically from ASP.Net web page Pin
Ravi_219-Jan-08 19:15
Ravi_219-Jan-08 19:15 
GeneralRe: How to clear browser history pages programmatically from ASP.Net web page Pin
N a v a n e e t h9-Jan-08 19:26
N a v a n e e t h9-Jan-08 19:26 
GeneralRe: How to clear browser history pages programmatically from ASP.Net web page Pin
Anuradha6129-Jan-08 20:08
Anuradha6129-Jan-08 20:08 
GeneralRe: How to clear browser history pages programmatically from ASP.Net web page Pin
Vasudevan Deepak Kumar9-Jan-08 20:30
Vasudevan Deepak Kumar9-Jan-08 20:30 
GeneralRe: How to clear browser history pages programmatically from ASP.Net web page Pin
Vasudevan Deepak Kumar9-Jan-08 20:29
Vasudevan Deepak Kumar9-Jan-08 20:29 
GeneralRe: How to clear browser history pages programmatically from ASP.Net web page Pin
Anuradha6129-Jan-08 20:35
Anuradha6129-Jan-08 20:35 
GeneralRe: How to clear browser history pages programmatically from ASP.Net web page Pin
N a v a n e e t h9-Jan-08 21:26
N a v a n e e t h9-Jan-08 21:26 
Generalcompare two word document Pin
Amit Agarrwal9-Jan-08 18:27
Amit Agarrwal9-Jan-08 18:27 

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.