|
Satish wrote: How you manage this page.
Don't you ask what he/she meant by "How you manage this page"?
Satish wrote: Webpage containing more than 200 controls means its processing to server everytime page requests
It's very strange. How come "Webpage containing more than 200 controls" means "its processing to server everytime page requests"? No matter how many controls you have in a particular page. If you don't submit anything then there won't be any postback..
|
|
|
|
|
Hi,
I am fillilng a dropdown list which is inside a updatepanel through a button click event. But after clicking the button again to fill the dropdown , only the updateprogress moving icon gets displayed. i think the page hangs.
i am binding 50,000 records . fetching it from database. i tried doing without updatepanel. its working fine. after including updatepanel and updateprogress controls and then clicking the button second time it hangs.
my code
=======
aspx page
========
<asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table id="tbl" runat="server" width="95%" style="border-width:1px; border-color:lightblue; border-style:solid">
<tr>
<td><asp:DropDownList ID="ddlCat" runat="server"></asp:DropDownList>
<%--<asp:TextBox ID="txt" runat="server"></asp:TextBox>--%>
</td>
</tr>
<tr style="height:10px"><td><asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /></td></tr>
</table>
</ContentTemplate>
<%-- <Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click"/>
<asp:PostBackTrigger ControlID="ddlCat" />
</Triggers>--%>
</asp:UpdatePanel>
<asp:UpdateProgress AssociatedUpdatePanelID="UpdatePanel2" ID="UpdateProgress1" runat="server" DisplayAfter="1" Visible="true">
<ProgressTemplate>
<iframe frameborder="0" src="about:blank" style="border:0px;position:absolute;z-index:9;left:0px;top:0px;width:expression(this.offsetParent.scrollWidth);height:expression(this.offsetParent.scrollHeight);filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=75, FinishOpacity=0, Style=0, StartX=0, FinishX=100, StartY=0, FinishY=100);"></iframe>
<div style="position:absolute;z-index:10;left:expression((this.offsetParent.clientWidth/2)-(this.clientWidth/2)+this.offsetParent.scrollLeft);top:expression((this.offsetParent.clientHeight/2)-(this.clientHeight/2)+this.offsetParent.scrollTop);">
<table>
<tr>
<td><img src="Images/loading_animation_liferay.gif" /></td>
<td style="font-family:Tahoma;color:Red">Loading Please Wait...</td>
</tr>
</table>
<br />
</div>
</ProgressTemplate>
</asp:UpdateProgress>
=============
aspx.cs page
============
protected void Button1_Click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection(connectionString);
SqlDataAdapter sqlda = new SqlDataAdapter("select top 50000 * from abc", connectionString);
sqlda.Fill(ds, "cat");
ddlCat.DataSource = ds.Tables["cat"];
ddlCat.DataValueField = "id";
ddlCat.DataTextField = "id";
ddlCat.DataBind();
}
|
|
|
|
|
Hi,
I think its really a very bad idea to bind these many records to Dropdown...
Whats yr purpose to bind to Dropdown ?
You wanna give user selection from these many records ?
Its really bad.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
but even if i reduced it to 5000 records the same thing is happening.
if i reduced it to 1000 records, then it gets filled in a second. but then there is no use of updatepanel and updateprogress controls.i want to fetch many records so i am using updatepanel and updateprogress controls.
|
|
|
|
|
Hi,
There will not be any effect using update panel in that.
But whats the purpose to fetch these much data in DropDown ?
It seem that your idea is really bad.
Thanks,
Sun Rays
To get something you must have to try once.
My Articles
|
|
|
|
|
Hi,
actually, i have got a page. when a user selects a records in a drop down and then he clicks a submit button. after clicking the button the page takes times to process and then it transfers to the next page. before tansfering, the selection page is getting displayed and i dont want the user to click the button again. so i am showing the updateprogress icon till the process gets complete.
Thanks
|
|
|
|
|
hi,
normally i am binding a dropdownlist inside a updatepanel. when i click the button event is fired. it shows updateprogress icon and the dropdownlist is filled. when i click the button second time it takes more time to get filled.
i observed that when i bind few thousands records to the dropdown and click the button for the second time to fill the dropdown it takes much less time. but when i increase the number of records to say above 10000 it does not hang but it takes more time to get filled on the second time when the button is clicked
|
|
|
|
|
I am using server.transfer to take data from one page to the other. I have bunch of text boxes with data and I am transfering to a new page with server.transfer. The problem is I am having a sum textbox in the first page, the contents of which i don't want to transfer. Anybody can help me how to do it..
Raj D
|
|
|
|
|
You put that sum in the Session variable. and get this value at the end...
|
|
|
|
|
is it possible to limit the no of line in asp.net textbox????????
i have the problem on this........
rajan
|
|
|
|
|
rajanandal wrote: is it possible to limit the no of line in asp.net textbox????????
I afraid, you can't.
But you can limit no. of letters using MaxLength property of the TextBox control. And you can use JavaScript to do the job on clientside.
|
|
|
|
|
Testbox size can be limited when its mode is "singleline" while if the the mode is multi line you use RegularExpressionValidator> i have mentioned the the re for the textarea.
<asp:RegularExpressionValidator ID="revMaxDescription" runat="server" ControlToValidate="txtDescription"
ErrorMessage="Test cannot be greater than 100 characters." ValidationExpression="(.|\n){0,100}"/>
|
|
|
|
|
private string ToSentenceCase(Match match)
{
return match.Value[0].ToString().ToUpper() +
match.Value.Substring(1);
}
string text = Regex.Replace(TextBox.Text, @"\w+", ToSentenceCase);
and in return function wat i have to send
|
|
|
|
|
jagadeeshkumar2106 wrote: private string ToSentenceCase(Match match)
{
return match.Value[0].ToString().ToUpper() +
match.Value.Substring(1);
}
string text = Regex.Replace(TextBox.Text, @"\w+", ToSentenceCase);
Private Function ToSentenceCase(ByVal m As Match) As String
Return m.Value(0).ToString().ToUpper() & m.Value.Substring(1)
End Function
Dim text As String = Regex.Replace(TextBox.Text, "\w+", AddressOf ToSentenceCase)
|
|
|
|
|
hi venky it is working fine thanks to u ...how i can covert the text the user what ever he enters into lower case is ti possible with this or any thing there
|
|
|
|
|
|
How do I do this suggestions:
I need to take repeated input from a textbox and load it into a displayed list with a checkbox everytime add item is clicked. the GUI will look something like this. My thought was to load a repeater, but I think persistence will not allow it to work. Any suggestion or experience with this?
I'm using Asp.net 2.0 with C#
Ckbox addeditem 1
Ckbox addeditem 2
Ckbox addeditem 3
Inbut box _______________ add item
|
|
|
|
|
Use static DataTable or DataSet to store the values and load it when you need it.
|
|
|
|
|
hi,
i need to know how to register a dll via INF file - i need it so i could do it when a web page downloads a CAB.
in the CAB there will be a DLL which i want to do like regsvr32 commad does.
this is my INF for now only for registering the DLL:
[Add.Code]
Dialer=Dialer
[Dialer]
RegisterDlls = DialerRegSvr
[DialerUninstall]
UnregisterDlls = DialerRegSvr
[DialerRegSvr]
11,,MyDLL.dll, 1
if i right - click it and try to install it pops a message that sais intallation failed.
how can i do it - and would it install the dll when i will click install to the INF?
thanks,
Samy
|
|
|
|
|
I need to call a javascript function from within an event of the ReorderList control of the AJAXControlToolkit. It appears this is not possible in certain cases.
In particular, I need to call the 'setConfirm()' javascript function from within the ItemReorder event of the ReorderList. So, I have the following javascript at the top of my page:
[code]
function setConfirm() {
needToConfirm = true;
}
[/code]
and inside of the ItemReorder event of the ReorderList I call:
[code]
ScriptManager.RegisterStartupScript(this, this.GetType(), "setConfirm", "setConfirm()", true);
[/code]
The problem is, the javascript is never called in this scenario (I have debugged the application and the RegisterStartupScript is indeed called, it is the javascript function itself that is never called). Strangely, if I place this call inside of the ItemDataBound event (instead of the ItemReorder event), it works perfectly. Unfortunately, that solution simply doesn't work because the javascipt is called on every page load.
Does this make any sense?
|
|
|
|
|
Can someone please check this out for me? I've looked at the markup until I've gone cross-eyed and there is NOTHING wrong with it. Yet it works (well, looks) perfectly fine in IE but its wrong in FF, and this is a first for me.
Can someone help me shed some light on the subject?
Thanks.
here's the link: http://mustafacodes.net/blog.aspx[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
Download BlogEngine.Net[^] instead, and stop the wheel re-invention in its tracks!
"On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.
"I phoned Camelot and they fobbed me off with some story that -6 is higher - not lower - than -8 but I'm not having it."
-Tina Farrell, a 23 year old thicky from Levenshulme, Manchester.
|
|
|
|
|
Its not a matter of re-inventing the wheel. Its more of a "I got inspired to write a new engine and I will be writing an article about it too" kinda thing. And it works like a charm too.
The one and only issue I have is that ONLY on the blog.aspx page it appears clunky and out of shape in FF but perfectly normal in IE.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
"There is no wealth like knowledge, no poverty like ignorance." Ali ibn Abi Talib
"Animadvertistine, ubicumque stes, fumum recta in faciem ferri?"
|
|
|
|
|
hi
how to enlarge an image present in datalist control on mouseover.
|
|
|
|
|
Add a javascript event to handle the mouseover to the control displaying the image
only two letters away from being an asset
|
|
|
|