|
i'm doing my final semester project. and i would like to know how to include an asp.net file into another one. like how we import packages in java.
Thank you.
|
|
|
|
|
Don't repost.
For Details of including a file to your project
Get it[^]
Regards,
Satips.
|
|
|
|
|
Hello to every One,
i'm using database in my web form for login and user purpose.. due to some reasons i have to format my pc.
after that when i again re-install sql server 2000 and visual studio7 i'm unable to connecto to the database in the following line:
Protected sqlconnection1 As SqlConnection = New SqlConnection("data source=.;initial catalog=daccrop;persist security info=False;user id=dac1605;pwd=dac1605;workstation id=self;packet size=4096")
Actually i have changed the server and computer name in my new installation i.e from "DAC_147_347" to "garg" and again i don't remember how the authentication was done i.e windows or by sql server login. Following is the modified coding for connecting to database..
Protected sqlconnection1 As SqlConnection = New SqlConnection("data source=GARG;initial catalog=dac1605;integrated security=SSPI;persist security info=False;workstation id=GARG;packet size=4096")
This is still not working..
suggest me how should i know the setting done in sql server and after knowing how should i implement it.
Thank You..
|
|
|
|
|
Are you getting any errormessages? It might give me a clue as to what is going on.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
The Error messages is:
"Sql server i does not exist or access is denied"
|
|
|
|
|
Check if the database exists and also check if you have access. Normally you have administrator access on your local machine using windows logon credentials, so the following connectionstring should work.
"Data Source=localhost;Initial Catalog=dac1605;Integrated Security=SSPI"
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
how to Inclde a file in asp.net
|
|
|
|
|
|
I recommend reading one of the many guides on the web on how to ask intelligent questions. 'How to include a file' may have been an adequate subject, if your main body explained what you mean. Do you want to add a file to a project ? Do you want to include a javascript file in your aspx ? What is it you're asking ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Please be specific in selecting the subject to your question.
Hi is not a suitable subject for your question.
Did you read the guidlines of the forum before posting the question here in the forumn?
Regards,
Satips.
|
|
|
|
|
Just do copy and paste.That's it...
|
|
|
|
|
LOL - brilliant advice.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
what do you expect from a brillant boy
|
|
|
|
|
Some of you might be aware of my plight (http://www.readytogiveup.com[^]) and that site is set up using a Microsoft ASP Starter Kit. Would any of you know a simple fast way that I can allow people to append comments under each page and just let those comments paginate below the pages? If you do would be willing to help me implement that or do it on one page so I can replicate it to the others? I've got so much to do to the site as some bigger companies like SQLServerCentral are wanting to get involved and I really want to get that site styled out so that it's ready to go.
Let me know A) How I would do it and B) if you can help. Obviously A) is the most important.
Thanks,
Rex
|
|
|
|
|
It's pretty simple to create a paged list, using a gridview or other control. Obviously, you need a database on the back end storing the comments, etc. If you want to replicate the functionality, write it as a control, if you want different comments on different pages, add a forumId to your database table, and make it a property of the control.
Let me know if you need any more help with this, I'm happy to put it together for you, if you're not sure how to go about it.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Sounds like a great thing to do in my spare time. Give me one afternoon to come up with a simple extension. Good site btw.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
I have one page in which i put Iframe.
i have one dropwownlist control in iframe and one submit button in page.
also i have one hidden field called h_locale.
Now i want to get the selected value of dropdownlist in hidden field using javascipt on click of submit button.
I am doing following code.Its working fine in IE but i am getting problem in mozila broser.
My javascript code is here
<script language="JavaScript" type="text/javascript"><br />
<!--<br />
function getValues(){<br />
var x=document.getElementById("frame1").Document;<br />
document.getElementById("h_locale").value=x.getElementById("dd_country").value;<br />
}<br />
</script>
Plz help me out.
Thanks in advance
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Instead of document.getElementById try to use document.getElementsByName
and also in
i am not sure.. try this
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
You need to explicitly obtain the value of the selected item; try this:
function getValues(){
var x=document.getElementById("frame1").Document;
var lst = x.getElementById("dd_country");
document.getElementById("h_locale").value=lst.options[lst.selectedIndex].value;
}
cheers
Fred
|
|
|
|
|
I have been developing an ASP.net 2.0 web application that basically has login security. I have been struggling to get this thing to work. On my local machine it works fine, but when I copy the code (including the ASPNETDB.mdf that is in the APP_Data directory) over to a web server, I get to the login screen but when I attempt to login I get an error. Can someone please help me??? The error is listed below:
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
Failed to update database "C:\INETPUB\WWWROOT\APP_DATA\ASPNETDB.MDF" because the database is read-only.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
。
Exception Details: System.Data.SqlClient.SqlException: Failed to update database "C:\INETPUB\WWWROOT\APP_DATA\ASPNETDB.MDF" because the database is read-only.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Failed to update database "C:\INETPUB\WWWROOT\APP_DATA\ASPNETDB.MDF" because the database is read-only.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +857434
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +735046
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +149
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe) +415
System.Data.SqlClient.SqlCommand.ExecuteNonQuery() +135
System.Web.Security.SqlMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) +3612
System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() +305
System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) +105
System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) +453
System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) +149
System.Web.UI.WebControls.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) +17
System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +35
System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) +115
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +163
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.210
|
|
|
|
|
The ASPNETDB.mdf file is not really important, try to delete it off the web server, and see it that helps.
Unless you have used it for your login code, it should not matter.
HTH
|
|
|
|
|
I wish I could delete it, however this file is very important. I stored users' inormation in it. so is there any other way out?
|
|
|
|
|
You can check to see if the file is read only. Maybe you need write access to the directory on the web server?
Another way is to store usernames and passwords in the web.config file, this is an easy way to manage them and you can encrypt them too.
Cheers,
Peter Mead
http://www.petermeadit.net
|
|
|
|
|
the directory "wwwroot" on the web server is read-only, i've tried to change the property but I doesn;t work. Each time I changed it, it automatically turned to "read-only" the next time I brought up the propoty window,.... as to the database file in that directory, is not read-only.......
so.... i still get that error message...
|
|
|
|