|
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
|
|
|
|
|
you can not call a javascript function from windows application.
regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Why do u need that?
Best Regards
3ala2
|
|
|
|
|
Hi
Actually i am developing i testing tools in which i have read data from html page but the data is coming from javascript function so i can't read the data if i parse the html file .
so i have decided to use MShtml.ddl amd SCDocVw.dll so that by using IHTMLdocumentClass amd InternetBrowserclass to get data
but if you can tell me how to call the javascipt function then it will be easier fro me
Thanks
|
|
|
|
|
Hi, In my app i generated a tablerows dynamically through javascript,after the postback the dynamic rows are vanished.
what i have to do maintain dynamic rows(contain texboxes in each cell)?
After filling the textboxes(html textboxe,i want to pass all the values to the database,
How can i pass these textbox values to server?
Plz give me some idea regarding that?
Advanced Thanks
Srilakshmi.
|
|
|
|
|
srilu nagalla wrote: what i have to do maintain dynamic rows(contain texboxes in each cell)?
You have to recreate them on every postback.
srilu nagalla wrote: After filling the textboxes(html textboxe,i want to pass all the values to the database,
How can i pass these textbox values to server?
If the fields are inside the form that is posted to the server, their values are included in the data that is posted. You can use Request.Form to retrieve the values on the server.
---
b { font-weight: normal; }
|
|
|
|
|
Where are you calling the Javascript to create dynamic textboxes?
The script might not be running after the postback causing the textboxes to vanish.
I still cudnt figure out why are you creating textboxes with Javascript.
Please explain your scenario so that anyone here can help you out or provide a better solution to your problem.
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
_mubashir wrote: Where are you calling the Javascript to create dynamic textboxes?
When i enter in page it contains table heading and one row with textboxes,after i fill boxes and then press "Enter" button then next row will add
_mubashir wrote: I still cudnt figure out why are you creating textboxes with Javascript.
For execution faster i want to add rows dynamically,to remove burden on the server.
Is their any wrong in my view? which is the best one,server side rows creation,client side creation
Which is the faster one? and eaiser one?
|
|
|
|