|
Wow - did you try to research them at *all* ?
AJAX is a methodology that is supported by any web development environment. ATLAS is the old name for ASP.NET AJAX, a library from MS that attempts to create .NET ready controls and methods to simplify AJAX. So, they are the same thing.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I have created a gridView at run time like this:
Dim dgUserGrid As GridView<br />
dgUserGrid = New GridView<br />
dgUserGrid.ID = 5<br />
dgUserGrid.AutoGenerateColumns = False<br />
dgUserGrid.BackColor = Drawing.Color.Brown<br />
dgUserGrid.ForeColor = Drawing.Color.White<br />
dgUserGrid.AllowSorting = True<br />
dgUserGrid.AlternatingRowStyle.BackColor = Drawing.Color.BurlyWood
also added this:
Protected WithEvents dgUserGrid As System.Web.UI.WebControls.GridView
dssave.Tables("dtUsers").Rows.Add()
dssave.Tables("dtUsers").Rows(0)("UserName") = name.Text.Trim
dssave.Tables("dtUsers").Rows(0)("cPassword") = password.Text.Trim
dssave.Tables("dtUsers").Rows(0)("Role") = Role.SelectedItem.Text.Trim
dssave.Tables("dtUsers").Rows(0)("PasswordChanged") = 0
Dim userdetgrid As GridView = GridHolder.FindControl(5)
userdetgrid.DataSource = dssave.Tables("dtUsers")
userdetgrid.DataBind()
this code is working fine but not appropriate.
I want to create boundcolumns at runtime.??????
Thanks and Regards,
|
|
|
|
|
Dim grid As New GridView
Dim b1 As New BoundField
b1.HeaderText = "SerialNo"
b1.DataField = "SerialNo"
grid.Columns.Add(b1)
grid.Columns.Add(b2)
God is always with you.
|
|
|
|
|
hi friend's
i want to create a subdomail programmatically and then when the subdomain request redirect to specific website
for example: i create a SUBDOMAIN.mywebsite.com
wen i request SUBDOMAIN.mywebsite.com my request redirect to www.codeproject.com
thank you
nobody help you...
you have to help you yourself
and this is success way.
|
|
|
|
|
|
i need the code .
any simple example.
code implemeted by vb.net(web app. asp.net)
|
|
|
|
|
This is a joke, right ? Look around you, this site has plenty of examples. In any case, no-one learns anything by getting a full program, you need to buy a book and work through it to ever get above the level that would inspire a question like that.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
HI all,
I want to localize menu control in asp.net 2.0. I have created a master page and menu control has placed on the master page. I bind the menu control with sitemap. I want to make Menu Multilingual. I know multilingual is done by resource file.
How to localize menu control .Please give me some useful link and idea so that I can implement menu control in my web site which supports multilingual.
Regards.
Rajesh
rajesh
|
|
|
|
|
When ever I try to run the attached code I get the following error:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
________________________________________
A name was started with an invalid character. Error processing resource 'http://127.0.0.1/Default.aspx'. Line 1, Position 2
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>
-^
On my site I am able to run ASP.NET 2.0 and on my test server I have IIS and .NET Framework Software Development Kit (SDK) installed. Could some one tell me why I can not get this to work? AS I understand it all I need do is to upload the files and that’s it.
|
|
|
|
|
It looks like ASP.NET isn't registered within IIS, so IIS doesn't know what to do with a request for an ASPX page.
Read this article[^] and it should tell you what to do.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I think I got that error fixed, had to set the type of ASP.NET in my IIS. However I am now getting the following errors:
Event Type: Error
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1088
Date: 11/3/2007
Time: 5:10:06 PM
User: N/A
Computer: LAPPY3
Description:
Failed to execute request because the App-Domain could not be created. Error: 0x80131902
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: None
Event ID: 1073
Date: 11/3/2007
Time: 5:10:06 PM
User: N/A
Computer: LAPPY3
Description:
Failed to initialize the AppDomain:/LM/W3SVC/1/ROOT
Exception: System.Configuration.ConfigurationErrorsException
Message: Exception of type 'System.Configuration.ConfigurationErrorsException' was thrown.
StackTrace: at System.Web.Configuration.ErrorRuntimeConfig.ErrorConfigRecord.System.Configuration.Internal.IInternalConfigRecord.GetLkgSection(String configKey)
at System.Web.Configuration.RuntimeConfigLKG.GetSectionObject(String sectionName)
at System.Web.Configuration.RuntimeConfig.GetSection(String sectionName, Type type, ResultsIndex index)
at System.Web.Configuration.RuntimeConfig.get_HostingEnvironment()
at System.Web.Hosting.HostingEnvironment.StartMonitoringForIdleTimeout()
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Working on trying to solve them, any help you can provide would be welcomed.
|
|
|
|
|
Hi All,
I have created a button at runtime on form load:
Dim btnSave As New Button<br />
btnSave.BackColor = Drawing.Color.Maroon<br />
btnSave.ForeColor = Drawing.Color.White<br />
btnSave.Text = "Save"<br />
ButtonHolder.Controls.Add(btnSave)
I Have also added a code to it as :
Public Sub btnhandler_click(ByVal sender As Object, ByVal e As EventArgs) Handles btnhandler.Click<br />
Response.Write("clicked")<br />
End Sub
but this second event code does not execute when i click on the button.
Reason???
Thanks and Regards,
|
|
|
|
|
You haven't wired up the eventhandler to the Click event of your dynamically-created control. Use the AddHandler[^] statement to do this.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
How do we do that? Like this?
AddHandler btnSave.Click, btnhandler_click(ByVal sender As Object, ByVal e As EventArgs)
this code give me error as "expression expected" by underlining the ByVal
And where do we do that?
I have also added this
Protected WithEvents btnsave As System.Web.UI.WebControls.Button
and modified the below code:
Public Sub btnhandler_click(ByVal sender As Object, ByVal e As EventArgs) Handles btnSave.Click
Response.Write("clicked")
End Sub
Thanks and Regards,
|
|
|
|
|
Dot Net Jantu wrote: How do we do that? Like this?
AddHandler btnSave.Click, btnhandler_click(ByVal sender As Object, ByVal e As EventArgs)
this code give me error as "expression expected" by underlining the ByVal
And where do we do that?
Did you read the article? The sample code shows you how to dynamically assign an event handler to an event. You're code doesn't look anything like that in the article so it's not surprising that it doesn't work. I suggest that you implement your code in line with the article instead of just making up something that isn't even syntactically correct.
Dot Net Jantu wrote: Public Sub btnhandler_click(ByVal sender As Object, ByVal e As EventArgs) Handles btnSave.Click
Response.Write("clicked")
End Sub
The Handles keyword is unnecessary if the event handler is only being used for controls that are created dynamically. However, if you have a control called btnSave defined in your ASPX page then you would want to use it.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thanks,
its working now..
I have one more problem, in the page load i have written this
Dim txtname As TextBox<br />
txtname = New TextBox<br />
txtname.AutoPostBack = False<br />
txtname.BackColor = Drawing.Color.AliceBlue<br />
txtname.BorderColor = Drawing.Color.Black<br />
nameHolder.Controls.Add(txtname)
but in the event:
Public Sub btnhandler_click(ByVal sender As Object, ByVal e As EventArgs)
' when i type "txtn" and try for intelisence, it dosent show the control.
End Sub
Regards
Thanks and Regards,
|
|
|
|
|
The variable txtname has been defined locally in another procedure. It doesn't have scope in your event handler procedure so it won't appear in intellisense.
To get a reference to the TextBox control that has raised the event, you need to call FindControl on the control that contains the TextBoxes. You should define some naming convention for each TextBox you dynamically create so that you have a means of obtaining a reference to each one by name.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I am doing it like this:
but its wrong. I didt understand what you wanted to say, please correct me.
dssave.Tables("dtUsers").Rows(0)("UserName") = nameHolder.FindControl(txtname.Text.Trim)
it gives an error.
Object reference not set to an instance of an object.
Thanks and Regards,
|
|
|
|
|
Dot Net Jantu wrote: ssave.Tables("dtUsers").Rows(0)("UserName") = nameHolder.FindControl(txtname.Text.Trim)
it gives an error.
Object reference not set to an instance of an object.
Yes, it will. To know why, you need to read the MSDN documentation to understand how the FindControl method works. Have you done this?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
as per the msdn documentation, I have done this..
Dim name As TextBox = nameHolder.FindControl("txtname")
also I had done this
If (Not name Is Nothing) Then
' Get name's parent.
Dim myControl2 As Control = name.Parent
Response.Write("Parent of the text box is : " & myControl2.ID)
Else
Response.Write("Control not found.....")
End If
and its showing as control not found..
Thanks and Regards,
|
|
|
|
|
Dot Net Jantu wrote: and its showing as control not found..
Have you actually added a control to the Controls collection of nameHolder with the ID 'txtname'?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
if this is what you mean then yes.
Dim txtname As TextBox
txtname = New TextBox
txtname.AutoPostBack = False
txtname.BackColor = Drawing.Color.AliceBlue
txtname.BorderColor = Drawing.Color.Black
nameHolder.Controls.Add(txtname)
Thanks and Regards,
|
|
|
|
|
Dot Net Jantu wrote: Dim txtname As TextBox
txtname = New TextBox
txtname.AutoPostBack = False
txtname.BackColor = Drawing.Color.AliceBlue
txtname.BorderColor = Drawing.Color.Black
nameHolder.Controls.Add(txtname)
The description of the Control.FindControl which you said you had read, is as follows:
Searches the current naming container for a server control with the specified id parameter.
You haven't set the ID property for your control. The fact that you have declared a variable called txtname and set it with a reference to your dynamically created TextBox object is not relevent.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
hey thanks it worked.
I would like to know that do i need to assign a id for the button also?
And one more thing will i have to use that find control method in each and every procedure to retrieve the vbalue of the control?
Thanks and Regards,
|
|
|
|
|
Dot Net Jantu wrote: I would like to know that do i need to assign a id for the button also?
You probably should do. You will need to if you want to locate instances of the Button control calling FindControl on the container object.
Dot Net Jantu wrote: And one more thing will i have to use that find control method in each and every procedure to retrieve the value of the control?
Yes, if you don't already have a reference to one of the controls you will need to call the FindControl method on the container object, passing in its ID to find it.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|