|
Hi
When i am using cross page posting i a getting an error.
Unable to cast object of type 'ASP.Orders_aspx' to type 'ASP.Orders_aspx'.
Most of the time page works cools . This error arise in an irregular manner.In the Previous page i used a linkbutton to do Crosspage posting.
Thanks in advance.
|
|
|
|
|
|
Thanks for your reply.
Mentioned error is showing randomly. Yet i am confused with the context it getting error.
|
|
|
|
|
Can you debug with the Express Edition. I keep getting an error everytime I try to do it. Anyone know of any news groups that have visual studio 2005 pro?
|
|
|
|
|
Hi,
Tell what error u get when u debug.
With Regards
Satips
|
|
|
|
|
It just says server doens't allow debugger in asp.net .
|
|
|
|
|
hi,
I need to open popup window base on already popup Dialog.I m using C#,ASP.NET,JavaScripts for Web Application..
Can any one help me?
Thanks in Advance.
|
|
|
|
|
just use window.open to open another window
Mahendra
|
|
|
|
|
Hi all,
I'm playing around with Microsoft SharePoint (2.0) and I'm going through some examples in the SDK. I'm at a step which describes using Visual Studio .NET to create a new Web application on the SP server side. I've run into a problem which doesn't seem to be very well covered on the net.
Unable to create the web "http://server/_layouts/SPTest". Server error: The folder "_layouts/SPTest" is reserved for use by the Web server. A Web may not be created under this URL.
I'm running Windows XP and attempting to connect to the SP server, which is a separate Windows 2003 machine.
I've had a look at this link as it describes my problem, but in my case I don't get any errors in the event log both on the server and client side. So I'm guessing the solution will be somewhat different.
Has anyone encountered this? How do I solve this problem?
Thanks in advance,
Sam
|
|
|
|
|
I have a receiving form with a dropdownlist bound to an employee table. The list items are filtered to show only active employees. If I go to an old record from years back where the employee is now inactive and no longer in this filtered list an error will be thrown because the value is not in the list.
So far advice given has been don't deactivate employees, don't use dropdownlists, or don't use databinding. Does anyone have any real answers? Preferably, I'd like the dropdownlist to show an empty value instead of crashing. Is it possible to write a control adapter to prevent this behaviour?
|
|
|
|
|
Why cant u write a query like this
string strcmd="select * from emp table where status='active';
DataAdapter da = new DataAdapter(strcmd,con);
DataSet ds = new DataSet()
da.fill(ds,"emp");
ddl.DataSource=ds;
ddl.DataTextField=ds.Tables[0].["ur columnname"];
ddl.DataValueField=ds.Tables[0].["ur columnname"];
So that ur ddl will bind only active employees.
|
|
|
|
|
I have an ASP.NET (C#) website that works perfectly on my local system. When I upload it to my web host it used to work fine, however after some updates i re-uploaded it and got an error 'XML Parsing Error: no element found' (in Firefox only, IE displays a blank screen). The update I did was rather large so I really have no idea where to start, it would be almost as quick to start the website again (it is still in the making). Does anyone have a hint of an idea what to do? =]. I realise I haven't given much information here but I dont know what is causing this error so I don't know what to give. Some general information: using masterpages, each page is inheriting from a single class which in turn inherits from System.Web.UI.Page, every file is using codebehind and I am using an MS Access database.
Here is the URL: http://www.maximusbrood.com/sc/
Any help is much appreciated. Thanks.
FinnG -
|
|
|
|
|
You didn't mentioned about where you are getting that error i mean in STARTUP page or any other.
If startup page
-Make sure that there are no errors in web.config file
-If you are using xml file(loading) in Master page make sure that xml file is well formed.
-If you are using Resource File make sure that it is well formed.
Final Suggestion is you can debug in master page by catching that error line.
|
|
|
|
|
Hello,
I have two tables in an Access database: content and content_localized which are related.
I created a query:
SELECT content_localized.content_html
FROM content INNER JOIN content_localized ON content.content_id = content_localized.content_id
WHERE (((content.content_page)=[@Page]) AND ((content.content_name)=[@Name]) AND ((content_localized.content_culture)=[@Culture]));
I tested it in Microsoft Access and it is working fine.
Then I tried to retrieve its value from my web site but nothing shows up.
I am using the following code:
' Set Connection
Dim connectionString As String = ConfigurationManager.ConnectionStrings(_ConnectionString).ConnectionString
Dim connection As System.Data.IDbConnection = New System.Data.OleDb.OleDbConnection(connectionString)
' Set Command
Dim command As New System.Data.OleDb.OleDbCommand
command.CommandText = "content_SELECT"
command.Connection = connection
command.CommandType = CommandType.StoredProcedure
' Add Parameters
command.Parameters.Add(New OleDb.OleDbParameter("@Culture", _Culture))
command.Parameters.Add(New OleDb.OleDbParameter("@Page", _Page))
command.Parameters.Add(New OleDb.OleDbParameter("@Name", _Name))
' Execute the Command
connection.Open()
Dim contentHtml As OleDb.OleDbDataReader = command.ExecuteReader
If contentHtml.Read Then
Return contentHtml.Item("content_html").ToString()
Else
Return "Error" ***
End If
contentHtml.Close()
connection.Close()
My function returns "Error" from line ***
Does anyone has an idea what might be wrong?
Thank You,
Miguel
|
|
|
|
|
Please share exact error, then may be i can help you. In the meantime
try to change If contentHtml.Read Then to "While contentHtml.Read"
Thanks
|
|
|
|
|
Hello Amit,
That is the point. I don't get any error.
Well, at least I am not seing it.
I also tried with "While..." and I get no returned value.
I tested the query, in Microsoft Access, with the parameters values which I show here and I get one result. However, my function doesn't return anything with those values.
The code I have now is as follows:
Public Function Load()
' Set Connection
Dim connectionString As String = ConfigurationManager.ConnectionStrings(_ConnectionString).ConnectionString
Dim connection As New System.Data.OleDb.OleDbConnection(connectionString)
' Set Command
Dim command As New System.Data.OleDb.OleDbCommand
With command
.CommandText = "EXECUTE content_SELECT"
.Connection = connection
.CommandType = CommandType.Text
End With
' Add Parameters
With command.Parameters
.Add(New OleDb.OleDbParameter("[@Culture]", "pt-PT"))
.Add(New OleDb.OleDbParameter("[@Page]", "Default.aspx"))
.Add(New OleDb.OleDbParameter("[@Name]", "Newsletter"))
End With
' Execute the Command
connection.Open()
Dim contentHtml As OleDb.OleDbDataReader = command.ExecuteReader
If contentHtml.Read Then
Return contentHtml.Item("content_html").ToString()
Else
Return "Not Found"
End If
contentHtml.Close()
connection.Close()
End Function
Any idea of might be going on or a way to try to figure this out?
Thanks,
Miguel
|
|
|
|
|
I am needing to create WebParts for SharePoint Services using VS 2005 Pro. I currently do not have Microsoft.SharePoint.dll on my PC as I am running XP and not server 2003.
My first question is: Is it possible to create webparts for sharepoint services using VS 2005 Pro because all the articles i could find were mentioning using Microsoft.SharePoint.dll with VS 2003.
Secondly, can I create user control (.ascx) and use it in SharePoint Servics?
Any help will be appreciated. Thanks.
|
|
|
|
|
hello
someone can help me
someone know article that help me to make a good data access layer use data access application block
i know how encapsulation this part is very important i wish to learn how encapsulation
encapsulating common functionality so i will reduce the number of lines of code in me DAL
thanks for the time
|
|
|
|
|
|
thank i will be check the article
|
|
|
|
|
I know dynamic HTML is when we create html on fly. Can I say I know DHTML if I am doing some operation in code behind file where I am building some string as below
In Code Behind page
Dim a as string
a= DataSet.Table(0).row + “<Br>” + DataSet.Table(1).row + “<a href=amit.aspx>”
return a
In Html Page
<%=a%>
Please ignore syntax. As I am just trying to understand what terminology is used for above type of operation i.e where i am mixing html and server code?
Amit
Amit
|
|
|
|
|
Amit Kumar G wrote: I know dynamic HTML is when we create html on fly.
No, it's not. DHTML is basically using client scripts (e.g. Javascript) with HTML.
What you are doing is creating HTML code dynamically. That doesn't make the HTML code dynamic.
---
b { font-weight: normal; }
|
|
|
|
|
can you give me some real time example of DHTML.....it would be gr8 help to understand.
Amit
|
|
|
|
|
Typically DHTML is used to make things happen when the user interacts with the web page. Example:
<span onmouseover="this.style.color='#999';" onmouseout="this.style.color='';">Point here</span>
---
b { font-weight: normal; }
|
|
|
|
|
hi
i have 3 textbox in my webform (email,subject,description) and i use sqldatasource and asp.net 2.0 and c# .
how to insert textboxs.text values into my table (comments) with sqldatasource ?
and how to (update,delete) also ??
Please give me a full description with example because i am beginner .
thanks.
|
|
|
|