|
This is plain astounding.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I m done a web page in that 6 para and 4 picture is there. that one done asp.net. Know Load the picture first then after completed picture then text will wt I do plzzz help on this.
|
|
|
|
|
I read your post many times. Honestly, I couldn't get what you are saying. Could you rephrase your question so that we understand.
|
|
|
|
|
I created one web page.
that web page contains 4 picture <asp:Image> and 6 para <p>.
when page loading or at time of refreshing. The Images are come first and para like that can i make it.
Like sequence manner.
|
|
|
|
|
Well, AFAIK, that is not possible. Browser sends multiple requests in parallel to make the page download faster. You can't predict in which order it does this.
|
|
|
|
|
I agree that the browser sends multiple requests in parallel but there is a procedure to it.
It first sends the request to get the web pages. Then once it receives the response for those web pages, it then sends the request to receive the resources for the web page.
Lets say, you have a default.aspx page that consists of image1.jpg and a main.aspx page that consists of image2.jpg. The browser will first send the request to get default.aspx and main.aspx. Once it receives the response for default.aspx, depending on what the response is, it will send the request for image1.jpg. Same goes for main.aspx i.e. once it receives the response for default.aspx, depending on what the response is, it will send the request for image2.jpg.
Prateek
|
|
|
|
|
Pr@teek B@h! wrote: I agree that the browser sends multiple requests in parallel but there is a procedure to it.
It first sends the request to get the web pages. Then once it receives the response for those web pages, it then sends the request to receive the resources for the web page.
Do you have any documents to prove your points? Well, I don't think you are right.
|
|
|
|
|
Sorry, I don't have any documents...but, if you view HTTP Headers while going to websites, you will notice the pattern. I noticed this when I was building a proxy.
I could be wrong, but it would be worth it to check it out.
Prateek
p.s. do you have any documents supporting your theory? I would love to read up on this topic.
|
|
|
|
|
Let me get this straight. You want to display the para first and then the pictures to upload?
Prateek
|
|
|
|
|
|
Sorry for not replying sooner. After doing some research, I found out that when you send a request, the browser first loads up all of the main web pages e.g. main.aspx, default.aspx, etc. and then gets the other resources e.g. javascript files, images, etc.
So the answer to your question is that the browser handles how the files are loaded and you really can't change the way the files are displayed.
I apologize if this wasn't helpful,
Prateek
p.s. oh yeah, if you like to see how the web request work, i would download Live HTTP Headers for Firefox.
|
|
|
|
|
actually...can you show your code. Something occurred to me and it might have something to do with how you have arranged your code. If you are loading the pictures before getting the file with the para, that might be why your pictures are loading before the para.
Prateek
|
|
|
|
|
function TextBoxSelect()
{
var a = document.form1.CheckBox1.checked;
alert(a);
var aa = document.form1.<%=CheckBox1.ClientID%>;
alert(aa);
var txt = document.form1.TextBox1.value;
alert(txt);
if(a == "False")
{
document.form1.CheckBox1.disabled = false;
}
if (txt != "")
{
alert("coming");
aa.disabled = true;
alert("success");
//document.form1.CheckBox1.disabled = true;
}
else
{
alert("safd");
document.form1.CheckBox1.disabled = false;
}
}
|
|
|
|
|
javascript - checkbox should be enable when input given in the textbox but while page load checkbox is disable
k.sampath kumar
|
|
|
|
|
|
java script checkbox
k.sampath kumar
|
|
|
|
|
What is reason of posting same message multiple time ? Or you want increase number of count in this way . If yes then its wrong forum for you !!!!
|
|
|
|
|
Whats the Problem u r facing ???
|
|
|
|
|
check box is not enable - tat is the problem we r facing
|
|
|
|
|
Hi! I guess this is quite simple for some of you guys out there, but I am stuck whole morning with this issue. I do have a gridview control, and I have a button which will select the row where the checkbox is existing. After the gridview is selected, when the button is selected I want to put all the data in a strings, and play with that. Any help? Thx ahead, Laziale
|
|
|
|
|
Can you show your piece of code?
Cheers!!
Brij
|
|
|
|
|
<asp:GridView ID="gridviewClass" runat="server" AutoGenerateColumns="False">
<Columns>
<asp:BoundField HeaderText="Class Name" DataField="Class_Name"/>
<asp:BoundField HeaderText="Type" DataField="Type" />
<asp:BoundField HeaderText="Members Attending" DataField="MembersAttending" />
<asp:BoundField HeaderText="Staff" DataField="Staff" />
<asp:BoundField HeaderText="Date/Time" DataField="DateSelected" />
<asp:BoundField HeaderText="Explanation" DataField="Explanation" />
<asp:TemplateField>
<ItemTemplate>
<asp:CheckBox runat="server" ID="checkBoxSelect" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView> <br />
<asp:Button ID="ButtonEdit" runat="server" Text="Edit Class" />
I haven't do any coding for the ButtonEdit_Click event, cause there I am stuck and I don't know how to get the selected row with checkbox. Thx for helping me out...
|
|
|
|
|
Every Row has a checkbox Right?Can you provide your requirement in detail.
Are you hiding checkbox sometimes based on some conditions? or anything else?
Cheers!!
Brij
|
|
|
|
|
ok...here is where I am stuck now. I declared a gridviewClass.AutoGenerateSelectButton = true in the Page_Load method, now how I can get the text from each field from the selectedrow and put them in a string?
I tried with string test = ((TextBox)gridviewClass.SelectedRow.FindControl("Type")).Text; where 'Type' is the datafield what is attached to the asp:BoundField from the gridview control, but I am getting a NullReferenceException: Object reference not set to an instance of an object. Please someone out there help me. Thx ahead, Laziale
|
|
|
|
|
I solved!!!! for someone else who might get this problem:
I used this: string test = gridview1.SelectedRow.Cells[i].Text;
have a nice day!!!!
|
|
|
|