|
hi,
the rendered output of any asp.net page will contain standard html tags and some script mostly javascript.
since html tags cannot close the window, you have to depend on scripts.
regards
|
|
|
|
|
Its something new way lemme try is it possible to do
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
i want to put one timer in my web page? how can i do that? in one page first i want to display 30 minitues after that i want to count down thil zero. if anybody knows how to do that please tell me?.......
|
|
|
|
|
use javascript setTimeout method to achive this
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
i want to display the time in my webpage and i will reduce from 30 minutues
|
|
|
|
|
use
in aspx page
nn=time in seconds
put nn=5 for every 5 sec refresh.
put this above the form tag
|
|
|
|
|
Hello Everyone,
Manoj Bisht this side. Friends, can anybody let me know how to make compatible a program/Website in Mozilla as it is in Internet Explorer.
Actually i've designed a website in ASP.NET and it's running great in Internet Explorer but not in other browsers like Mozilla.
If anybody know plz let me know as well..........
Here i'm sending the url of my site
http://www.saamsinfology.com
|
|
|
|
|
It seems like you have not written HTML properly...there must be some flaws in it. IE is intelligent and let you run away with that, but Mozilla dont.
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
The problem is the browser compability. IE support some feature which mozila did not.
So use common feature of both browser.
For more information go to www.w3.org.
Also see the documentation of css2 for your problem
|
|
|
|
|
Hi,
I wish to get the "Temporary Internet Files" folder Physical path, without HardCode like below; Is there any method in .Net to retrieve the below said path?
string strTempFldr = "C:\\Documents and Settings\\Jay\\Local Settings\\Temporary Internet Files";
Regards,
Jay
|
|
|
|
|
Hi Jay_se
To retrieve physical path folder for "temporary internet files" use the following code
string strTempFldr = Environment.GetFolderPathEnvironment.SpecialFolder.InternetCache);
|
|
|
|
|
Hi,
Great!! It works fine.
-- modified at 7:07 Tuesday 12th June, 2007
-- modified at 7:08 Tuesday 12th June, 2007
Regards,
Jay
|
|
|
|
|
In the web application i have used pop up pages as search pages.This page have corresponding title when i open the pop up for the first time.After that if i am clicking any of the button in the pop up page, the title of the page goes off.What may be the problem?
|
|
|
|
|
Did you notice about the Pop up Blocker in your Explorer.
Please uncheck the Pop-Up Explorer and try to Open the Pop-Up WIndow.
Regards,
Satips.
|
|
|
|
|
jijobaby wrote: Can you update your profile with your new email address. Because we are getting so many mails from code project to your old email address which was in giwia.
Apurva Kaushal
|
|
|
|
|
I was trying to use personalization property in my project, and it shows the error message "The profile default provider was not found"
Can someone please help me with this. I dont have IIS installed in my system, and I use the development server that comes with vs2005. Does this problem have anything to do with the IIS.
This is the code I used
In web.config file
<system.web>
<profile>
<properties>
<add name="FirstName"/>
<add name ="LastName"/>
<add name="Age"/>
</properties>
</profile>
</system.web>
<authentication mode="Forms"/>
In code behind,
protected void Button1_Click(object sender, EventArgs e)
{
Profile.FirstName = TextBox1.Text;
Profile.LastName = TextBox2.Text;
Profile.Age = TextBox3.Text;
}
try
{
Response.Write(Profile.FirstName.ToString());
}
-- modified at 0:46 Tuesday 12th June, 2007
|
|
|
|
|
|
Hi All,
Here in my application(ASP.NET with C#), I want to call Crystal Report. But how Plz Help
|
|
|
|
|
|
Hi,
Thanx for your reply.But i want to access multiple reports by passing a querystring e.g.
if(Request.QueryString.Equels("L"))
{
CRV.ReportSource = Server.MapPath("New_Reports/deptwiselaptop.rpt");
}
else if(Request.QueryString.Equels("W"))
{
CRV.ReportSource = Server.MapPath("New_Reports/Warranty.rpt");
}
but it gave an error on Request.QueryString.Equels("L")
error msg is->
'System.Collections.Specialized.NameValueCollection' does not contain a definition for 'Equels'
|
|
|
|
|
Hope the Article by LeoSelmani Crystal Report[^] here in CP will Help you.
Regards,
Satips.
|
|
|
|
|
Use the crystal report viewer from the toolbox of the visual studio.
|
|
|
|
|
Hi, I was searching the web for ways to check if a user name is already in existence and I found the following code.
Function DBAuthenticate(ByVal strUsername As String, ByVal strPassword As String) As Integer
Dim bResult As Boolean = False
Dim objConn As New OleDbConnection
Dim strSQL As String
Dim strGoodPassword As String
Dim objCommand As New OleDbCommand
objCommand.Connection = objConn
strSQL = String.Format("SELECT p_w FROM myDB WHERE (email='{0}');", strUsername)
objCommand.CommandText = strSQL
objCommand.CommandType = CommandType.Text
objConn.Open()
strGoodPassword = CType(objCommand.ExecuteScalar, String)
objConn.Close()
If Not strGoodPassword Is Nothing Then
If strGoodPassword = strPassword Then
bResult = True
Else
lblMessage.Text = "Invalid Login!"
lblMessage.Text &= " If you are not a member please click the above link to register."
End If
Else
lblMessage.Text = "Invalid Login!"
lblMessage.Text &= " If you are not a member please click the above link to register."
End If
Return bResult
End Function
I don't understand three lines of the code above. what does the following mean?
Dim objConn As New OleDbConnection(ConfigurationSettings.AppSettings("myDB"))
Also what do the lines below do?
strSQL = String.Format("SELECT p_w FROM myDB WHERE (email='{0}');", strUsername)
strGoodPassword = CType(objCommand.ExecuteScalar, String)
Thank you in advance for your help.
|
|
|
|
|
ASPnoob wrote: Dim objConn As New OleDbConnection(ConfigurationSettings.AppSettings("myDB"))
This line of code instantiates an OleDbConnection. This is a connection to a database such as MS Access. It can be used to query for data, etc.
ASPnoob wrote: strSQL = String.Format("SELECT p_w FROM myDB WHERE (email='{0}');", strUsername)
This ling of code basically creates a string, and assigns the value to strSQL. For example, if strUserName contains the value "you@urdomain.com", the string that will be contained in strSQL will be "SELECT p_w FROM myDB WHERE (email='you@urdomain.com');"
ASPnoob wrote: strGoodPassword = CType(objCommand.ExecuteScalar, String)
OK, this one is a little more complicated. objCommand is an OleDbCommand, which can be used to query, update, delete, insert data to or from a database (using the OleDbConnection assigned to it). In this case, they are selecting a single field (p_w) from the table myDB for a particular email address.
When you use the .ExecuteScalar() method, you basically are indicating that you are only expecting a single value back from whatever query you are executing. So basically the CType will return a String representation of the p_w you are looking up in the table myDB. If none is found, strGoodPassword will be equal to nothing, otherwise, it will be equal to the p_w value stored in the table myDB for the corresponding email address.
I know I probably could've worded that a little better, but hopefully you get the general idea of what is going on now.
HTH.
|
|
|
|
|
ASPnoob wrote: I don't understand three lines of the code above. what does the following mean?
Dim objConn As New OleDbConnection(ConfigurationSettings.AppSettings("myDB"))
There is a Configuration file(web.config in case of web application and App.config in case of Windows application) where we can set the connection string as well as other configuration settings of our .NET solution.This is an XML file.Under the appSettings node the connection string is written with the string variable name myDB .whereever in the project you need to reference the connection string you will get it by
ConfigurationSettings.AppSettings("myDB")
Tirtha
Do not go where the path may lead, go instead where there is no path and leave a trail.
Author: Ralph Waldo Emerson (1803-82), American writer, philosopher, poet, essayist
|
|
|
|