Thea Burger
Posts
-
Datagrid controls -
Creating ASP web application errorsIs FrontPage Server Extensions installed? Have a look at this KB article[^]. HTH, Thea
-
Datagrid with textboxes, and stopping enterSorry, don't know what happened there. Add onkeypress="return(submitForm());" to your asp textbox.
< asp:TextBox id="TextBox2" runat="server" onkeypress="return(submitForm());" >
-
Datagrid with textboxes, and stopping enterAn idea, this is without a datagrid. Add this to your textbox: Then at the top of your page add this:
function submitForm() { if (event.keyCode == 13) { document.all('TextBox3').focus(); return false; } }
HTH, Thea -
SqlDataSource.CancelSelectOnNullParameterI have to second that! I've been playing around with Membership and Profiles - it makes authentication etc so much easier and much faster. The login/logout, CreateNewUser, ChangePassword, etc controls are just amazing - it handles everything basicly automatically!!! The only thing that has given me a headache so far was the SiteMapPath and the Menu. After a while I wasn't sure whether it was a bug or if I was just not setting the correct properties. :-D
-
<TITLE> tag value server sideDon't know of a quick solution, but what you can use is something like a screen scrape, where you get all the html, and then use a regular expression to find the tag. Try <a href="http://www.dotnetjohn.com/articles/articleid93.aspx">this example</a>[<a target=_blank title='New Window' href="http://www.dotnetjohn.com/articles/articleid93.aspx">^</a>]. HTH, Thea </x-turndown>
-
Populating Dropdown ListsJust a suggestion, you probably have a reason for using the recordset. But if you used a dataset with your dropdown list, you could do this:
ddlSelected.DataSource = ds.Tables(0) ddlSelected.DataTextField = ds.Tables(0).Columns("au_lname").ColumnName.ToString() ddlSelected.DataValueField = ds.Tables(0).Columns("au_id").ColumnName.ToString() ddlSelected.DataBind()
:-) Thea -
Any body master in Datagrid please Help me... -
Problems with database connectionsTry adding the 'ECHEVIL-LAPTOP\ASPNET' user account to your database. In Enterprise Manager, open your Sql Server Groups --> open the security folder --> right-click Logins --> New Login --> Browse to your 'ECHEVIL-LAPTOP\ASPNET' and select it. Then on the Database Access tab, select your database which you want to access and check the public and db_datareader roles. HTH, Thea
-
i want an ASP.NET connecting to MS Access using C# codeHave a look at ASP.Net [^]examples. Have Sql examples there, basically all you do is change all the 'sql' to 'oledb'.
using System.Data.OleDb; OleDbConnection myConnection = new OleDbConnection( "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\somepath\mydb.mdb;Jet OLEDB:Database Password=MyDbPassword;"); OleDbCommand myCommand = new OleDbCommand("select * from Authors", myConnection); myConnection.Open(); OleDbDataReader dr = myCommand.ExecuteReader(); ... myConnection.Close();
As for connection strings, have a look at www.connectionstrings.com[^]. HTH, :) -
"HTTP /1.1 500 Server Error" -
Creating db table from DataTableIf I understand you correctly - No. :)
-
Why Server Control ID is changed? -
Configuration ErrorTry this: 1. Go to IIS (Control Panel - Administrative Tools - IIS) 2. Open Default Web Site 3. Right click your sites folder -> properties 4. On Directory tab, click Create and then OK HTH :)
-
Collation name question...ALTER DATABASE DBNAME COLLATE Latin1_General_CI_AS GO
HTH :) -
Close Web Page in FramesetHave you tried top.window.close()?
-
Sql Server does not exists or acces deniedHi Nitin, You don't have to install Sql Client. If I understand correctly you have application1 on your local machine and it connects fine to MSDE db1 on win2003 server. But when you move application1 to win2003 server it does not connect to MSDE db1? If it was the other way around there could be more reasons, but I'm real sorry, I don't have an answer here. :(( I did get this link, maybe it can help you. Good luck, Thea
-
Sql Server does not exists or acces deniedSo is the SQL and the application on different computers? Can you connect to this SQL server from the computer on which the application resides? Let's say through Query Analyzer? Your connection string looks fine. Where does your connection string reside? Web.config? Try connecting to another SQL Server from your application. HTH, Thea
-
Sql Server does not exists or acces deniedYou posted this in the asp.net section as well. Gave you an answer there.
-
Sql Server does not exists or acces deniedHi, It should not be a problem, does you connection string look like this:
data source=MYDEVSERVER;initial catalog=northwind;user id=sa;password=1234dev;Trusted_Connection=False";
HTH, Thea