I would like to create users for ASP.Net page, but I want each user to view different objects on the page. For instance, I want the Admin user to view all three datagrids, but all the other users should only see two datagrids. Where do I start?
BC30451 I get this error. Membership and createStatus are not declared.
The error comes from the following line
Dim newUser As MembershipUser = _Membership.CreateUser(Username.Text, Password.Text, _Email.Text, passwordQuestion, _SecurityAnswer.Text, True, _createStatus)
It says that...
And when I try to open Default.aspx with FireFox, it gives out an error -
XML Parsing Error: not well-formed
Location: file:///D:/cmsbuffet/Default.aspx
Line Number 1, Column 2:<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
-^
Can I create all the files locally? And then send all the files, which could be recreated locally again, but this time on my boss's computer? Can I do it without running on a server?
I would like to save an ASP file .aspx and send it to my boss. He doesn't have the Visual Studio. How do I compress the file, so that it will small enough for me to send it the boss of mine?
It is also connected to a database. How do I create a file, which my boss can open and see the HTML and the SQL coding? and display results in the browser?
I would like to save an ASP file and send it to my boss. He doesn't have the Visual Studio. How do I compress the file, so that it will small enough for me to send it the boss of mine?
The code below suggest to do something with data reader, what can I do with it?
Database db = DatabaseFactory.CreateDatabase();
string query = "Select * from Customers Where CustomerID = @CustomerID";
DBCommandWrapper command = db.GetSqlStringCommandWrapper(query)...
I downloaded DAAB. Found a tutorial. The tutorial uses syntax
try{
}catch(Exception ex){
}
end try
As in Java. But the correct syntax in ASP is
Try
Catch(Exception ex)
trow ex;
End Try
Yet, this does give errors too. Weird. What do I do?
How can I display the content of cmd. Do I use Equals or Contains? Also cmd.parameters.equals is not a string, for example, so what is the correct syntax to display the result of the query on the page?
Here is the code to which I want to add a page.response.write ( Here syntax of the result of...
Also, I found another piece of code. Will it help in my case? Dim command As String
command = "Select ZipcodeID from zipcode where ZipcodeID = @ZipcodeID"
Dim cmd As SqlCommand
cmd = New SqlCommand(command)
cmd.Parameters.AddWithValue("@ZipcodeID"...
mySqlCommand.Parameters.AddWithValue("@OriginalZipCode", TextBoxZipcode.Value)
mySqlCommand.Parameters.AddWithValue("@Distance", distanceTextBox.Value)
Yet, pops another error
My guess is that I need to find a place in the code such that the code will be available for both textboxes...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.