Click here to Skip to main content
15,900,378 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: span and div elements Pin
Tina P14-Dec-06 12:21
Tina P14-Dec-06 12:21 
AnswerRe: span and div elements Pin
Guffa14-Dec-06 12:03
Guffa14-Dec-06 12:03 
GeneralRe: span and div elements Pin
Tina P14-Dec-06 12:22
Tina P14-Dec-06 12:22 
Questioncommandbehavior.closeconnection Pin
saravanan0514-Dec-06 11:14
saravanan0514-Dec-06 11:14 
QuestionForum Structure Problem Pin
ADY00714-Dec-06 9:42
ADY00714-Dec-06 9:42 
AnswerRe: Forum Structure Problem Pin
Pradipta Basu14-Dec-06 10:09
Pradipta Basu14-Dec-06 10:09 
GeneralRe: Forum Structure Problem Pin
ADY00714-Dec-06 10:23
ADY00714-Dec-06 10:23 
GeneralRe: Forum Structure Problem Pin
Pradipta Basu15-Dec-06 10:21
Pradipta Basu15-Dec-06 10:21 
1. look here, when the pagination is on, it comes in number format, like 1,2,3,... or in Previous/Next format.
consider the previous next format. when you are in page 5, and click next, the next page index is 6. so e.NewPageIndex = 6.

2. I will prefer to keep the images in a folder in the webserver, and keep the path of the images in database. This is done the way I have told in my previous mail.

3. Lets say your object id is objid in the database and you are binding the datagrid with a datatable which get filled from the database table of objects.
Now the column will be something like this
<br />
<asp:TemplateColumn HeaderText="Object ID" Visible="False"><br /><br />
  <ItemTemplate><br /><br />
    <a id="lnkID" runat="server" href='Newpage.aspx?id=<%# DataBinder.Eval (Container.DataItem, "ID") %>'>><%# DataBinder.Eval (Container.DataItem, "ID") %></a><br /><br />
  </ItemTemplate><br /><br />
</asp:TemplateColumn><br /><br />



For more on datagrids, read my article
How to create the id of <td> and <tr> generated by DataGrid in ASP.NET and use it by client-side JavaScript.

Hope this will do.

Pradipta Basu

AnswerRe: Forum Structure Problem [modified] Pin
nisha261214-Dec-06 18:47
nisha261214-Dec-06 18:47 
GeneralRe: Forum Structure Problem Pin
ADY00714-Dec-06 21:29
ADY00714-Dec-06 21:29 
QuestionAdding a subtotal on matrix control Pin
rsholanki14-Dec-06 9:25
rsholanki14-Dec-06 9:25 
Questionshowing fading effects on RSS feeds --please help!!! Pin
No47162714-Dec-06 3:08
No47162714-Dec-06 3:08 
AnswerRe: showing fading effects on RSS feeds --please help!!! Pin
Pradipta Basu14-Dec-06 9:48
Pradipta Basu14-Dec-06 9:48 
QuestionProbel to get time format into datetime Pin
Imran Khan Pathan14-Dec-06 0:50
Imran Khan Pathan14-Dec-06 0:50 
AnswerRe: Probel to get time format into datetime Pin
Paddy Boyd14-Dec-06 3:22
Paddy Boyd14-Dec-06 3:22 
AnswerRe: Probel to get time format into datetime Pin
bhern14-Dec-06 4:47
bhern14-Dec-06 4:47 
GeneralRe: Probel to get time format into datetime Pin
Imran Khan Pathan14-Dec-06 18:21
Imran Khan Pathan14-Dec-06 18:21 
AnswerRe: Probel to get time format into datetime Pin
RichardGrimmer14-Dec-06 5:15
RichardGrimmer14-Dec-06 5:15 
Questionopen project Pin
sanaziuse14-Dec-06 0:37
sanaziuse14-Dec-06 0:37 
AnswerRe: open project Pin
Paddy Boyd14-Dec-06 3:29
Paddy Boyd14-Dec-06 3:29 
GeneralRe: open project Pin
sanaziuse14-Dec-06 3:47
sanaziuse14-Dec-06 3:47 
AnswerRe: open project Pin
Britney S. Morales14-Dec-06 5:10
Britney S. Morales14-Dec-06 5:10 
GeneralRe: open project Pin
sanaziuse14-Dec-06 5:34
sanaziuse14-Dec-06 5:34 
GeneralRe: open project Pin
Britney S. Morales14-Dec-06 8:23
Britney S. Morales14-Dec-06 8:23 
GeneralRe: open project Pin
sanaziuse14-Dec-06 9:22
sanaziuse14-Dec-06 9:22 

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.