|
god4k wrote:
alert('<%= DateTime.Now.ToString() %>');
god4k wrote:
The problem is the function alert incorrect result.
What is the actaul error?
|
|
|
|
|
god4k wrote: The problem is the function alert incorrect result
If you want to get the time on client machine, use the date object [^]of Javascript.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
I have an ASP.NET website. I want to make a setup project of that, so it can be installed in IIS (Windows Server 2003 o/s) as a Web Site but NOT a Virtual Directory. How to do this?
|
|
|
|
|
DGtech wrote: want to make a setup project of that, so it can be installed in IIS (Windows Server 2003 o/s) as a Web Site but NOT a Virtual Directory.
So you want to create a Web Setup project ?
DGtech wrote: as a Web Site but NOT a Virtual Directory.
I didn't get this point. Can you please clarify me?
|
|
|
|
|
Abhijit Jana wrote: didn't get this point. Can you please clarify me?
In IIS, you have can have several Virtual Directories(web apps) under one Web Site(which is usually wwwroot).
He probably wants to create a new web site folder and put his web application there.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Manas Bhardwaj wrote: He probably wants to create a new web site folder and put his web application there.
Manas, you mean he wants to create web site like DefaultWebSite (By default) under the root ?
|
|
|
|
|
Abhijit Jana wrote: you mean he wants to create web site like DefaultWebSite (By default) under the root
My understanding question says yes
I dont think this is very straight forward to do using Web Setup project. He'll probably need to tweak the vdproj file (which is not very easy to understand) for the IIS metadata.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
First open the IIS from Windows Server 2003 o/s, then click the DefaultWebSite, then click New , here you will see two options create "Web Site" and "Virtual Directory". Now if you create any setup project i.e. Web Setup Project, then while you install the msi you will see that the setup creates a Virtual Directory inside IIS and installs the asp.net website pages there. But i dont want setup project to create Virtual Directory in IIS, I want setup to create a Web Site and places asp.net website pages there. Please let me know, if you still have questions.
|
|
|
|
|
I have a 3 div like starting from div1,div2,div3.div3 is positioned relative,div2 absolute and div1 is nothing means static.the problem is div3 moving out from div1 boundary.any type of help is appriceated.
|
|
|
|
|
Can you give your code ?It'll be helpful to answer
|
|
|
|
|
thank you,for your reference here is my code and most important thing is i have to put div rltbg as relative positioned
body {
font-family:"trebuchet MS", tahoma, verdana, arial, helvetica, sans-serif;
background-color:#FFFF33;
color:#666666;
font-size:.8em;
line-height:160%;
width:760px;
margin:0px auto;
}
#wrapper
{
width:760px;
margin:0px auto;
background-color:#3399FF;
}
#Register
{
background-color:#663366;
width: 535px;
padding: 0px 0px 0px 10px;
margin:20px auto;
}
#smallbg
{
background-color:#00CCCC;
width: 545px;
height: 227px;
padding: 10px 0px 0px 10px;
margin:20px auto;
}
#parent
{
background-color:#00FF66;
width: 545px;
height: 180px;
padding: 10px 0px 0px 10px;
margin:20px auto;
}
#rltbg
{
background-color:#CC66CC;
width: 545px;
height: 107px;
position:relative;
}
<div id="wrapper">1
<div id="Register">2
<div id="smallbg">3
<div id="parent">4
<div id="rltbg">this div should be relative positioned</div>
</div>
</div>
</div>
</div>
|
|
|
|
|
i am using ajax updatepanel
<<asp:Timer ID="Timer1" runat="server" ontick="Timer1_Tick" Interval="3000">
</asp:Timer>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<Triggers>
<asp:AsyncPostBackTrigger ControlID ="Timer1" EventName ="Tick" />
</Triggers>
<ContentTemplate>
<asp:AdRotator ID="AdRotator1" runat="server" Width="170px" Height="170px"/>
</ContentTemplate>
</asp:UpdatePanel>
In my local server its wroking fine, after deploying it into main server i am get this error
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '
can any have idea how to fix this problem
thank you
|
|
|
|
|
Do you have AJAX framework installed in your main server ?
|
|
|
|
|
|
Member 4587679 wrote: i need to check it.
Yes, make sure that you have the Ajax control dll in you site and the IIS ASP.Net version configure proeprly.
|
|
|
|
|
I have migrated from IIS V5.1(Windows XP) to IIS 6.0 (Windows 2003 with all the metabse & all the site content. After browsing one of the applications i am getting the below mentioned error message...
<b>Error Message Index was outside the bounds of the array. </b>
Any help would be highly appreciated....
purvas
|
|
|
|
|
I dont think this is problem of IIS Migration.Please see the stacktrace to check the line of error
|
|
|
|
|
What do YOU think this error message means ?
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.
|
|
|
|
|
hiii
how can i get the column values(int) from database...
this code is not workin:....
while (dr.Read())
{
string dqty = (string)dr["Quantity"];
string qty=Txtproductquantity.Text;
int Q = Convert.ToInt32(dqty) - Convert.ToInt32(qty);
string dtp = (string)dr["TotalPrice"];
string Tp = Txttotalprice.Text;
int tprice = Convert.ToInt32(dtp) - Convert.ToInt32(Tp);
conn.Close();
conn.Open();
sql="Update PurchaseProduct set Quantity=Q,TotalPrice=tprice where ProductId=@id AND ProductCategoryId=@catid";
}
|
|
|
|
|
Did you tried to follow my suggestion, that I have mentioned at your few post back. Please Buy some Beginners .NET book, and start reading.
This is not they way to learn.
|
|
|
|
|
Why don't to try to debug it?Then you will come to know what is actual problem whether data could not read properly or nay else
|
|
|
|
|
That's a poor way of reading from DataReader. Use the type safe accessors like GetInt32 . Here[^] is more information if you are interested.
modified on Saturday, July 11, 2009 1:51 PM
|
|
|
|
|
Hi all,
I want to display path(Path of a word Doucument file) stored in a Table (Sql Server 2005) in FileUpload Control through coding.
Please Help me.
Thanks !
Pankaj
|
|
|
|
|
Pankaj18 wrote: I want to display path(Path of a word Doucument file) stored in a Table (Sql Server 2005) in FileUpload Control through coding.
What does it mean ?
|
|
|
|
|
Perhaps you should read this article[^] and that wil make clear what are properties of FileUpload control.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
|
|
|
|