Jump to content

avisekrishi

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by avisekrishi

  1. Hi Jesh , you are right the functionality can be implemented by adding an extra "Clear" button or retyping the URL again .But, i want the functionality to work on refreshing the page only.

    When you perform a postback on the form (by clicking on the Lookup button), the values remain in the textbox and the message remains until you reload the page from scratch. When you use your browser's refresh button to reload the page it, at least in Firefox, resubmits the page to the server. You might consider adding a "Clear" button to your form.Add this to your script:
    <script language="C#" runat="server">void ClearButton_Click(object sender, EventArgs e){	 Response.Redirect(Request.Url.AbsolutePath);}</script>

    And this to your form:

    <asp:Button id="ClearButton" OnClick="ClearButton_Click" text="Clear Page" runat="server />

    Alternatively, you could avoid adding this extra code and then just type in the address of your page in the address bar of your browser and hit ENTER to reload the page rather than clicking the refresh button.

  2. I am using ASP.Net Server controls in an .aspx file .The user enter input values and click button "Look Up" which then displays a message .Now the problem is that when i refresh the page, the user input values remain there and also the message.I want that when i refresh the page,the user input values and message doesnt remain there.The page should look as it is opened the very first time. Here is the code:the entire code is written in notepad using extension .aspx.<%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="TestState.WebForm1" enableViewState="False" enableViewStateMac="False"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML> <HEAD> <script language="C#" runat="server">void SubmitBtn_Click(Object sender,EventArgs e ) { message.Text="Hi "+ Name.Text +",you selected:" + Category.SelectedItem; } </script> </HEAD> <body> <center> <form action="test2.aspx" method="post" runat="server" ID="Form1"> <h3>Name:<asp:textbox id="Name" runat="server" /> Category:<asp:dropdownlist id="Category" runat="server"> <asp:listitem>Psycology</asp:listitem> <asp:listitem>Business</asp:listitem> <asp:listitem>Computer</asp:listitem> </asp:dropdownlist> </h3> <p> <asp:button text="Lookup" OnClick="SubmitBtn_Click" runat="server" ID="Button1" /></p> <p> <asp:label id="message" runat="server" /></p> </form> </center> </body></HTML>

  3. First stop, messages on this board are public and anyone could see them, so there's no point in making two posts (one for each person), when you could make "one post to tell them all".Anyway, what do you mean by "loose their meaning"? If you try the above examples, you'll see that those work.Oh, I think I got it. You mean PAGE break, as if you have one file containing all the data, for example:
    <p>Some <u>text and some more <br>text</u></p>

    But yet by using a server side script for example, your text is divided into pages, such as on the first page you'll have

    <p>Some<u>text</u>

    and on the other page

    <u>and some more <br>text</u></p>

    So the question technically speaking is how to preserve the tag inbetween pages. Right?Hmm... I would suggest that you use the server side script language and set it to close all opened tags after it extracts them. In the same manner, closing tags should be opened at the beginning of the page.

    Yes You got my point . I mean to say that if <b><u> some text is written on one page ,but the closing tag </b></u> is on other page .Then text written on other page will not be bpld and underline. Yes i can make them bold and underline by including those tag again on second page. but suppose if number of pages is too large to perform these operation manually on each page. Is there any technique so that information for First page can be maintained on secong Page, so that HTML tags dont loose their meaning if PAGEBREAK comes in between.
  4. simple answer - yestry it for yourself, open up notepadcopy/paste this in<html><head><title>some page</title></head><body><p>Some <u>text<br>another line, and some more <br>text</u></p></body></html>and save your file with a ".htm" ending.and then open the file in your browser.http://www.w3schools.com/html/html_formatting.asp  for some more formatting tags:)

    Hi, Very thanks for your valuable timeBbut i have some issue i am talkin about page break tag such as PAGE-BREAK-BEFORE: always;Not talkin about Line break .<br> is used for line break.My point is Html tags loose their meaning after page break
  5. <b> and <u> never lose the effect unless you close them and by the way a page break is <br /> or <br> depending on the doctype if you dont understand this PM me

    hello, i am talkin about page break tag such as PAGE-BREAK-BEFORE: always;Not talkin about Line break .<br> is used for line break.My point is Html tags loose their meaning after page break
  6. hi , is it possible to retain meaning of html formatting tags after user or system defined page break.Suppose you put <b> <u> some text <page break> remaining text</b></u>.Will the text "remaining text " will remain bold and underline .actually html tags lost its meaning if opening tag is before page break and closing tag after page break.Is it possibel to retain formatting even after page break

×
×
  • Create New...