Click here to Skip to main content
15,886,258 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: How do I download files in background or do asynchronous process in MVC Pin
F-ES Sitecore5-Dec-18 0:39
professionalF-ES Sitecore5-Dec-18 0:39 
AnswerRe: How do I download files in background or do asynchronous process in MVC Pin
Richard Deeming5-Dec-18 9:25
mveRichard Deeming5-Dec-18 9:25 
GeneralRe: How do I download files in background or do asynchronous process in MVC Pin
Member 140250636-Dec-18 19:45
Member 140250636-Dec-18 19:45 
AnswerRe: How do I download files in background or do asynchronous process in MVC Pin
Nitin S28-Dec-18 2:16
professionalNitin S28-Dec-18 2:16 
Questionwtx-context attribute Pin
DerekT-P4-Dec-18 8:27
professionalDerekT-P4-Dec-18 8:27 
AnswerRe: wtx-context attribute Pin
Member 1451533928-Jun-19 3:05
Member 1451533928-Jun-19 3:05 
GeneralRe: wtx-context attribute Pin
DerekT-P28-Jun-19 4:17
professionalDerekT-P28-Jun-19 4:17 
QuestionInsert HTML Elements In A DIV In VB WebForm Dynamically Using jQuery Pin
MadDashCoder30-Nov-18 19:15
MadDashCoder30-Nov-18 19:15 
I am trying to insert HTML elements dynamically into an empty DIV element on my VB.net web form when buttons are clicked. Each button will insert a different set of elements. In my jQuery function I made sure the DIV that will receive the new contents is cleared before adding new contents to it.

This works if I take the script and markups and put them in a regular html file but when I try this in my VB.net web form, the new elements show up for a split second then they are cleared.

I think it has to do with PostBack so I put the code below in Pageload.
VB
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
       If Page.IsPostBack Then
           ClientScript.RegisterHiddenField("isPostBack", "1")
       End If
   End Sub


Then in my jQuery document ready function I check for PostBack with the following code
JavaScript
var isPostBackObject = document.getElementById('isPostBack');
            if (isPostBackObject != null) {
             //Do something
            }

What am I doing wrong, why isn't it working?

modified 2-Dec-18 11:21am.

AnswerRe: Insert HTML Elements In A DIV In VB WebForm Dynamically Using jQuery Pin
F-ES Sitecore2-Dec-18 23:02
professionalF-ES Sitecore2-Dec-18 23:02 
QuestionHaving difficulty with an MVC question Pin
Member 1406015930-Nov-18 7:25
Member 1406015930-Nov-18 7:25 
AnswerRe: Having difficulty with an MVC question Pin
Dave Kreskowiak30-Nov-18 7:59
mveDave Kreskowiak30-Nov-18 7:59 
GeneralRe: Having difficulty with an MVC question Pin
Member 1406015930-Nov-18 8:31
Member 1406015930-Nov-18 8:31 
GeneralRe: Having difficulty with an MVC question Pin
Richard MacCutchan30-Nov-18 22:25
mveRichard MacCutchan30-Nov-18 22:25 
GeneralRe: Having difficulty with an MVC question Pin
Vincent Maverick Durano5-Dec-18 15:07
professionalVincent Maverick Durano5-Dec-18 15:07 
QuestionDebugging a Web API Project in Visual Studio 2017 Pin
Dominick Marciano26-Nov-18 5:13
professionalDominick Marciano26-Nov-18 5:13 
AnswerRe: Debugging a Web API Project in Visual Studio 2017 Pin
maryam.saboor4-Dec-18 23:36
professionalmaryam.saboor4-Dec-18 23:36 
QuestionHow to write Edit Item template in asp.net with sql command Pin
Member 1362771923-Nov-18 22:19
Member 1362771923-Nov-18 22:19 
QuestionList is losing it's contents ? Pin
caffrey_123-Nov-18 2:37
caffrey_123-Nov-18 2:37 
AnswerRe: List is losing it's contents ? Pin
Richard MacCutchan23-Nov-18 2:46
mveRichard MacCutchan23-Nov-18 2:46 
GeneralRe: List is losing it's contents ? Pin
caffrey_123-Nov-18 3:01
caffrey_123-Nov-18 3:01 
AnswerRe: List is losing it's contents ? Pin
Richard Deeming23-Nov-18 3:32
mveRichard Deeming23-Nov-18 3:32 
GeneralRe: List is losing it's contents ? Pin
caffrey_123-Nov-18 4:05
caffrey_123-Nov-18 4:05 
GeneralRe: List is losing it's contents ? Pin
Richard Deeming23-Nov-18 4:13
mveRichard Deeming23-Nov-18 4:13 
GeneralRe: List is losing it's contents ? Pin
caffrey_123-Nov-18 4:45
caffrey_123-Nov-18 4:45 
QuestionRDLC Report is not showing Column Headers in all the pages Pin
simpledeveloper20-Nov-18 14:30
simpledeveloper20-Nov-18 14:30 

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.