|
System.Runtime.InteropServices.COMException, Invalid class string
Getting this error when connecting dynamically to crystal reports,
Application is running fine when executed from visual studio 2005,
But when we create the deployment setup to run crystal reports on server,
we are including dll necessary in deployment setup, but certain dll necessary for crystal reports are lacking, that's why crystal reports are not loaded on the server ... plz suggest me for solving
thanks in advance
Debadi Roy
|
|
|
|
|
Hi All
I have two dropdown list in asp.net.
Suppose First dropdown list contains like "month","days" etc
When I select month from first dropdown,I want corresponding value of month like "1 to 12" in second dropdown list.How to write javascript for that?
Means first deopdown' selected index change event in javascript.
Thanks
monika
|
|
|
|
|
Hi
you can do this without javascript also. For that you need to set the 'autopostback' property of the dropdown 'true'. then write the code for displaying coresponding value of the month and assign it to the control.
regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
here is the sample code for it
protected void month_SelectedIndexChanged(object sender, EventArgs)
{
if (month.SelectedValue != null)
{
for (int i = 1; i <= 12; ++i)
value.Items.Add(i.ToString());
}
}
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
First of all create a function then add the following code in it.
var x = 1;
while (x <= 12)
{
add your code for assigning values to drop down list
x++;
}
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
Hi
I have done this.
But how to add x value to dropdownlist using javascript?
I have done like this:
for(i=0;i<=12;i++)
{
Form1.ddl_category.add(i) or Form1.ddl_category.value=i;
}
But i got error.
If u have syntex for that pls give me.
Thanks
monika
|
|
|
|
|
I think u should use html control to add values to ddl.
Regards,
Suresh Dayma
Everything Is Possible!
|
|
|
|
|
Hi All
Ok this is weird. I have a project developed on VWD and when i run / debug it on VWD server (the built in one) the application runs fine without any problems.
Then i deploy this to my web server on another machine and after the first page I get a yellow page error. (shown below). Even deploying it to a local IIS and accessing it from a browser gives the same result.
Any clue as to whats wrong. The application itself seems to be fine based on the simple fact that i can run it from VWD.
Another thing (not related to this though) -- In Visual studio there used to be a function called Debug Process under the Tools menu which you could attach to inetinfo process and debug application as they are being served. This features appears to not be available in VWD, Does anyone know of a similar debugging tool that allows debugging of pages served from IIS as opposed to the standard run with debug mode which allows debugging of pages served from VWD built in server.
Thanks
Anant
Server Error in '/FlashXMLGen' Application.
--------------------------------------------------------------------------------
Error executing child request for GetProperties.aspx.
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.Web.HttpException: Error executing child request for GetProperties.aspx.
Source Error:
Line 26: {
Line 27: //Response.Write(Request["hiddenTextBox"].ToString());
Line 28: Server.Transfer("GetProperties.aspx?GroupID="+GroupID);
Line 29: }
Line 30:
Source File: c:\Inetpub\wwwroot\FlashXMLGen\ProdList.aspx.cs Line: 28
Stack Trace:
[HttpException (0x80004005): Error executing child request for GetProperties.aspx.]
System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3179633
System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +747
System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) +56
System.Web.HttpServerUtility.Transfer(String path) +26
ProdList.Page_Load(Object sender, EventArgs e) in c:\Inetpub\wwwroot\FlashXMLGen\ProdList.aspx.cs:28
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061
|
|
|
|
|
hi,
try it using Response.Rrdirect method
|
|
|
|
|
HI,
i have problem ,i have a webuser control and i use this web user control in my from ,i register it.now my problem is that i wnt to access this control in the code?how can i access this control in my code ???
|
|
|
|
|
<%@ Register Src="MyUserControl.ascx" TagName="MyUserControl" TagPrefix="uc1" %>
use this TagPrefix where you want to use that user control like
|
|
|
|
|
hi,
try to load the user control dynamically like
Dim tempUserControl = Page.LoadControl("2001012601uc.ascx")
so you can able to access its properties and methods etc on your mainpage easily.
but make sure that Option Strict is Off because here we are not using any data type to define the use control.
hope it will help u out.
|
|
|
|
|
Also you can drag and drop from Solution explorer to aspx page if you are using VS 2005
|
|
|
|
|
if i load control the way u told me ,its mean i cant use the Register control tag in the html .tell me plz.
mean i only load the control from the way u told me or not use the register in html
|
|
|
|
|
as sandeep told , you can drag and drop the control on the main page i.e registering the control with html Register tag and next method is what i told you to load the control.
see if you have created one application test with the test.aspx as the web page. which contains the testwebusercontrol.ascx. so you may grag and drop it to test.aspx or you can register it through
dim testControl = Page.Loadcontrol("testwebusercontrol.ascx")
and u will able to access the all the properties, methods etc defined in testwebusercontrol.ascx.vb in both the ways.
|
|
|
|
|
hi,
i register it the way u told me like this
<%@ Register TagPrefix="main_sub" TagName="catagory" src="../User_Control/cmbSubCatagory.ascx"%>
and i load in my page like this
Dim cntrl As UserControl = Page.LoadControl("../User_Control/cmbSubCatagory.ascx")
cntrl.visible=false
it cound not run in a good way and i havnt seen the control.
tell me hw can i overcome this sitution.
|
|
|
|
|
see you first of all define this as
Dim cntrl = Page.LoadControl("../User_Control/cmbSubCatagory.ascx")
ok.
giving u the example to make u bit clear
This the main web page
<%@ Page Language="VB" Inherits="myPage" Src="2001012601.vb" %>
<asp:label id="soonToBeUserControl" runat="server">
Option Strict Off
Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Public Class myPage : Inherits Page
Public soonToBeUserControl As Label
Public Sub Page_Load(Source As Object, E As EventArgs)
soonToBeUserControl.Text = "Test"
End Sub
End Class
this the user control
<%@ Control Inherits="myUserControl" src="2001012601uc.vb" %>
<asp:label runat="server" id="myLabel">
<asp:datagrid runat="server"
="" id="myDataGrid" font-size="x-small" headerstyle-font-bold="True" headerstyle-forecolor="White" headerstyle-backcolor="Brown" alternatingitemstyle-backcolor="Tan">
Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Imports System.Data
Imports System.Data.SqlClient
Public Class myUserControl : Inherits UserControl
Public myDataGrid As DataGrid
Public myLabel As Label
Public Property myProp As String
Get
Return myLabel.Text
End Get
Set
myLabel.Text = Value
End Set
End Property
Public Sub Page_Load(Source As Object, E As EventArgs)
Dim ds As New DataSet
Dim sda As SqlDataAdapter
sda = New SqlDataAdapter("SELECT CompanyName, ContactName, ContactTitle FROM Customers",_
"server=localhost;uid=sa;pwd=;database=Northwind;")
sda.Fill(ds, "Customers")
myDataGrid.DataSource = ds.Tables("Customers")
myDataGrid.DataBind()
End Sub
End Class
then the more things u need to add to the .aspx.vb are
Option Strict Off
Imports System
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls
Public Class myPage : Inherits Page
Public soonToBeUserControl As Label
Public Sub Page_Load(Source As Object, E As EventArgs)
'Dynamically load the user control to the Page's Controls collection
Dim tempUserControl = Page.LoadControl("2001012601uc.ascx")
'Set the user control's myProp value
tempUserControl.myProp = "This property was set in Code Behind"
'Add the user control to the Label's Controls collection
soonToBeUserControl.Controls.Add(tempUserControl)
End Sub
End Class
now u can get easily i think
|
|
|
|
|
in the windows region code of the parent page add the code
<br />
Protected Withevents YourUserControlInstance as uc YourUserControlInstance<br />
'Example<br />
Protected Withevents ucTest1 as uc ucTest<br />
This way u can access it simply
hope this would help
Best Regards
3ala2
|
|
|
|
|
Hi friens
i want to remove control box from the web page.
how can i remove that?
please reply me.
Pathan
|
|
|
|
|
Hi Imran
Which control box are you talking about be more specific
|
|
|
|
|
a control box that is used to minimize,maximize and close on top-left of the form
Pathan
|
|
|
|
|
OK you mean to say Menu bar or address bar yes you can remove it but the problem is you cannot remove the address bar of current application as i know you cannot get object of current browser so you can do one thing
Develope one application which contain only button and msg Onclickbutton event write this code which will call the your other application which you have to open in the browser with no bar write this code in buuton event
SHDocVw.InternetExplorerClass objects = new InternetExplorerClass();
objects.Navigate("http://localhost:3934/TestForForums/Default.aspx", ref empty, ref empty, ref empty, ref empty);
objects.AddressBar = false;
objects.IWebBrowserApp_MenuBar = false;
objects.IWebBrowserApp_StatusBar = false;
objects.IWebBrowserApp_ToolBar = 0;
objects.Visible = true;
|
|
|
|
|
Hi,
I need help for creating Search Option for Combo Box. The search should be like based, Suppose if the user searches for "Basic" system should retrieve "Visual Basic", "basic", "Visual Basic .NET" etc.
Please help me out.
Thanks,
Libran
|
|
|
|
|
Hi.
Try this query string for searching
string str="select * from <tablename> where user like '%" & combo.text & "%'";
Pathan
|
|
|
|
|
Hi All
i have i javscript function in .js file ok now i want to call that javascipt function from my windows application which returns value
|
|
|
|