|
Hi all,
I am trying to add a pop calender in content page...
guide me or send some code.
thnks in advance
|
|
|
|
|
Have you read the documentation ? What have you tried ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Dear ,I M using vs 2005 thanks............
|
|
|
|
|
So ? Do you have ASP.NET AJAX installed ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Yes, but here there is no radimate caleder control like vs 2008 thanks for reply.....
|
|
|
|
|
Well, to be honest, I have always written my own AJAX code. I don't know what comes with 2005, and what you'd need to write yourself. Perhaps the time has come to do some actual programming instead of just trying to cut and paste together whatever Microsoft writes for you ? Or perhaps you should move to VS2008 ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
I am showing a grid on a page having a list of Orders, which is refreshing automatically without postback. The problem occurs while number of store users are logged in.
Problem is after few miniutes log into that page, grid(table) contents on the page which listing the order is swapping/switching among the users.
When a request send by client-1 to the server, the server sending back response of client-1's request to client-2 and vice-versa.
Code in JS:
function FetchDGContentsxyz(lsUser)
{
var lsFilter=document.getElementById('ddlFilter').value;
var lsSort=document.getElementById('ddlSort').value;
this.requestUrl = "AjaxServer.aspx?Usr="+ encodeURIComponent(lsUser) +"&Ftr=" + encodeURIComponent(lsFilter) + "&Srt="+ encodeURIComponent(lsSort);
//CreateXmlReq();
this.Xml1 = new ActiveXObject("Msxml2.XMLHTTP");
if(Xml1)
{
this.Xml1.open("GET", this.requestUrl, true);
this.Xml1.onreadystatechange = HandleResponse;
this.Xml1.send();
}
}
function HandleResponse()
{
if(this.Xml1.readyState == 4)
{
if(this.Xml1.status == 200)
{
ClearTable();
FillTable(this.Xml1.responseXML.documentElement);
}
else
{
alert("There was a problem retrieving data from the server." );
}
}
}
code in AjaxServer :
If Not IsPostBack Then
UserName = Request("Usr")
Filter = Request("Ftr")
Sort = Request("Srt")
Response.Clear()
If Filter = "All Location" Then
Filter = ""
Else
Filter = " and b.LocNo='" & Filter & "'"
End If
lsSQL = " select row_number() over (order by " & Sort & ")[Sl.], a.orderno [Order No],a.updatedtime [Time], " from order_temp a INNER JOIN Location b ON a.ALocNo = b.LocNo INNER JOIN tbl_OrderStatus c ON a.status = c.STS_Code INNER JOIN customer d ON a.custcode = d.custid LEFT OUTER JOIN driver e ON a.deliveredby = e.driverid LEFT OUTER JOIN tbl_storeTiming f ON a.ALocNo=f.locno and datename(w,a.updatedon)=f.weekday " & _
" where a.alocno in (select locno from Tbl_StoreRights where loginid='" & UserName & "') " lsSQL = lsSQL & Filter & " order by " & Sort
ds = GenDataTable(lsSQL, "Order_temp")
chString = ds.GetXml()
Response.Expires = -1
Response.Clear()
Response.ContentType = "text/xml"
Response.Write(chString)
'Response.Flush()
Response.End()
Else
Response.Clear()
Response.End()
End If
End Sub
|
|
|
|
|
Your code needs to identify the user on the postback, probably with a session variable.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
session variable is used you can the same in session("name")
|
|
|
|
|
hi guys i want to show advertisemnts in to my page...,
my clients giving the advertisements like script,html,images,flash...,
now my probs is suppose in my banner i want to show a advertisemnt...,
for example my banner advertisement file type's are script file and images...,
how to show diff kind of files in the same place with adrotation?
Thanks & Regards,
Member 3879881,
please don't forget to vote on the post
|
|
|
|
|
Actually i a have a treeview with context menu.when user select Add new item from context menu a window open having textbox and button.I want value of Treeview.selectedNode.Text ,in this new window.How can i do this tell me please.
|
|
|
|
|
Are you opening a modal dialog window?
|
|
|
|
|
Hi all,
I have build a website and running it successfuly.
after that i tried to publish(published all ASPX pages and dll's) this project on server.
it also done successfully. but when access a page it is throwing an error like aaa.aspx.cs file not found. this file exists in a folder of my project. in my local machine it is working fine. after publishing i am getting this error.
can any one help me in that how to run this page.
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
Hi, I have datalist which is inside a rounded cornered table. How can I reuse the table for multiple datalists without recreating the table every time..i.e table, tr, td.....
I was thinking about a custom datalist control but I don't know how to do it.
Any help appreciated.
Thank you.
|
|
|
|
|
Albert83 wrote: I have datalist which is inside a rounded cornered table
I think UserControl suits your requirement.Just think about a usercontrol.
|
|
|
|
|
Thanks. But how would I embed a general datalist inside the table? and then reuse it. The datalist id and contents will be different on various pages. The table is the same.
|
|
|
|
|
Make a usercontrol and embed the datalist inside the table.Thats all.Just try.
|
|
|
|
|
Ok. I will try seems to be pretty simple. Thanks.
|
|
|
|
|
I have a grid view, I set the cells' back-color of this grid view by javascript code(on right-mouse-click). When I hit a submit button, the page refreshes and the cells' color becomes white again.
I find a way to save the color of any cell before the refresh of the page.
|
|
|
|
|
You need to use a hidden field, or similar, to pass the value in question back to the code behind, and then write code to restore that value.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I know how to pass values to code behind. but how can I know what cell was clicked? the grid view cell has no position or index property..
|
|
|
|
|
Hi Everybody
i want to upload my website in local server then it showing error this type-
a name was started with an invalid character. error processing resource 'http localhost
how we solve this types of error plz help me.
thanks and regards
vivek
|
|
|
|
|
A better and quick way to troubleshoot such errors are by searching[^].
|
|
|
|