Web Forms :: Looking For A Solid Explanation Of How A Page Works...

Jan 5, 2010

Seems like a basic question but im looking for an article that can give a good solid overview of how a page in asp.net works.

What im looking for in specific is how variables react on postback and stuff like that. For example if I bind an Asp.net control to the page, do I need to rebind it every time the page is refreshed? And what if its a postback, do page variables get preserved across postbacks.

View 4 Replies


Similar Messages:

AJAX :: ModalBackground - Opacity On Large Page Turning Screen Solid?

Sep 14, 2010

I have a problem with Opacity in my project - it turns the screen a solid colour instead of see-thru.

I am displaying a rotating wheel in a panel and using modalpopupextender.

1) Only happens in IE8

2) Only happens when there is a lot of data displayed on screen (i.e Datagrid displaying a lot of records).

[code]....

Example of my issue:

I have a screen with a Tab Control with 3 tabs.

Tab 2 and 3 contain a small amount of data on the grid (10 to 20 records), Tab 1 contains 1000+ records.

All this is within an Update Panel - the tabcontrol have AutoPostback set to on.

Now if I click tab 2 -> tab 3 -> tab 2 -> tab 3 etc then the progress show correctly with an opaque screen.

If I click Tab 1 the pop displays but the screen is a solid colour. If I try Tab 2 or 3 again the screen stays a solid colour.

View 8 Replies

Having Trouble Putting Together A Good Solid Newsletter?

Jan 2, 2010

Having trouble putting together a good solid newsletter.Can some of you experts help me with this problem.
Either with code or link tutorials.everything!

View 3 Replies

VS 2010 Line Breaks Are Not Appearing (only Get A Solid Paragraph)

Jun 8, 2010

I am currently working on a site that reades from several fields in a database to present the information on the site. One of the fields containes several paragraphs of data and I am having trouble displaying it correctly on the site.

The database holds the text in a plain text format (no html) the requirements are such that the website should be able to display this same text, properly formatted, without having to convert it to html code. Thus far I have setup a <p> tag with an ID in the markup like so:

Code:

<p id="body" runat="server"></p>

The problem I am having is:

1) line breaks are not appearing (I only get a solid paragraph)
2) the ' marks are not showing up.

Here is my code behind

Code:

Dim lblBody As HtmlContainerControl = CType(editplaceholder.FindControl("body"), HtmlContainerControl)
lblBody.InnerText = NullTest(dsarticle.Tables("selectedArticle").Rows(currentrow).Item("Article_body"))

I am sure my problem is that I am feeding plain text but I am not sure of the way around this. Do I need another html element? Is there somewhere I need to convert the text?

View 9 Replies

Web Forms :: CSS Not Working In Page Derived From Child Master Page When Viewed In Browser But Works In Design...

Jun 13, 2010

I have a page with features supplied from both a master page and a child master page.In the content placeholder for the head in both master pages I have supplied the link to the stylesheet for the site.In Design View in VS 2008 the CSS code seems to be functioning correctly.When viewing in a browser the CSS does not appear to be applied at all.

Here is the CSS code for the div elements within the main content placeholder:

[Code]....

View 8 Replies

Web Forms :: Master Page Works As It's Supposed Too For Each Web Page That Gets Displayed?

Apr 27, 2010

I'm using ASP.NET 3.5I have created a Master Page. The master page is simple. It has a table at the top which has the colors and rows and columns and text that I need on each web page that gets displayed. Beneath the table I have a ContentPlaceHolder. The master page works as it's supposed too for each web page that gets displayed.My question is that I have this header at the top and then the ContentPlaceHolder, but how do I add a Footer to the Master Page? The footer naturally needs to be at the bootom of the Master Page!How do you add a footer and make it remain after the ContentPlaceHolder at the bootom of the Master Page?

View 4 Replies

Web Forms :: Event Life Cycle Stages And Its Explanation?

Jan 8, 2014

ASP.Net page life cycle events with code example C#

View 1 Replies

Web Forms :: CSS On Default Page Works Only When Login?

Mar 24, 2011

I am creating an application in which I am doing forms authentication. I need to show a default page with a login link, normal user can see the form and admin can login and make necessary changes.

