|
Thanks for your reply =)..but unfortunately that didnt solve the problem
my html
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
<br />
<br />
<div class="rightblock">
<span class="style22">Projects</span>
<div class="dashedline">
</div>
<telerik:RadEditor ID="txt_Content" Runat="server" BorderColor="White"
BorderStyle="None" EditModes="Design" Enabled="False"
ToolsFile="~/ToolsFileLimited.xml" Width="95%">
<Content>
</Content>
</telerik:RadEditor>
</div>
</asp:Content>
CSS class
.rightblock
{
border:1px dotted #DBDB79;
padding: 15px;
margin-bottom: 10px;
margin-right: auto;
margin-left: auto;
background: #fffeee;
width:95%;
}
.dashedline
{
border-bottom: 1px dashed #DBCE6A;
padding-top: 10px;
margin-bottom: 10px;
clear:right;
}
thanks again Amandeep for your help
|
|
|
|
|
nicromonicon wrote: <asp:content id="Content3" contentplaceholderid="ContentPlaceHolder2" runat="Server" xmlns:asp="#unknown">
Projects
<telerik:radeditor id="txt_Content" runat="server" bordercolor="White" xmlns:telerik="#unknown">
BorderStyle="None" EditModes="Design" Enabled="False"
ToolsFile="~/ToolsFileLimited.xml" Width="95%">
<content>
CSS class
.rightblock
{
border:1px dotted #DBDB79;
padding: 15px;
margin-bottom: 10px;
margin-right: auto;
margin-left: auto;
background: #fffeee;
width:95%;
}
.dashedline
{
border-bottom: 1px dashed #DBCE6A;
padding-top: 10px;
margin-bottom: 10px;
clear:right;
}
where have u set the height ?
Apurv
A man is but the product of his thoughts. What he thinks, he becomes.
.......Mahatma Gandhi
Be the change you want to see in the world.
.......Mahatma Gandhi
|
|
|
|
|
Hi
Can u please send me the HTML output of the page as i am not getting the controls used by u.
|
|
|
|
|
okay Amandeep here's the code from firefox
http://www.yousendit.com/download/WnBTU2VxeFhreEJMWEE9PQ
|
|
|
|
|
Hi
Style tag o div is as
<br />
style="border-color:White;border-style:None;height:87px;width:100%;"
Make it as
<br />
style="border-color:White;border-style:None;width:100%;"<br />
You can check the code at
http://www.shubhrishtey.com/CodeFromFireFox.htm[^]
|
|
|
|
|
i did it and it worked!
thank you so much Amandeep =)
|
|
|
|
|
you are welcome
|
|
|
|
|
can any one tell me how to show drop down on image click like in site
[^]
on a click of categories arrow
|
|
|
|
|
I think its a div tag with a background image set and then some arrow control placed on top of it.
A dogged, arrogant belief in self and the childlike idealism that comes with not knowing my limits. This is my greatest blessing, my priceless attribute.
|
|
|
|
|
Hello people,
I'm having the following problem:
I have a page where the user can upload a file for some processing. The file could be big (40 MB or more). I am using Rad Upload component and it is working well (with progress bar and all). Now the problem is that I cannot guarantee that all users around the world will have a fast internet connection and it could be possible that the upload time exceeds the timeout of the asp.net session.
I have tried to use an Ajax timer with a code-behind event handler method in order to simulate a "ping". It works but once the upload starts, it stops. I have talked to Telerik about that and they said they have no way of making the upload do a ping.
So now, I'm turning my attention more to the server code. Is there a way that I can keep alive the session in C#? My idea is to launch a thread when the user accesses the section where the upload is. That thread will keep on running with something in it to keep the session alive. And then when the upload completes and the postback is done, I would stop the thread.
I haven't done any testing of this yet. I don't know if a session is kept alive if some code is being executed in it. I would also need to save the thread ID in the viewstate in order to be able to find it in the upload button event handler method.
If anyone has some insight about this problem or maybe another way to solve this issue, I greatly appreciate your help.
Thanks,
Talal
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"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." --Rich Cook
|
|
|
|
|
Try using
1. Keep on updating Session variable during your server calls. To avoid session timeout.
2. Keep your session id in Hidden filed. If session expires then, same can be loaded from that field any time.
3. Increase to session timeout to the Worst case scenario scenario.
|
|
|
|
|
Thank you for replying.
I am trying to avoid increasing any timeout values and since it's the RAD component that is doing the upload in javascript, no server call is made until the upload is done, and this is precisely when it is timing out.
If the session times out, the user is not more logged, I'm using Forms authentication. How would I get back all my Session variables?
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"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." --Rich Cook
|
|
|
|
|
Did you try setting the Server.ScriptTimeout property
or scriptManager.AsyncPostBackTimeout if you are using a updatepanel.
|
|
|
|
|
Thank you for your reply.
It is important for me not to change any timeout values. It's a security requirement.
Any idea if a thread is running on the server, will it keep the session alive or should we do a postback to keep it alive?
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"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." --Rich Cook
|
|
|
|
|
Response will not be held until the thread method is finished.
Even if the server timeout is reached, thread will continue its execution,it wont be clubbed with the page's life cycle execution.
Using a thread might solve your problem,but you should think of many other scenarios like when to dispose your thread,when and where to check the thread status for disposal.
Also keep in mind how many users simultaneously will try to do an upload.
You might end up with serious memory leakage problems.
These things might me costlier than the security requirement you try to maintain.
|
|
|
|
|
Thanks for your analysis. So basically I can try using this thread solution but I should to be careful of what will happen around it. I knew it would have other implications. I need to do a few tests now
Thank you.
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"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." --Rich Cook
|
|
|
|
|
A trick I use to keep the session alive on a particular page is as follows:
Add the following to the body of your page (or add it via RegisterClientScriptBlock in Page_Load in code behind):
<script type='text/javascript'>
function Reconnect(){
var img = new Image(1,1);
img.src = '../common/reconnect.aspx';
}
window.setInterval('Reconnect()',1170000);
// 1170000 = (20 * 60000) - 30000 = 30s short of 20min, the default timeout
</script>
having saved the follwing single line as reconnect.aspx
<%@ OutputCache Location="None" VaryByParam="None" %>
Works for me... the function Reconnect() gets called every 19.5 minutes, effectively pinging the server by calling nrecconect.aspx as the src of a 1x1px image...
Hope this can help you..
|
|
|
|
|
Thanks. I will try that, even though I am not sure it would work.
You see, the problem I have is that Javascript is already running to upload the file and I have an Ajax timer set to postback every 6 sec (just for testing now). As soon as the upload starts, the timer stops working. So I suspect that only one Javascript code (or whatever) is executed and we cannot have multiple "threads" in Javascript executing at the same time.
But I will try out your solution, maybe it would work since the javascript code (in the page) is executed once. I hope it would work
Thank you
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"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." --Rich Cook
|
|
|
|
|
hi friends,
i am ram working on asp.net,c#.now i am going to research on asp.net MVC.
My requirement is how to generate dynamic views dynamically at run time in asp.net mvc.
cheers,
ram.
|
|
|
|
|
Hello!
I´ve got a textbox where the user can write his/her email. I´ve got two validators pointing at this textbox, one asp:RequiredFieldValidator to make sure textbox is not empty and one asp:RegularExpressionValidator to make sure the email adress is correct (tried to use asp:RegularExpressionValidator but couldnt get it to work). My problem is to make the errors from these two validators showing in the same place. Right now it goes something like this:
[textbox for email ]
error1! error2!
thanks!
|
|
|
|
|
You can try setting the Display property to Dynamic .
Example:
<asp:RequiredFieldValidator ID="requiredEmailAddress" runat="server" ControlToValidate="txtEmailAddress" Display="Dynamic" CssClass="SomeClass"></asp:RequiredFieldValidator>
-- If this is a post that has been helpful to you, please vote for it. Thank you!
"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." --Rich Cook
|
|
|
|
|
Just Set the Display="Dynamic" for both the validation control By default it is static. You have to change to to dynamic . You can change i from code behind or from Validation control property itself.
cheers,
Abhijit
CodeProject.Com MVP
|
|
|
|
|
duh thanks alot guys!
|
|
|
|
|
hai,
i am use asp.net.i host my website project in online.but it work slow.
how to reduce loading time in website ? what can i do ? if you know thw answer replay to me............
thank you..
|
|
|
|
|