|
i add ajax controltool kit in tools. i want to add calender extender for this purpose i need a textbox with an add extender option. i can't find add extender in textbox. i drag and drop the AJAXControlToolkit.dll assembly into the VS 2008 Toolbox it show all toolboxs.
|
|
|
|
|
|
hi,
currently i m working in asp.net 2.0 (web application)
i have a doubt in javascript
i m using...
window.open("login.aspx");
for the above execution, it search the file in the same local directory.
but wherever i m (in any folder, sub-folder), if i execute this line, i have
to come to the ROOT directory and open the login.aspx page.
how to proceed this?
In asp.net there is a statement
Response.Redirect("~/login.aspx");
in javascript window.open() ?????
Thanks in advance,
Karan
|
|
|
|
|
You wrote it like window.open("../login.aspx")
.. is present the one sub drectory,so if you have more than one subdirectory then use .. as much as subdirectory count.
Deepak
Smile a Lots,Its Costs Nothing
|
|
|
|
|
actually i wrote one javascript file, which will process in all pages and finally redirect to LOGIN page of ROOT folder. more number of folders/sub folders are there..
~/ is used to get the root folder path of an application in asp.net.
In javascript????
Suggest me some good idea to proceed with..
Thanks in advance,
Karan
|
|
|
|
|
Hello,
I am a genuine novice with Java. I have written the following code to accept a passed variable and open a window designed to show an enlarged graphic. The window opens but then displays the following error, which seems to indicate that the path is incorrect; however, it is the exact path is used to display the original graphic (which works fine). Here is the error, followed by the code.
The Error:
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /TB_09_Online/~/GearsAds/gears33.png
The Code:
<script type="text/javascript">
function OpenLargeWindow(image)
{
window.open("~/GearsAds/" + image, "", " width=760,height=300,top=200,left=200,scrollbars=0").focus();
}
</script>
<td class="tdr2">
<asp:Image ID="Image13" runat="server" ImageUrl="~/GearsAds/gears33.png" Height="200px" Width="430px" />
<a href="javascript:OpenLargeWindow('gears33.png')">
<asp:Image ID="Image18" runat="server" ImageUrl="~/GearsAds/plus_sign.png" /></a>
</td>
Seems simple enough...I cannot understand why the path is wrong, unless it is a syntax error of some sort. Any Idea's?
Thank You for your help, Pat
|
|
|
|
|
Check with this
window.open("../GearsAds/" + image, "", " width=760,height=300,top=200,left=200,scrollbars=0").focus();
|
|
|
|
|
Good Morning,
Thank you for the reply. Nope....I replaced the tilde with the periods and received the following error:
HTTP Error 404 - Not Found.
Version Information: ASP.NET Development Server 9.0.0.0
It's different, but still missing content. Thanks for the effort. Please feel free to suggest anything else if you should come up an idea.
Best Regards, Pat
|
|
|
|
|
Hi!
if a form looks like below
name: asp:textbox
address: asp:textbox
..
..
I would like to give users of the web application capability of renaming those labels name and address to their own wordings. how is it possible database wise? I also would like to give them flexibility to add another label and another control in the form as well. I tried to design the datbase and am struggling myself. extra label and controls could be hard coded in form and keep hidden until they activate it. my db looked like
user table
userid, orgid, name, address, extra field1, extra field2..extra fieldN
1,1,name,fullname, sydney,null,null..nullN
synonym table
synId, synorgId, syndefaultname, syncustomname, isactive
1,null,name, name,1
1,1,name,fullname,1
1,1,address,address,0
could someone please help me to extend my logic.
|
|
|
|
|
|
Hi,
I am facing a problem running a website. The error msg is as follow:
Server Error in '/xxxxx' Application.
--------------------------------------------------------------------------------
Login failed for user 'xxxxx'.
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: Login failed for user 'xxxxx'.
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): Login failed for user 'xxxxx'.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4846887
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2392
System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +35
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +144
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +342
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
System.Data.SqlClient.SqlConnection.Open() +122
CFECourses.main.Page_Load(Object sender, EventArgs e) in C:\Inetpub\wwwroot\xxxxx\main.aspx.vb:50
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
************************************************************
The connection string in the global.asax is:
Application("DBConnect") = "Server=localhost;uid=xxxxx;pwd=xxxxx;database=xxxxx"
***************************************************************
The error occurs when I run this application in backup server. It works well in the previous webserver. I think the error is in connection string but still don't get idea how to fix. Pls help me!
Do I need to type in the server name or just local host?
modified on Tuesday, August 4, 2009 10:51 PM
|
|
|
|
|
panyaung wrote: Exception Details: System.Data.SqlClient.SqlException: Login failed for user 'cfeuser'.
Here's the gist of your problem. I see that you're using localhost as your database server in your connection string; does the database server on localhost have a user named cfeuser ? Does it have the same password? Hell, is the database even installed there?
Adam Maras | Software Developer
Microsoft Certified Professional Developer
|
|
|
|
|
Yes, I have that user and password. The database is also installed.
Still finding the solution. Thanks for your reply!
|
|
|
|
|
panyaung wrote: The connection string in the global.asax is:
Application("DBConnect") = "Server=localhost;uid=xxxxx;pwd=xxxxx;database=xxxxx"
So, Does your current hosting server and the database server are same?
|
|
|
|
|
Yes, they r on the same machine.
|
|
|
|
|
use the IP address instead of using name
|
|
|
|
|
Is it possible to a asp page trigger a c# application?
(C# application + free web hosting asp page in the same computer)
can the asp page show c# application in the browser?
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
What do you mean by C# application? A stand-alone application written on C#? If yes, you can't show it on a browser.
|
|
|
|
|
no stand alone, stored in dir in free web host
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
I have a login User Control on my masterpage, and many pages one being a Contact Page.
When you are on the Contact page, the button on the Contact page will not fire the RequiredFieldValidators on the Login User Control, which is correct.
However, when you click the button on the Login User control, it will fire the RequiredFieldValidators on the Contact page, which I do not want.
Now I've tried putting them each in different ValidationGroups, and that didn't work.
I also tried removing all the validation fron the User Control and setting the CausesValidation to False, and that didn't work.
As always any replys, will be very much appreciated.
Thanks,
the_smiths.
|
|
|
|
|
Hi,
My ASP.Net project uses DirectorySearcher to do a r/w operation against the Active Directory server instance. I have a stacktrace below of an error that I encounter when my DirectorySearcher instance calls FindAll(). I was wondering if this has got to do with permissions that I may not have to perform this kind of operation. Appreciate any help, thanks.
Server Error in [...]
--------------------------------------------------------------------------------
The specified domain either does not exist or could not be contacted
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.Runtime.InteropServices.COMException: The specified domain either does not exist or could not be contacted
Source Error:
Line 222: SearchResultCollection userList = directorySearcherInstance.FindAll();
Stack Trace:
[COMException (0x8007054b): The specified domain either does not exist or could not be contacted]
System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
System.DirectoryServices.DirectoryEntry.Bind()
System.DirectoryServices.DirectoryEntry.get_AdsObject()
System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
System.DirectoryServices.DirectorySearcher.FindAll()
[...]Global.Session_Start(Object sender, EventArgs e) in [...]\global.asax.cs:46
System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e)
System.Web.SessionState.SessionStateModule.OnStart(EventArgs e)
System.Web.SessionState.SessionStateModule.CompleteAcquireState()
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData)
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
----------------------------------------------------------
Lorem ipsum dolor sit amet.
|
|
|
|
|
Please show use the code block where you created the object of directory entry class.
|
|
|
|
|
Hi all,
Need your suggestions
How should i approach testing functions in a ASP.NET application.
Its not integration testing but a unit testing(functions) But the problem is
It is nearly impossible to isolate a function due to dependencies
Many funcition are expecting other objects like Page Class context, Configuration settings many more complex objects like session context... etc
now how can i test this methods using Nunit framework
how should i initialized these objects ?
should i use mock object concept ?
is Nunit framework appropriate tool for writing the test cases ?
Please suggest
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
modified on Tuesday, August 4, 2009 3:55 PM
|
|
|
|
|
If you write good code, then your business tasks will be isolated from UI, and can be tested.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Thanks Chris for your reply
Thats the problem UI layer is having business rules implemented making quite hard to test the application.
We are going to rewrite the application using MVC architecture but before to that we need to write Nunit test cases for existing application.
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
Check My Blog
|
|
|
|
|