But when I configure forms authentication the images and CSS on default page works only when someone logins, otherwise they dint work. I am using Master page also.

Master page, css folder and images folder exist on Root.

View 1 Replies

Web Forms :: Dynamic Page Title Works Only Once?

Feb 12, 2010

I have an application which is all contained on a single page. (Search client, search products, add to basket, purchase, etc.).

I set the page title on the first page load with this.title = "Whatever";

That part works fine

However I need to change the title depending on what action was just taken (like a breadcrum). All the buttons and contents are placed in update panels. And I cannot find a way to change the title after the initial page load.

I've used this.Title, generic html object, title/header with runat server. Tried adding javascript dynamically. They all word... but only on the first page_load, never after that. I've ran in debug mode to confirm that the code gets hit on every page load and nothing seems to change the totle even if the code runs.

View 6 Replies

Web Forms :: ImageButton On Masterpage Works On One Page But Not On Another?

Nov 17, 2010

On my masterpage, I have an ImageButton. I have a page in the "Administrators" folder that uses this masterpage, which is the page directed to after a user in the role "Administrators" logs in, and the button works fine there. I have another page in the "CallCenter" folder that uses the same masterpage, which is the page directed to after a user in the role "CallCenter" logs in, and the button does not work. I set a break point on the Click event for this button, and the breakpoint is not hit.

I looked at the page source in both instances, and in the instance when the button works, the button is rendered as:

[Code]....


The only difference as you can see is the "onclick" in the button that does not work.

View 3 Replies

What Does Prerender() Do / Finding Explanation

Jul 15, 2010

I read this

[URL]

and I was wondering if there's anyone that can explain to me what Prerender should do, for example for a button or a calendar component.

I can't imagine it; can you show me few lines?

View 2 Replies

Explanation - Use ClientIDMode Property That Comes With 4.0?

Apr 27, 2010

How should we use ClientIDMode property that comes with asp.net 4.0?... When i should i use one over the other clientIdModes?

View 1 Replies

MVC :: Where To Get Sample Pattern Explanation

Oct 9, 2010

i need MVC pattern with sample example....

View 1 Replies

C# - Dependency Injection - Colloquial Explanation

Apr 8, 2010

Recently I was asked to express the DI in colloquial explanation.

I answered :

1)I am going to a hotel.I ordered food.The hotel management asks me to clean the plates and
clean the tables.So here i am a client,I am responsible for managing the service (Instantiating,executing,disposing).But DI decouples such tasks so the service consumer no need not worry about controlling the life cycle of the service.

2)He also asked is there any microsoft API follows DI ?.I answered (This was my guess) In WCF you can create a Proxy using ChannelFactory that controls the life time of your factory.

for item (1) he said only 10% is correct

for item(2) he said that is factory pattern not dependency injection.

Actually what went wrong in my explanation (apart from my bad English) ? What is the real answers for those?

View 3 Replies

Installation :: Always Prompts And Error With No Explanation?

Jun 14, 2010

I am trying to unable the asp.net so that i can dev on windows azure, unfortunately going through windows features(in win7) to install it, always prompts and error with no explanation whatsoever. its the "an error has occured, some programs may not have been changed sucessfully" or something similar to that.I have tried uninstalling IIS and reinstalling afterwords, and have tried removing WAS.

View 4 Replies

Clarification / Explanation Of RegisterClientScriptInclude Method?

Apr 20, 2010

I've been looking on the Internet for a fairly clear explanation of the different methods of registering javascript in an asp.net application. I think I have a basic understating of the difference between registerStartupScript and registerClientScriptBlock (the main difference being where in the form the script is inserted).I'm not sure I understand what the RegisterClientScriptInclude method does or when it is used. From what I can gather, it is used to register an external .js file. Does this then make any and all javascript functions in that file available to the aspx page it was registered on? For example, if it was registered in the onLoad event of a master page, would all pages using that master page be able to use the javascript functions in the .js file? What problems would arise when trying to use document.getElementById in this case, if any? Also, when it is necessary/advantageous to use multiple .js files and register them separately?

View 1 Replies

DataSource Controls :: Looking For Explanation Of Query ?

Feb 21, 2010

Hregarding to following query:

