|
If you want to show the time the page is rendered on the server: DateTime.Now; (in C#)
If you want to show the time passing second by second on the webpage you'll have to go javascript or something like that.
|
|
|
|
|
i want it in vb.net or send me javascript for it becoz i cant find it...
Dipan Patel.
|
|
|
|
|
|
I know that JavaScript lets us add:
ondragenter, ondragover, ondragleave, ondrop
events to normal HTML table td tags. This lets us do highlighting of
table cells/rows, and capture drag & drop events. So to handle
ondrop we can use JavaScript:
this.OnDrop = function(obj) {
obj.parentElement.style.backgroundColor = "white";
var strData = window.event.dataTransfer.getData("text");
this.InsertRow(obj.parentElement.rowIndex, strData);
window.event.cancelBubble = true;
}
The obj is the object that was dropped onto. So obj.parentElement is
the tr element, etc. Does all tr elements implicitly have a rowIndex
member which contains the row number of the table?
What am wondering is how can one add the ondrop="" attribute to a
table which was generated from a DataGrid? If it is not possible
adding JavaScript/DOM attributes to DataGrid's generated tables, then
is there any way to capture these window.events and knowing exactly
which DataGrid table row/cell it was dragged onto?
I was told to look for "DataGrid Overviews" at 4guysfromrolla.com but
could not find anything about it. Not even google.com could help. Is
there no drag and dropping support for ASP.NET datasource tables?
|
|
|
|
|
Can u guide me to do a bulk update into more than one table from getting a single xml ine the form of attribute centric and element centric mapping, Tell the procedure to create the stored procedure itself, now i am having XML as a string to update a table
Reply with Source Pls
Thanks
-
|
|
|
|
|
Hi all,
I want to Subtract 1 day more to assigned date to date variable...
dim dd as date =today
dd=dd-1
But it gives error.
'- operation is not for date'
Please Give some solution....
-- modified at 5:53 Tuesday 9th May, 2006
|
|
|
|
|
try
dd.AddDays(1);
-- modified at 5:39 Tuesday 9th May, 2006
got to say this works in C#, but should be something similar in vb
|
|
|
|
|
Thanks,
But what is procedure if I want to Subtract 1 day from date.
I hope you know this also........
|
|
|
|
|
sounds stupid but it true works:
dd.AddDays(-1);
greetings,
KrIstOfK
|
|
|
|
|
Thanks...Thanks...Thanks a lot to KRISTOK amd APURVA
This is great to meet such inteligent friend.I Will have something more to share with you and I hope you will capable to solve those issues also.
Really Nice.
Thanks And Regards,
Nagraj
-- modified at 6:14 Tuesday 9th May, 2006
|
|
|
|
|
Hi Nagraj,
You can use the same function to subtract the days. Just you have to pass the negative values. For example -1 to subtract one day.
Hope this will solve your problem.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Sorry I haven't seen the answer posted.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Dim dd As Date
dd = Date.Now
Label1.Text = dd.Date.AddDays(1)
|
|
|
|
|
when i m accessing a webservice using a web app built in asp.net 1.1. It is working fine.
Web app and web service has integrated windows authentication. it is working fine.
but when i access this same web service from my asp.net 2.0 app. it is giving error of 401 unauthorized access.
what can be the problem?
|
|
|
|
|
hey guys,
I have another question.
the situation: we get a dynamic DataSet back from a server system. (DataSet ds = bla.getDS();)
the question: is there any way we can use the dynamic DS to generate a report.
From what I've seen it's not that easy to do. most use a DataSet object (xsd) so..
any help if possible?
|
|
|
|
|
Hai..
I use asp.net, i have 2 pages for the webpage, one is parent page and one is child page.When i click the link from the parent page, i need a pop up window for my child page to display the additional information. How i coding ( have sample code for me is better understanding) when i click the link from the parent page, the child page will automatically refresh and display the new information?
|
|
|
|
|
In code behind you can NOT open a popup window (reason: the code is run on the server so the popup window should open on the server, not on the client. So that's not what you want right)
Workaround: You can open a new window by using javascript's window.open('newPage.aspx'); You can control by javascript this window so can close it and re-open it again so the page is refreshed you could say...
Hope this helps you
|
|
|
|
|
The allowPaging property of the GridView is set to true
The Grid is being populated using a dataset and the pages 1,2,... can be seen at the bottom of the gridView.
But when the page 2 is clicked the error is:
"The GridView 'grid' fired event PageIndexChanging which wasn't handled."
What is the solution to this please?
Thanks
|
|
|
|
|
You have to create an event handler in you code behind to handle gridview_pageIndexChanging.
|
|
|
|
|
Hi,
Yes.
The following two lines are inside the grid_PageIndexChanging event of a gridview.
When clicking on say page 2 of the grid, the above event gets fired.
But the grid dissapears.
Can you think of why this is happening please?
Thanks
|
|
|
|
|
OK, can't see those lines, but i guess you're maybe not calling to databind on the grid after changing the index...? Or maybe not persisting the datasource across postbacks...?
|
|
|
|
|
These are the two lines
grid.PageIndex = e.NewPageIndex
grid.DataBind()
Thanks
|
|
|
|
|
I think you will need to set the datasource again as it will not be persisted across postback.
|
|
|
|
|
Hi
I am creating a dynamic treeview from sql database while running the page i get the following error
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 52.
I am writing the small code snipet where the error is occuring
private void GenerateTreeView()
{
SqlConnection con=new SqlConnection("server=server-name;database=pubs;user id=sa;password=sa;" + Server.MapPath("~/data/Tree.sql"));
con.Open();
I dont know what causing it this error.
sasi
|
|
|
|
|
Exactly same function works fine in WIN PROJECT but doesn't work in WEB PROJECT
I mean it works in WEB proj. but I don't get any results.
"areh" is our server where ldap users are defined.
Public Function GetUsers()
Dim de As System.DirectoryServices.DirectoryEntry = New DirectoryEntry("WinNT://areh")
For Each dc As DirectoryEntry In de.Children
If dc.SchemaClassName = "Group" Then
' some code
End If
Next
End Function
Please help
Jerry
|
|
|
|