Ramesh S 129 Posting Pro

You are using a SELECT statement to fetch records from database.

But you have specified that the OdbcCommand.CommandType is StoredProcedure which is wrong. It should be Text type. Your code should look like as

protected void Page_Load(object sender, EventArgs e)
        {
            String constring = "Driver={MySQL ODBC 5.1 Driver};server=localhost;uid=root;database=db_dcii;port=3306";
             DataTable dt = new DataTable();
             OdbcConnection connection = new OdbcConnection(constring);  
         try  
         {  
   
             connection.Open();              
             OdbcCommand sqlCmd = new OdbcCommand();  
             sqlCmd.Connection = connection;  
             [B]sqlCmd.CommandType = CommandType.Text;  [/B]             sqlCmd.CommandText = "Select * from login";  
             OdbcDataAdapter sqlDa = new OdbcDataAdapter(sqlCmd);  
             sqlDa.Fill(dt);  
             if (dt.Rows.Count > 0)  
             {  
                 GridView1.DataSource = dt;
                 GridView1.DataBind();  
             }  
         }  
         catch (Exception ex)  
         {  
             string msg = "Fetch Error:";  
             msg += ex.Message;  
               
         }  
         finally  
         {  
             connection.Close();  
         }  
        }

Also put a break point at dt.Rows.Count to see if it returns any records.

Ramesh S 129 Posting Pro

i am confused abt it.. features are of 8-10 line..

You mean that each product has 8-10 lines of text describing the features of it.

I assume that you are displaying product details such as product id, name, price, image in a GridView/DataList control.

You can display the product features in a separate field in the same GridView/DataList control if it has few lines of text.

Or you can display the feature in a separate page or in a popup window. This would be better if the no. of lines of text for product feature increases or has some formatted text in the future. It depends on the client requirement.

Ramesh S 129 Posting Pro

Are you talking about creating web setup project for your asp.net site?

If yes, visit this link.

Ramesh S 129 Posting Pro

Look into this link.

Ramesh S 129 Posting Pro

The TextBox, Button controls should have same ValidationGroup. If you are using ValidationSummary, then you need to specifiy the ValidationGroup for it.

For your requirement, TBDate to use btn1 should have a ValidationGroup. TBRangeFrom, TBRangeTo and btn2 should have another ValidationGroup.

Ramesh S 129 Posting Pro

Apart from ASP.NET calendar control, you can also try Ajax Calender Extender that can be attached to any ASP.NET TextBox control.

Try this link.

Ramesh S 129 Posting Pro

Try this.

Dim procID As Integer
  procID = Shell("control.exe timedate.cpl", AppWinStyle.NormalFocus)
Ramesh S 129 Posting Pro

You can do it using PageMethods feature of Ajax in ASP.NET.

Refer this link to have more details on PageMethods in ASP.NET

http://www.asp.net/ajax/documentation/live/Tutorials/ExposingWebServicesToAJAXTutorial.aspx

Call a PageMethod in the onblur javascript event of textbox.


Also refer this.

Ramesh S 129 Posting Pro
Ramesh S 129 Posting Pro

Try the following code.

Create the a module 'Module1' and use the following code.

Module Module1
    Private Print_Image As Image
    Declare Auto Function BitBlt Lib "GDI32.DLL" ( _
                  ByVal hdcDest As IntPtr, _
                  ByVal nXDest As Integer, _
                  ByVal nYDest As Integer, _
                  ByVal nWidth As Integer, _
                  ByVal nHeight As Integer, _
                  ByVal hdcSrc As IntPtr, _
                  ByVal nXSrc As Integer, _
                  ByVal nYSrc As Integer, _
                  ByVal dwRop As Int32) As Boolean

    Private WithEvents PrintDocument1 As New Printing.PrintDocument()

    Public Sub doPrint(ByVal frm As Form)
        'We make the form look pritty befor its picture  
        Application.DoEvents()
        frm.Refresh()
        Application.DoEvents()
        'Get a Graphics Object from the form 
        Dim FormG As Graphics = frm.CreateGraphics
        'Create a bitmap from that graphics 
        Dim i As New Bitmap(frm.Width, frm.Height, FormG)
        'Create a Graphics object in memory from that bitmap 
        Dim memG As Graphics = Graphics.FromImage(i)
        'get the IntPtr's of the graphics 
        Dim HDC1 As IntPtr = FormG.GetHdc
        Dim HDC2 As IntPtr = memG.GetHdc
        'get the picture 
        BitBlt(HDC2, 0, 0, frm.ClientRectangle.Width, _
        frm.ClientRectangle.Height, HDC1, 0, 0, 13369376)
        'Clone the bitmap so we can dispose this one 
        Print_Image = i.Clone()
        'Clean Up 
        FormG.ReleaseHdc(HDC1)
        memG.ReleaseHdc(HDC2)
        FormG.Dispose()
        memG.Dispose()
        i.Dispose()
        'Show the PrintDialog 
        Dim PrintDialog1 As PrintDialog = New PrintDialog()

        PrintDialog1.Document = PrintDocument1
        Dim r As DialogResult = PrintDialog1.ShowDialog
        If r = DialogResult.OK Then
            'Print the document 
            PrintDocument1.Print()
        End If
    End Sub


    Private Sub PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
        Dim formGraphics As Graphics = e.Graphics
        e.Graphics.DrawImage(Print_Image, New System.Drawing.PointF(0, 0))
        e.HasMorePages = False
    End Sub …
Ramesh S 129 Posting Pro

Hi san_crazy,

CAPTCHA stands for Completely Automated Public Turing Test to Tell Computers and Humans Apart.

It is one of the most popular technique used to prevent computer programs from sending automated requests to Web servers especially to prevent spam attacks.

Google, Hotmail, PayPal, Yahoo and a number of blog sites have employed this technique.

You can store the text in database, generate the image based on that text and compare it with user input.

Refer these links:
http://www.codeproject.com/KB/aspnet/CaptchaImage.aspx
http://www.codeproject.com/KB/custom-controls/CaptchaNET_2.aspx
http://msdn.microsoft.com/en-us/library/ms972952.aspx
http://www.codeproject.com/KB/custom-controls/CaptchaControl.aspx

You can

Ramesh S 129 Posting Pro

Why are you trying to connect with tempdb.

The tempdb is system database and is used to hold the following: Temporary user objects that are explicitly created, such as: global or local temporary tables, temporary stored procedures, table variables, or cursors.

Create your own database and connect your asp.net application with it.

You can find the logins associated with your SQL server instance using SQL Server Management Studio. It will be displayed under Server Name->Security->Logins.

You can also retrieve the user login details using the following SELECT statement from 'master' database.

SELECT * FROM SYSLOGINS
Ramesh S 129 Posting Pro

Hi thilinam,

Post your connection string details.

It seems that your connection string uses Windows Authentication.

When you run your web application using file system in Visual Studio, It will connect using your NT account so that you may be able to connect with database (if your connection string uses Windows Authentication). If run your application from IIS, it will use ASPNET account. Therefore your application cannot connect with database with ASPNET account.

Try to use SQL authentication to connect with database. For example,

<connectionStrings>
 <add name="ConnectionString"  connectionString="Server=YourServerName;Database=YourDatabaseName;User Id=SomeSQLUserId;Password=SomePassword" providerName="System.Data.SqlClient"/>
</connectionStrings>
Ramesh S 129 Posting Pro

CHECK constraint is not available in the CREATE TABLE statement for Access 2007 database.

Instead, you can define validation rule using Design View.

Ramesh S 129 Posting Pro

IE does not support 'disabled' option in ListBox and Comboboxes.
The ListBox is actually rendered as <SELECT> html element and the ListItem is rendered as <option> element at run time in browsers.


From this thread, the following statements can be used to disable an item in ListBox

ListItem item1 = ListBox1.Items.FindByValue("CC");
    item1.Attributes.Add("disabled", "");

or you can do it like

ListBox1.Items.FindByValue("DD").Attributes.Add("disabled", "disabled");

Please note that above code will work only in FireFox and will not work in IE.

You need to find alternate way to do this.

You can see a third part components in this link: http://demos.telerik.com/aspnet-ajax/listbox/examples/clientside/addremovedisable/defaultcs.aspx

But this component renders the list as <LI> elements which gives you a ListBox effect.

Also have a look at these links.

http://www.lattimore.id.au/2005/07/01/select-option-disabled-and-the-javascript-solution/
http://elmicoxcodes.blogspot.com/2007/05/activating-option-disabled-in-ie.html
http://stikiflem.wordpress.com/2008/09/01/disable-combobox-items-in-ie/

Ramesh S 129 Posting Pro

I have checked your code.

It seems that you are trying to change the background color using javascript(using clickdate).

As I said in your previous post, SelectedDayStyle will take care of changing the BackColor when you click on a date.

Also your code generates script error in clickdate function at run time. It will also prevent changing the color.

I would suggest not to use bothe javascript funtions and SelectedDayStyle property. Use either one.

Ramesh S 129 Posting Pro

Assume that the SendSMS method is defined as a method in 'YourSMSClass'. You can call that method as below

Dim objSMS As YourSMSClass = New YourSMSClass 
 objSMS.SendSMS ()

Here replace 'YourSMSClass ' with your SMS class name.

Ramesh S 129 Posting Pro

The Login control has built-in 'Remember Me' feature. It will take care of remembering cookies. See the RememberMeSet property of Login control.

When the RememberMeSet property is true, the authentication cookie sent to the user's computer is set to expire in 50 years, making it a persistent cookie that will be used when the user next visits the Web site

Ramesh S 129 Posting Pro

Is there any error displayed in your browser?

It seems to be working for me.

Could you post the entire code of your page ? so that somebody can undestand the issue and provide you a solution.

Ramesh S 129 Posting Pro

I have checked your code.

Actually it does not disable enter key in TextArea. It disable enter key only in Textbox field. But you didn't use any textboxes in your code.


I have changed your code to disable enter key in first text area(field1) only.

<html>
<head>
    <title>The Title Of Your Page Goes Here!</title>
</head>
<body>

    <script language="javascript" type="text/javascript">

        function checkCR(evt) {

            var evt = (evt) ? evt : ((event) ? event : null);
            var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
            if ((evt.keyCode == 13) && (node.type == "textarea") && (node.name == "field1"))
 {
                return false;
            }
        }
        document.onkeypress = checkCR;
    </script>

    <p>
        <center>
            <form action="" method="post">
            Enter Your Number<br>
            <textarea cols="40" rows="5" name="field1" wrap="physical"></textarea><br>
            Enter Your Message<br />
            <textarea cols="40" rows="5" name="field2" wrap="physical"></textarea>
            <input type="submit" value="Send it!">
            <input type="reset" value="Clear it!" />
            </form>
        </center>
    </p>
</body>
</html>
Ramesh S 129 Posting Pro

You can set the styles using SelectedDayStyle property.

<asp:Calendar ID="Calendar1" runat="server">
            <SelectedDayStyle BackColor="#CC3399" BorderColor="#FF0066" />
        </asp:Calendar>
Ramesh S 129 Posting Pro

You have mentioned SenderClass in the @Page directive in both addentry.aspx and verify.aspx.

Remove it from verify.aspx.

Also you are redirecting from addentry.aspx(from Verify() method) to verify.aspx using Response.Redirect. Therefore the following line will throw InvalidCastException error. Use Server.Transfer to avoid that error.

I have changed your code to address the above issues.

addentry.aspx

<%@ Page Language="VB" ClassName="SenderClass" %>

<script runat="server">

    ' Readonly property for first name
    Public ReadOnly Property FName() As String
        Get
            Return FirstName.Text
        End Get
    End Property

    ' Readonly property for last name
    Public ReadOnly Property LName() As String
        Get
            Return LastName.Text
        End Get
    End Property
   
    ' Readonly property for gender
    Public ReadOnly Property GenderOption() As String
        Get
            Return Gender.Text
        End Get
    End Property

    ' Readonly property for age
    Public ReadOnly Property AgeOption() As String
        Get
            Return Age.Text
        End Get
    End Property
 
    ' Readonly property for e-mail
    Public ReadOnly Property EmailOption() As String
        Get
            Return Email.Text
        End Get
    End Property
    
    'Event to transfer page control to Verify.aspx
    Sub Page_Transfer(ByVal sender As Object, ByVal e As EventArgs)
        Server.Transfer("Verify.aspx")
    End Sub
    </script>
    
<%@ Import Namespace="System.IO" %>
<html>

<script runat="server">
    
    Sub Verify(ByVal Sender As Object, _
      ByVal B As EventArgs)
        Dim GBPeople As String
        GBPeople = _
            "gbpeople.txt"
        My.Computer.FileSystem.WriteAllText(GBPeople, _
           FirstName.Text & "<br>", True)
        My.Computer.FileSystem.WriteAllText(GBPeople, _
           LastName.Text & "<br>", True)
        My.Computer.FileSystem.WriteAllText(GBPeople, _
           Gender.SelectedItem.Text & "<br>", True)
        My.Computer.FileSystem.WriteAllText(GBPeople, _
           Email.Text & "<br><br>", True)
        
        'Response.Redirect("Verify.aspx")
        Server.Transfer("Verify.aspx")
    End Sub
    </script>
    <head><title></title></head>
<body>
<h1> Sign Our Guestbook</h1>
<form id="Form1" runat="server">
First Name: <br />
<asp:TextBox id="FirstName" runat="server" /><br />
Last …
twilitegxa commented: Exactly what I needed! +2
Ramesh S 129 Posting Pro

Refer this link. http://forums.asp.net/p/899295/978972.aspx#978972

It clearly tells about when the change events will occur in the LoginView control with sample scenario. Though the thread discuss about LoginView control in the beta 2 version, there is no much difference between beta 2 and current version(RTM) of LoginView ViewChange events.

You can then change your code accordingly based on your requirement .

Ramesh S 129 Posting Pro
Ramesh S 129 Posting Pro

First learn .NET basics using MSDN documentation, tutorials and books.
Once you have some idea about .NET classes, try to use them in sample applications.

Since you are working in a software company, you can get access to some real world application.

Look into the arichitecture of that application(s), coding standard and also see relationships between the user interface, business and data access layers.

Ramesh S 129 Posting Pro

I have changed your code to store and retrieve the values from Session.

<!-- UserForm.aspx -->
<%@ Page Language="VB" ClassName="SenderClass" %>

<script runat="server">
	' Readonly property for name
	Public ReadOnly Property Name() As String
		Get
			Return USerName.Text
		End Get
	End Property

	'Readonly Property for phone
	Public ReadOnly Property Phone() As String
		Get
			Return UserPhone.Text
		End Get
	End Property

	'Event to transfer page control to Result.aspx
	Sub Page_Transfer(sender As Object, e As EventArgs)
		Server.Transfer("Result.aspx")
    End Sub
    
    
   Sub Page_load(ByVal obj As Object, ByVal e As EventArgs)
        
        If Not IsPostBack Then
            UserName.Text = Session("Name")
            UserPhone.Text = Session("Phone")
        End If
        
    End Sub

</script>

<html>
<head>
</head>
<body>
	<form id="Form1" runat="server">
		User Name: 
		<asp:TextBox ID="UserName" runat="server" />
		Phone: 
		<asp:TextBox ID="UserPhone" runat="server" /><br>
		<asp:Button ID="Button1" Text="Submit" OnClick="Page_Transfer"
			runat="server" />
	</form>
</body>
</html>
<!-- Result.aspx -->
<%@ Page Language="VB" %>
<%@ Reference Page="UserForm.aspx" %>

<script runat="server">
    Dim result As SenderClass

	Sub Page_load(obj as Object, e as EventArgs)
		Dim content As String

		If Not IsPostBack Then
			result = CType(Context.Handler, SenderClass)
			content = "Name: " + result.Name + "<br>" _
				+ "Phone: " + result.Phone
            Label1.Text = content
            
            Session("Name") = result.Name
            Session("Phone") = result.Phone
            
            
       End If
    End Sub
    Sub Cancel_Click(ByVal sender As Object, ByVal e As EventArgs)
        Server.Transfer("UserForm.aspx")
    End Sub

</script>
<html>
<head>
</head>
<body>
<h1>Summary:</h1>
	<i><form id="Form1" runat="server">
		<asp:Label id="Label1" runat="server" /></i><br /><br />
    <asp:Button ID="Confirm" runat="server" Text="Confirm" 
            PostBackUrl="default.aspx" />
		&nbsp;
    <asp:Button ID="Cancel" runat="server" Text="Cancel" OnClick="Cancel_Click"/></form>
</body>
</html>
twilitegxa commented: Exactly what I needed! +2
Ramesh S 129 Posting Pro

Session timeout is the amount of time, in minutes, allowed between requests before the ASP.NET session-state provider terminates the session.

It means that, if you set the session timeout for 20 minutes, the session wil be timed out if your browse makes a request on or after 21st mintue (from the last postback/submit).

Also if you close the browser before 20 minutes from the last postback, actually the session timeout will occur after 20 minutes from the last postback.

You can store variables/business objects in Session and retrive it among different pages of your web application.

Ramesh S 129 Posting Pro

You need to import System.Data.SqlClient namespace in order to recognize the SqlConnection, SqlCommand and SqlDataReader etc objects.

Ramesh S 129 Posting Pro

MSDN Documentation says...

The ViewChanged event is only raised if the login status for a user changes during a postback to the page. The ViewChanged event will not be raised if a user logs in using the Login control, or if the user logs out using the LoginStatus control. The ViewChanged event will also not occur if a user is logged in or out followed by a redirect.

As mentioned by you, the ViewChanged event will not occur when you logs-in and therefore nothing will be displayed in the Label in the LoggedInTemplate.

Ramesh S 129 Posting Pro

First you need to create controls dynamically in Page_Load or Page_Init events. Then only the values entered in those controls will be retained between postback. You can get reference of the control using Page.FindControl method. For example,

TextBox txt1 = (TextBox)Page.FindControl("TextBox1");
        string strValue = txt1.Text;

The container controls such as Page, Panel and PlaceHolder etc where you add controls dynamically will have FindControl method which helps to search the naming container for a server control with the specified id parameter.

Ramesh S 129 Posting Pro

If you redirect from the form page to another page, the values in the form page will be lost. If you want to persist the values betweeb page redirections, you need to store it in Session.

Altenatively you can also use the cross-page posting feature to get the values of the previous page.

In your scenario, you are contenating the values in Label control in Result.aspx.

If you use cross page posting there, you can only get the value of Label in the form page again. Then you need to parse the values from the Label and display it in UserForm.aspx. Therefore you can display the values in separate label controls in result page. It will help you to get values from those labels separately during cross page posting.

Also you can consider storing and retriving values from Session.

Ramesh S 129 Posting Pro

Try to use Menu.FindItem method to search a menu item.

Assume that a menu has the following structure
Home->Music->Classical
Home->Music->Rock

Here Music has two sub menu items.

To remove the 'Classical' sub menu item from 'Music', use the following code

String valuePath1 = "Home/Music";
        MenuItem musicMenuItem = Menu1.FindItem(valuePath1);
        String valuePath2 = "Home/Music/Classical";
        MenuItem item = Menu1.FindItem(valuePath2);
        musicMenuItem.ChildItems.Remove(item);
Ramesh S 129 Posting Pro

1. Store the information about Selected/Expanded Node in Session.
2. On Page load event, extend the appropriat node after binding

Also visit this link.

A solution is given in the above link. But the tree node collection are stored in the Session. You can check if it addresses you problem.

Ramesh S 129 Posting Pro

1. Create template columns to display textboxes and CheckBoxes in the GridView.
2. If you bind the GridView with a DataTable which is filled with records from a database, check if the DataTable has any rows. If it has no rows, add an empty record to the DataTable and then bind it with GridView. Note that the DataTable does not have constrains like AllowDBNull set to true before adding an empty row.

Ramesh S 129 Posting Pro

Hi, need help on coding.

I know I can do this:

Create Table New_Table
as (Select * from Old_Table)
where 1=2

Yes. The above method does not include the relationships/index/keys.

You just generate CREATE script using SQL Server Management Studio and change table name and constraint names accordingly and execute it.

Ramesh S 129 Posting Pro

You can get the values of the controls from the previous page using a feature called Cross Page Posting.

Refer this link. Cross-Page Posting in ASP.NET Web Pages

Otherwise you need to store the values in Session and retrieve it in the form page when Cancel is clicked.

Ramesh S 129 Posting Pro

Try DIV or Panel controls to enclose your GridView control.
Actually the Panel control is rendered as DIV tag at run time.

You can hide/show a DIV using javascript.

Ramesh S 129 Posting Pro

Basically an aspx page will have controls like buttons and textboxes associated with them. Also the page will have a class file associated with it to handle the events related to the page.

If you want to create an aspx page dynamically, you cannot maintain the page alignment, controls and events related to the page. And also you cannot create an instance of a web page and dispaly it just like button control.

Although somewhat you can manage to create an aspx page dymaically using StreamWriter classes but it is not adviceable.

Ramesh S 129 Posting Pro

Spelling mistake in the variable declaration 'string fielPath'.

Change line 16 in your code as below

string filePath = " !/UploadImages/" + upImage.FileName;
Ramesh S 129 Posting Pro

Try this.

.aspx page

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="TestPage3.aspx.vb" Inherits="TestPage3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="Form1" runat="server">
    <asp:DropDownList ID="dd" runat="server" AutoPostBack="True" />
    <br />
    <asp:Label ID="lbl1" runat="server" />
    <br />
    <div id="divParagraph" runat="server">
    </div>
    </form>
</body>
</html>

VB Codebehind

Partial Class TestPage3
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not Page.IsPostBack Then
            Dim mycountries As New Hashtable
            mycountries.Add("G", "Grooming")
            mycountries.Add("H", "Health")
            mycountries.Add("F", "Feeding")
            mycountries.Add("E", "Exercise")
            mycountries.Add("S", "Species")
            dd.DataSource = mycountries
            dd.DataValueField = "Key"
            dd.DataTextField = "Value"
            dd.DataBind()
        End If

    End Sub

    Protected Sub dd_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles dd.SelectedIndexChanged
        lbl1.Text = "Your favorite country is: " & dd.SelectedItem.Text

        Dim optio As String = dd.SelectedItem.Text
        Select Case optio
            Case "Grooming"
                divParagraph.InnerText = "Write your paragraph for the option 'Grooming'"
            Case "Health"
                divParagraph.InnerText = "Write your paragraph for the option 'Health'"
            Case "Feeding"
                divParagraph.InnerText = "Write your paragraph for the option 'Feeding'"
            Case "Exercise"
                divParagraph.InnerText = "Write your paragraph for the option 'Exercise'"
            Case "Species"
                divParagraph.InnerText = "Write your paragraph for the option 'Species'"
            Case Else
                divParagraph.InnerText = String.Empty
        End Select

    End Sub
End Class
Ramesh S 129 Posting Pro

The automatic sorting feature will work only if you bind the GridView with DataSource controls like SqlDataSource and ObjectDataSource. These controls automatically take care binding data with GridView. Therefore the sorting feature also handled automatically by them.

If you bind the GridView with a DataSet , then you need to call DataBind() explicitly method to bind the data source . Therefore you need to write the code to provide sorting feature.

Ramesh S 129 Posting Pro

You are only denying access to the user 'muru'. It means that users other than 'muru' can access the application anonymously.

If you want to prevent the users to access the FrmWelcom or other pages without login to the system, your web.config should be as below

<authorization>
     <allow users="sonia"/>
     <allow users="soni"/>
     <deny users="muru"/>
     <deny users="?"/>
</authorization>

The '?' in deny element prevents anonymous access to the resources.

Also the set the second argument in the statement FormsAuthentication.RedirectFromLoginPage to false.

FormsAuthentication.RedirectFromLoginPage(txtUserName.Text, false);

Setting true will create a durable cookie (one that is saved across browser sessions). Therefore you need to set it as false.

Ramesh S 129 Posting Pro

Use ValidationGroup property.

The ASP.NET controls have a ValidationGroup property that, when set, validates only the validation controls within the specified group when the control triggers a post back to the server.

sknake commented: I always figured there was a better way. Now i know :) +17
Ramesh S 129 Posting Pro

You have to use RegularExpressionValidator to validate a regular expression.

Ramesh S 129 Posting Pro

MembershipUser.LastLoginDate gives details about user's last time visit.

Ramesh S 129 Posting Pro

Yes. If you want to have complete features of IIS7, you may consider to go for Professional, Ultimate editions.

Home Premium is not sufficient for software development related work.

Since you are using IIS7 for your school projects, you can also use Windows 7 RC versions which is freely downloadable from Microsoft site. Try it before but it so that you can have some idea about the features.

Ramesh S 129 Posting Pro

Yes. I should also have told that the customer have better performance with million of records in my post.

Thanks for your reply.

Ramesh S 129 Posting Pro

Hi Snake,

Sorry it should read as 'I believe 37000 to 50000 records are not too much for a table' in my post.

If you read my post, i actually iterated that an SQL table can have more than a million of table.

Sorry again. It is typo error.

Ramesh S 129 Posting Pro

Are you using Vista and IIS 7 to run your web site.

Is there HRESULT is displayed along with error message. If so, post that message. It will be helpful to identify the issue.

Also visit the following links to have some idea about the issue if you are using Vista

http://support.microsoft.com/kb/942055
http://forums.iis.net/t/1153917.aspx

Ramesh S 129 Posting Pro

.asp and .aspx files are processed by web server and rendered as HTML to the browser.

You can use Visual Studio to run .aspx files which will render into HTML content.

Also you can use IIS to configure a web site where you can deploy your aspx/asp files.

To deploy aspx files at IIS, you need to install .NET Framework.