Use AdventureWorks

Go
ELECT p.ProductID,
piy.ProductID

What does mean ON 1 = 1 in this query??

View 3 Replies

Forms Data Controls :: Edit Function Works Only When NOT Using Master Page?

Sep 20, 2010

[Code]....

Then: when using a masterpage, all of a sudden, the same code in a contentplaceholder is not working anymore! When I edit, it doens't give me an error but simply deletes all the values of that datarow.

[Code]...

View 2 Replies

Dotnetopenauth OAuth Service Provider Explanation?

May 28, 2010

I am a total newbie in the oAuth area and have set up DotNetOpenAuth to set up an oAuth Service provider. The sample provided in the DotNetOpenAuth download is quite confusing for me...maybe cos i am new to this stuff. There is one default page that creates a database and populates the database. Now I browse to the login.aspx and it asks me to put an openid, actually I want to use DNN (which implements DotNetOpenAuth) and i want to use those credentials on another site which will be the oAuth consumer. Can someone explain how to test the oAuth Service provider in the samples of DotNetOpenAuth?

View 1 Replies

Security :: Finding Explanation For Authentication And Authorization

Jan 30, 2010

i need clear expition for authentication and authorization in .net

View 3 Replies

Configuration :: Explanation Of Publishing Site Options?

Feb 18, 2011

what the two following options in the publish dialog are for when publishing a site? I just required to know in what situation these will be use.

1) "Allow this precompiled site to be updatable"

2) "Used fixed naming and single page assemblies"

3) "Emit Debug information"

4) "Enable strong naming on precompiled assemblies"

View 1 Replies

Forms Data Controls :: Gridview With CSS For Alternative Page (Header Works Fine)

Jul 13, 2010

Did you have any issue to show background images in a gridview with IIS 7. I've exactly applied this [URL] and I've no idea why, my css works for the header but not for:

PagerStyle-CssClass="pgr"
AlternatingRowStyle-CssClass="alt"

The alternative row has no background image and the pager too but it works for the header. But when I browse the website online from my laptop, without IIS it works fine. When I check web developer tools from i.e., I've the backround image written in the css so it should come up.

View 1 Replies

C# - Explanation Of Differences Repeater Unique Name Format String?

Sep 10, 2010

explain reasons why the name property of a Repeater control's child controls would be generated differently in an ASP.NET application when it is deployed on different IIS servers?

One some IIS servers the Name is generated using the format:

String.Format("{0}:_ctl{1:00}:{2}", RepeaterControlID, itemIndex, ChildControlID);

e.g.

<input name="Mntc_Software_List:_ctl1:id" id="Mntc_Software_List__ctl1_id" type="hidden" value="1772" />

and on other IIS servers the format is:

String.Format("{0}$ctl{1}${2}", RepeaterControlID, itemIndex, ChildControlID);

e.g.

<input name="Mntc_Software_List$ctl01$id" type="hidden" id="Mntc_Software_List_ctl01_id" value="1772" />

View 2 Replies

MVC :: One Page Is A Silverlight App -> Only Works On Default Page?

Feb 21, 2010

I am trying to create a website containing an application written in Silverlight. Because of SEO, I want to have this Silverlight application on one page of the site, whereas the other pages are ASP.NET MVC, explaining about the application, general info, etc.

I was able to find an example on how to add a silverlight application to an ASP.NET MVC view. Basically, I just have to add:[Code]....

to the <asp:Content> block.

However, this only seems to work if this snippet is added to the default page (/Home/Index in case of an out-of-the box ASP.NET MVC application). If I add the same snippet to, for example, the About.aspx page, nothing shows up. If I make the About page the default page by changing the route to:
[Code]....

then the Silverlight application is launched on the About page (now the default page), but no longer on the Home page.So my question is, how can I get my Silverlight application to launch on any page in my ASP.NET MVC aplication, not just the default page?

View 3 Replies

Configuration :: Web Page Works With Localhost But Not With IP

Mar 26, 2011

I have a simple asp.net web page that lists and inserts records into an access db. It works fine by pressing F5 to run in the VS 2008 IDE (Localhost:port) but won't work when it is published. The log shows this error 500 0 0 207.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved