|
Not sure if this is what you need but it may help...
Create a standard ASPX Timer control with an AJAX update panel.
...
<br />
<asp:ScriptManager ID="ScriptManager1" runat="server" /><br />
<br />
<asp:Timer ID="tmrClock" runat="server" Interval="1000" OnTick="tmrClock_Tick"></asp:Timer><br />
<br />
<asp:UpdatePanel ID="updPnlClock" UpdateMode="Conditional" runat="server"><br />
<Triggers><br />
<asp:AsyncPostBackTrigger ControlID="tmrClock" EventName="Tick" /><br />
</Triggers><br />
<ContentTemplate><br />
<asp:Label ID="lblTime" runat="server" ForeColor="#B22222"></asp:Label><br />
</ContentTemplate><br />
</asp:UpdatePanel><br />
...
Code Behind Page:
Subscribe to the Tick event on the ASP Timer control. This one represents a ticking clock.
protected void tmrClock_Tick(object sender, EventArgs e)
{
lblTime.Text = DateTime.Now.ToLongTimeString();
}
|
|
|
|
|
tina- wrote: I want to set a timer, in my web application.
Use javascript setTimeout[^]. If you have AJAX server extensions installed and got AJAX toolkit DLL, you can try the timer control. It encapsulates the settimeout functionality.
|
|
|
|
|
I have an html page that loads inside an IFRAME. My html has a link to other page if I click it, the new page is loading inside the IFRAME. I want it to open in the page itself (not in new page).
Any Idea please!!
|
|
|
|
|
|
Please use <base target="_self" /> in the head section of callee page.
|
|
|
|
|
Hi All,
I would like to inquire that which would be better in the following scenario; an asp.net user control or a custom control / custom control library:
I needed a property in my basic/primitive asp.net controls such as textbox, drop down lists or buttons, which i could use to assign some category to the control, which in turn i would use for access permissions to my application roles and users.
This property would be similar to the TAG property that was in VB 6 controls.
As we don't have such property in asp.net server controls, i have decided to customize these controls, through User Controls.
But i would like your expert opinions on this approach, whether is should go with User Controls or use asp.net custom controls or an entire different approach.
Kindly advice.
Thanks in advance!
?«««DTA»»»?
|
|
|
|
|
Hi,
Could any body tell me how to fetch data from SP and store in xml file.
after that how to bind this xml file into treeview node.it may be parent/child node.
With Regards
Ashish
|
|
|
|
|
|
Don't worry. It's not three repeaters embedded within each other. Just two. I can databind the first one with out any problem and use it's row_databound event to bind the nested one. My issue is I need to put some code inside the row_databound event of the nested repeater. But how do I do this or register the event up?
Any help on this one greatly appreciated.
Thanks
|
|
|
|
|
Sam Heller wrote: But how do I do this or register the event up?
someobject.someevent += somehandler;
led mike
|
|
|
|
|
Hi
how can I write like %@value% in a stored procedure.
It doesnt work when i put % signs there
thanks!
We are not a Code Charity
|
|
|
|
|
How about ...
SET conLike = '%' + value + '%';
select * from table where field LIKE conLike;
Copy and paste is a design error
|
|
|
|
|
yep just figured that out thanks just couldnt get the right syntax
cheersd!
We are not a Code Charity
|
|
|
|
|
Copy and paste is a design error
|
|
|
|
|
Hi,
In my aspx page, I have 3 tabs. tab1, Ownership, Location.
first tab: tab1 entity shows the fields some x, y, z.
Second tab: Ownership: this owner of the above business may be some xxx company, and person.
Ownership tab display details like the below:
Owner Type: dropdownlist: Person or business
if person is selected take them to the Person.aspx page, there he can add the person details like name,ssn, firstname, lastname, middlename,...
If Business is selected, take them to another page, there he can enter, details regarding the business.
The Ownership may contain up to x number of businesses(each buisness have details), y number of persons(each person have the above details).
Third tab: Location: stores the physical address, mailing address.
Now, I have to define the classes in business layer for the above scenario:
a) tab1 class
b) Defined one class i.e business contain the details of the busienss. Person class having the fields for name, ssn, lastname, middle name.
c) defined class Address: having the fields, properties for street address, city, state, country, zipcode.
They can have multiple businesses, persons, adresses.
Now defined another class like the below:
Class Application //this class is to store the above details of 3 tabs.
{
#region fields
//Tab1 entity
tab1 t;
//Business class entities
Collection<Business> bus;
//Person class entities
Collection<Person> Persons;
//Address tab
Collection<Address> PhysicalAddress;
Collection<Address> MailingAddress;
}
I am using the collection to store the multiple values of the class objects. So In presentation layer I can bind the collection to GridView.
Could anyone specify above approach is good enough? Any other areas I have to take care of?
Thanks in advance.
|
|
|
|
|
I want to show yahoo messenger,rediff bol,window messenger 's login window on my custom web page like http://www.meebo.com have shown it.
|
|
|
|
|
I am doing an ASP .NET application, which is almost complete. I hosted it into IIS server and the pages are accessed from my machine. The other users in intranet can access the pages now. But when anyone is trying to login to the website, the application is throwing an error saying SQL Connection Error
The error is as follows :
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the fact
that under the default settings SQL Server does not allow remote
connections. (provider: SQL Network Interfaces,
error: 25 - Connection string is not valid)
The connection string is declared in Web.Config file and hope it works fine....
Can someone please sort out this issue and help me...
Thanks in advance...
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Is your SQL server on other server ? As the error says, default SQL server doesn't allow remote connection. You can enable this by going into "SQL Server Management Studio". If you have firewall running, add SQL server port to allowed list.
|
|
|
|
|
No firewalls are installed and not running on the other machine from where i am trying to access the Database.
The connection string is some thing like thing :
<add name="myconn" connectionstring="server=192.168.2.54;Initial Catalog=LG;User ID=sa;pwd=sa123" providername="System.Data.SqlClient" />
Is that the correct way of using it....
At times it throws another error saying :
Timeout expired. The timeout period elapsed prior to completion of the
operation or the server is not responding.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: Timeout expired.
The timeout period elapsed prior to completion of the operation or
the server is not responding.
Can anyone please help me...
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
The timeout error message shows because it cant establish the connection and therefore just gives up after 60 seconds or so.
You need to check if remote connection to the server is allowed.
We are not a Code Charity
|
|
|
|
|
Can you specify how can check whether It allows remote connections.
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|
Ok- have you tried to connect from a SQL query browser to this server ?
|
|
|
|
|
Add a gridview to your form and try to bind it at design time.
If there is no error use the same connection string, That is automatically generated.
Copy and paste is a design error
|
|
|
|
|
The pages are working fine in my machine. There are Gridview and other data binded controls in the application. But when accessing from another machine in intranet, it is throwing all these errors. Please Help me
SAJAN A PILLAI
ASP.NET,C#.NET Programmer
BANGALORE
"Winners don't do different things. They do things differently. ...
|
|
|
|
|