Click here to Skip to main content
15,891,431 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Moss 2007 server problem Pin
Abhijit Jana3-Mar-09 18:57
professionalAbhijit Jana3-Mar-09 18:57 
GeneralRe: Moss 2007 server problem Pin
Maxy553-Mar-09 19:41
Maxy553-Mar-09 19:41 
QuestionUpdateProgress in MasterPage Pin
anada88863-Mar-09 17:06
anada88863-Mar-09 17:06 
AnswerRe: UpdateProgress in MasterPage Pin
Abhishek Sur3-Mar-09 20:41
professionalAbhishek Sur3-Mar-09 20:41 
QuestionRe: UpdateProgress in MasterPage Pin
anada88863-Mar-09 20:56
anada88863-Mar-09 20:56 
QuestionCalling a javascript function in the content page from the master page. Pin
Steve Holdorf3-Mar-09 15:32
Steve Holdorf3-Mar-09 15:32 
AnswerRe: Calling a javascript function in the content page from the master page. Pin
Christian Graus3-Mar-09 15:34
protectorChristian Graus3-Mar-09 15:34 
QuestionDynamic link in Detailsview disappears on update Pin
Ekjon3-Mar-09 11:49
Ekjon3-Mar-09 11:49 
I have a detailsview showing data from 2 tables. One of the data fields in the detailsview is a link for another page.
The link is created using <a id=.. runat=server target="_blank>..etc
In the Page_Load, I am using code like -
DetailsViewRow row = dvParams.Rows[0];<br />
        tbox = (TextBox)(row.FindControl("txtEqpID"));<br />
        anchorSpEquipment = (HtmlAnchor)(row.FindControl("lnkSpEquipment"));<br />
        anchorSpEquipment.HRef = "....."<br />

It works fine but if edit-update/cancel is clicked, the link goes away, leaving only the text. So, I put the same code above in the detailsview PreRender event handler and it started to work fine.
But to edit this field(in edit mode), I have a dropdown list with values populated from another table in the database. To do that - I needed to put code in the PreRenderagain.
As soon as I did that, the previous code is giving me null reference on the HtmlAnchor object. I tried to move the code in other EventHandlers like ModeChanging,ItemCommand - but everywhere it does the same...even in the Page_load if I move it outside of the !Page.IsPostBack, it gives the error.

Any ideas? Thanks.
AnswerRe: Dynamic link in Detailsview disappears on update Pin
Christian Graus3-Mar-09 15:11
protectorChristian Graus3-Mar-09 15:11 
GeneralRe: Dynamic link in Detailsview disappears on update Pin
Ekjon3-Mar-09 19:12
Ekjon3-Mar-09 19:12 
GeneralRe: Dynamic link in Detailsview disappears on update Pin
Ekjon4-Mar-09 7:53
Ekjon4-Mar-09 7:53 
Questionwhat method to use for pushing page updates to page/iframes? Pin
nakins3-Mar-09 10:24
nakins3-Mar-09 10:24 
AnswerRe: what method to use for pushing page updates to page/iframes? Pin
Christian Graus3-Mar-09 11:02
protectorChristian Graus3-Mar-09 11:02 
QuestionHow to create differetnt subdomains through ASP.NET C# ? Pin
King Shez3-Mar-09 9:27
King Shez3-Mar-09 9:27 
AnswerRe: How to create differetnt subdomains through ASP.NET C# ? Pin
Christian Graus3-Mar-09 9:40
protectorChristian Graus3-Mar-09 9:40 
GeneralRe: How to create differetnt subdomains through ASP.NET C# ? Pin
King Shez3-Mar-09 10:27
King Shez3-Mar-09 10:27 
GeneralRe: How to create differetnt subdomains through ASP.NET C# ? Pin
Christian Graus3-Mar-09 11:01
protectorChristian Graus3-Mar-09 11:01 
GeneralRe: How to create differetnt subdomains through ASP.NET C# ? Pin
Yusuf3-Mar-09 11:51
Yusuf3-Mar-09 11:51 
QuestionEmail Pin
M.Ambigai3-Mar-09 7:11
M.Ambigai3-Mar-09 7:11 
AnswerRe: Email Pin
Abhishek Sur3-Mar-09 8:58
professionalAbhishek Sur3-Mar-09 8:58 
AnswerRe: Email Pin
Abhijit Jana3-Mar-09 18:54
professionalAbhijit Jana3-Mar-09 18:54 
AnswerRe: Email Pin
Sneha Bisht3-Mar-09 19:06
Sneha Bisht3-Mar-09 19:06 
QuestionSHA1 Pin
M.Ambigai3-Mar-09 7:07
M.Ambigai3-Mar-09 7:07 
AnswerRe: SHA1 Pin
Kelly Herald3-Mar-09 8:13
Kelly Herald3-Mar-09 8:13 
GeneralRe: SHA1 Pin
M.Ambigai3-Mar-09 23:58
M.Ambigai3-Mar-09 23:58 

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.