|
Hi,
I've been all over the internet trying to resolve this issue for a few days now and nothing I do makes a difference. Even what was suggested here, at this site, doesn't work. (Being new to all this is a handicap as well.)
What I'm trying to do is reload the page after an interval.
I get the error at this line: 'function BeginTimeOut()'
Here's the code from the 'site.master' page:
<body>
<form runat="server">
<script type="text/javascript">
var sessionTimeOutValue = "<%= Session.Timeout %>";
var counter = (sessionTimeOutValue * 60) + 1;
var interval;
function BeginTimeOut() {
window.clearInterval(interval);
counter = (sessionTimeOutValue * 60) + 1;
interval = self.setInterval(function () { StartTimeOut() }, 1000);
}
function StartTimeOut() {
counter--;
if (counter == 0) {
window.clearInterval(interval);
window.location.assign("default.aspx");
}
}
</script>
|
|
|
|
|
What line of code causes the error?
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
RyanDev,
At the line "Begin Timeout()"
|
|
|
|
|
No, it won't do that. That is the function declaration. It may be in that function but you have 3 lines. You need to debug this and find out what is null.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
|
Hi all.When I create a new Website project in Visual Studio. IT creat the .mdf file in the project.
I don't know where is the configuation of the the connection string to change it.
I have look at the Web.config but I can't see.
Please help me.I am the beginer.Please....
|
|
|
|
|
When I register a user i see the connectionstring in the webconfig
<add name="ApplicationServices"
="" connectionstring="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providername="System.Data.SqlClient">
But when I hit Login i don't know what table they manage.
If I want to add code to Registratrion.aspx to force user add a department how to do.
Please I am a new users
|
|
|
|
|
To know Connection String to connect Backend to frontend.
right click on your .mdf file ----> go to properties ----> a property window will open (here is a property name connection String where u get your connection String)
new copy this connection string and paste it in web.config file connection String element
|
|
|
|
|
OK, I know the connection string now.When i use login control it use default connection string.How can I Change to tell the login control "Don't connect to this database, connect to my database".
|
|
|
|
|
Hi all. I Use a Visual Studio then File -> New -> Website
(Using C# code)
In the Solution Explore I creat many folder.
MasterPage Folder to hold all MasterPage.
Images Folder to hold all Images
UserControl folder to hold all page related to User such as Login, Registration.....
And the problem is that how to display images in the masterpage,......
Please help me.
|
|
|
|
|
<asp:Image runat="server" ImageUrl="~/images/myimage.jpg" />
|
|
|
|
|
<asp:Image runat="server" ImageUrl="~/images/imagename.jpg" />
or
if you using html element then use
<img src="~/images/imagename.jpg" />
|
|
|
|
|
it is not work if I have 2 master page in the MasterPage folder,
|
|
|
|
|
you can use this:
<asp:Image ID="Image2" runat="server" ImageUrl="/Images/admin.png" />
<asp:Image ID="Image1" runat="server" ImageUrl="/Images/commentBg.png" />
|
|
|
|
|
If your master pages is in MasterPage folder than try this..
<asp:Image runat="server" ImageUrl="../images/imagename.jpg" />
|
|
|
|
|
Can anybody tell me detail about different betwwee ../imgages/myimgage1.png
and ~/images/myimgme1.png
Because now all my images is put in Images folder
At the local is ok but if someone out site access my website the image is not show.
Thanks
|
|
|
|
|
Please help me.
I Upload My Website to http://www.mediafire.com/download/201nlx1a7fuhdwb/RNOC_2016_03_24.rar
Inthis I have too masterpages, Insite for pages if you have logged in and outsite for others.These masterpage is at root.And Insite.master is the copy of outsite.master added something in menu.
The Problem is Default.aspx use outsite.master can show the picture.But Home.aspx use Insite.master can't show the pictures.
Please help me Why?
Outsite.master and Insite.master is almost the same.
Home.aspx and default.aspx is at the same folder and.
|
|
|
|
|
i have a scenario where in i require to create a dynamic grid view in asp.net using c# on the basis of value selected in a drop down list.
to brief it
my project is about asset management
when i select an asset in the drop down list its attributes(for. eg. Make of the asset, model, category etc) should populate in the grid view column1 dynamically plus corresponding text boxes in front of it. please reply urgently m sitting on a project deadline
Thanks in advance..
|
|
|
|
|
Sure.
- Populate the dropdown on page load via list action on your asset controller. Set the text to a descriptor and the selection value to an ID.
- Attach a local JavaScript event handler to the dropdown OnChange that will query your asset controller with the ID of the selected value via AJAX. I'd call it goGetMyStuff() or something, and the controller action can be ActionResult GotYourStuff().
- Populate the table with the values derived from the data returned from your AJAX query.
- Bask in the glory!
Seriously, though, you need to be much, much more specific about where you're stuck, which framework you're using, and what you've tried.
|
|
|
|
|
Hi.
You can do like if you enable the AutoPostBack in the dropdownlist you can put code to fill the textbox objects and Bind the data on gridview dynamically inside its event handler like Dropdown_selectedindexchanged.
hope you make it.
|
|
|
|
|
|
|
Try this..
window.location.href="yourpage.aspx";
|
|
|
|
|
Hi..I'm beginner in asp.net..pls help me..i want create a leave management page ..employee name should be select from dropdown list..selected employees detail come..like reason of live..no of lives..and if user want to see the lives date wise then.from date to todate..between dates all live should com..Saturday and Sunday should not consider and if other than this date employee take a leave that should be considered..
pls help me...
Thanks.. in advance
Sunil K
|
|
|
|
|