Click here to Skip to main content
15,892,059 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionTab based programming Pin
kjosh25-Jun-08 14:58
kjosh25-Jun-08 14:58 
AnswerRe: Tab based programming Pin
Christian Graus25-Jun-08 15:18
protectorChristian Graus25-Jun-08 15:18 
QuestionLinking to most recent by date [modified] Pin
midoujulessama25-Jun-08 14:49
midoujulessama25-Jun-08 14:49 
AnswerRe: Linking to most recent by date Pin
Christian Graus25-Jun-08 15:24
protectorChristian Graus25-Jun-08 15:24 
GeneralRe: Linking to most recent by date Pin
midoujulessama25-Jun-08 16:21
midoujulessama25-Jun-08 16:21 
GeneralRe: Linking to most recent by date Pin
Christian Graus25-Jun-08 18:13
protectorChristian Graus25-Jun-08 18:13 
AnswerRe: Linking to most recent by date Pin
ravindra_ee24825-Jun-08 21:51
ravindra_ee24825-Jun-08 21:51 
GeneralRe: Linking to most recent by date Pin
midoujulessama26-Jun-08 10:21
midoujulessama26-Jun-08 10:21 
I've used the following code to create "Previous" and "Next" links on the image display pages.


In the head:
<%
DIM objConn,RS
ImageRootDirectory="/alltoogently/"
ImageID=Request("ImageID")
sql = "SELECT * FROM QImages WHERE ImageID="&ImageID
Set Conn=Server.CreateObject("ADODB.Connection")
Set RS =Server.CreateObject("ADODB.Recordset")
DSNName = "DRIVER=Microsoft Access Driver (*.mdb);DBQ="
DSNName = DSNName&Server.MapPath("/access_db/alltoogently.mdb")
Conn.Open DSNName
RS.Open sql, Conn, 3, 3
ImageName=RS.Fields("ImageName").Value
ImageHRefFile=RS.Fields("ImageHRefFile").Value
ImageDate=RS.Fields("ImageDate").Value
ImageCaption=RS.Fields("ImageCaption").Value
CategoryTitle=RS.Fields("CategoryTitle").Value
CategoryID=RS.Fields("CategoryID").Value
ImageOrder=RS.Fields("ImageOrder").Value
CategoryDirectory=RS.Fields("CategoryDirectory").Value
ImageFile=ImageRootDirectory&CategoryDirectory&"/"&ImageHRefFile
RS.Close
sql = "SELECT * FROM QImages WHERE CategoryID="&CategoryID
RS.Open sql,Conn,3,3
NRecs=0
NextID=0
PreviousID=0
SaveID="0"
Do
NRecs=NRecs+1
If RS.Fields("ImageDate")<Date then Exit Do
RS.MoveNext
Loop Until RS.EOF
If NRecs>1 then
RS.MovePrevious
PreviousID=RS.Fields("ImageID")
RS.MoveNext
End If
RS.MoveNext
If Not RS.EOF then NextID=RS.Fields("ImageID")
RS.Close
Conn.Close
%>

And In the body:
<%If NextID>0 then
%>
<a href="BigImageDisplay.asp?ImageID=<%=NextID%>">Previous</a>
<%
End If
If ImageDate<Date then
%>
<a href="BigImageDisplay.asp?ImageID=<%=PreviousID%>">Next</a>
<%ImageDate=Date
End If%>



Can I use a similar code for this? Or can I derive the code I need from a this code? Thank you!
QuestionServerControl property defined as Interface isn't available in Intellisense Pin
Mark J. Miller25-Jun-08 11:36
Mark J. Miller25-Jun-08 11:36 
QuestionUnable to set focus to a text box contained in a gridview's row cell after post-back and binding. Pin
Steve Holdorf25-Jun-08 10:57
Steve Holdorf25-Jun-08 10:57 
AnswerRe: Unable to set focus to a text box contained in a gridview's row cell after post-back and binding. Pin
Masood Kochi,SSF25-Jun-08 19:49
Masood Kochi,SSF25-Jun-08 19:49 
GeneralRe: Unable to set focus to a text box contained in a gridview's row cell after post-back and binding. Pin
Steve Holdorf26-Jun-08 2:44
Steve Holdorf26-Jun-08 2:44 
AnswerRe: Unable to set focus to a text box contained in a gridview's row cell after post-back and binding. Pin
boy.pockets25-Jun-08 19:52
boy.pockets25-Jun-08 19:52 
Questionpage navigation Pin
jds120725-Jun-08 8:42
jds120725-Jun-08 8:42 
AnswerRe: page navigation Pin
Zoltan Balazs25-Jun-08 9:57
Zoltan Balazs25-Jun-08 9:57 
QuestionExam questions. Are they wrong or what? Pin
AlexeiXX325-Jun-08 7:45
AlexeiXX325-Jun-08 7:45 
NewsTools to Check Your ASP, ASP.NET Site For SQL Injection Attacks Pin
brucedkyle25-Jun-08 6:06
brucedkyle25-Jun-08 6:06 
GeneralRe: Tools to Check Your ASP, ASP.NET Site For SQL Injection Attacks Pin
Christian Graus25-Jun-08 12:22
protectorChristian Graus25-Jun-08 12:22 
Questionhow come script works in firefox but not ie Pin
zzsoulzz25-Jun-08 5:42
zzsoulzz25-Jun-08 5:42 
AnswerRe: how come script works in firefox but not ie Pin
Parwej Ahamad25-Jun-08 5:45
professionalParwej Ahamad25-Jun-08 5:45 
GeneralRe: how come script works in firefox but not ie Pin
zzsoulzz25-Jun-08 6:03
zzsoulzz25-Jun-08 6:03 
GeneralRe: how come script works in firefox but not ie Pin
Parwej Ahamad25-Jun-08 6:17
professionalParwej Ahamad25-Jun-08 6:17 
GeneralRe: how come script works in firefox but not ie Pin
zzsoulzz25-Jun-08 6:23
zzsoulzz25-Jun-08 6:23 
GeneralRe: how come script works in firefox but not ie Pin
Parwej Ahamad25-Jun-08 6:34
professionalParwej Ahamad25-Jun-08 6:34 
GeneralRe: how come script works in firefox but not ie Pin
zzsoulzz25-Jun-08 6:39
zzsoulzz25-Jun-08 6:39 

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.