|
To handle nested tags, you have to do repetitive removals.
Make a pattern that matches an html tag with it's end tag and no html tags between them, only text. Use that to remove the innermost tags in the text. Then repeat until there is no tags left.
---
single minded; short sighted; long gone;
|
|
|
|
|
|
|
Hello..I have been taken on a project where entire website is launched as a asp.net project with vb language. When i was given ftp access, i could only find all .aspx files and only few of them had coding files on ftp site. Its compiled .dll and .pdb are present in bin. Now they want me to make some modifications to the site. But when i downloaded all the files present on ftp of that site, i found some class files missing as well there is no solution file to open up the project in visual studio project. Now is there a way that i can work on this project to make small changes to the website without a solution file and few class files missing..so that i can recompile the project and put that .dll into ftp site..hope you understood my problem..
|
|
|
|
|
this solution is applicable if the .net frame work is 2.0.
for visual studio 2005 or for asp.net 2.0 projects their is no need for a solution file, select open website from the file menu and the web application will be opened for you. one more thing if you are not having enough code behind files you cannot modify the application check that they have written inline coding for them.
just rebuild after modification and publish that in the ftp site, you have provision for that in visual studio 2005.
cheers
asithangae
|
|
|
|
|
hi All
I am working a long a project has been done with testenvironment web service.
problem with that i have used the namespace in all the pages.
like suppose.
com.wstest.serviceprover.classname1 _obj=new com.wstest.serviceprover.classname1();
com.wstest.serviceprover is the remote provider.
now i have to switch to the live environment
what will be way to do it.
Thanks in advance.
Srinandan
|
|
|
|
|
The only way I know how to fix something like that is to do a mass search and replace.
NOTE I would suggest NOT putting what environment you are in, in the namespace of your classes. It leads to bad problems like this.
Ben
|
|
|
|
|
thanks for help
is there another way to handle this situation from the web.config.
another thing when a web service is use in the new one project how should it handle by web.config so i can change the only the web service testenvironment namespace to live invironment in the web.config.
i want to set it like connection string whenever need we can change it the connectin string as the key always fix the key .
if any way to handle like this please reply asap.
thanks
srinandan..
|
|
|
|
|
I have been working on a way in asp.net 2.0 to do this. I am having a little trouble with the new Connectionstring section. I will let you know if I get it working. If you are using asp.net 1.1 there aren't a lot of options, since the configuration stuff is pretty locked down. Sorry I couldn't be more helpful.
Ben
|
|
|
|
|
Hi Kubben
Thanks for reply.
this project is developing with asp.net2.0. but trouble with earlier problem yet. i have not find any soltion other than find n replace. if you get any solution pls.
thanks
Srinandan..
|
|
|
|
|
Hey Srinandan,
I figured it out. I am going to post an article as soon as I get time to write it. Just wanted to let you know
Ben
|
|
|
|
|
thanks Ben
pls let me know when you send this article.
Regards
Srinandan
|
|
|
|
|
|
thanks Ben
i will try it. if any problem then i will contact you.
Regard
Srinandan..
|
|
|
|
|
hi friends
can we add datagrid to a placeholder control at runtime in asp.net.
regards
saravanan
|
|
|
|
|
In the Page_load event of the aspx file you can add code like:
DataGrid dg = new DataGrid();
DataTable dt = new DataTable("Test");
dt.Columns.Add("col1");
dg.DataSource = dt.DefaultView;
dg.DataBind();
plh1.Controls.Add(dg);
Assuming you want a single column with col1 in it and hour placeholder control is named plh1
Hope that helps.
Ben
|
|
|
|
|
Hi,
Can anybody has an idea of how do we make the entire row of a grid selectable ie once he moves over a row the row color should change and onclick the corresponding row should be selected and datagrid selectedindexchanged event be fired.
|
|
|
|
|
|
Please be more specific.How do i set onmouseover and onclick event to each row. How can the onclick event trigger the selectionchanged event.
|
|
|
|
|
Hi Guys,
I'm facing a problem in serializing a class object in VB.Net. In this case, the
class contains two public properties and an arraylist . Class structure and Code for
serialization are given below. It serializes only the public properties, not the
arraylist. It throws a "System.InvalidOperationException..The type Photos was not
expected. Use the XmlInclude or SoapInclude attribute to specify types that are not
known statically". I have no idea about where to include these attributes... Pls
help..
<br />
'Class Definition<br />
<br />
<Serializable()> _<br />
Public Class SitePhotos<br />
Private _Outdoordesc As String<br />
Public Property Outdoordesc() As String<br />
Get<br />
Return _Outdoordesc<br />
End Get<br />
Set(ByVal value As String)<br />
_Outdoordesc = value<br />
End Set<br />
End Property<br />
<br />
Private _ShelterEntrance As String<br />
Public Property ShelterEntrance() As String<br />
Get<br />
Return _ShelterEntrance<br />
End Get<br />
Set(ByVal value As String)<br />
_ShelterEntrance = value<br />
End Set<br />
End Property<br />
<br />
'Arraylist to store photo descriptions<br />
<br />
Public _PhotoList As New System.Collections.ArrayList<br />
<br />
Public Sub AddPhoto(ByVal photoObj As Photos)<br />
_PhotoList.Add(photoObj)<br />
End Sub<br />
<br />
Public Sub RemovePhoto(ByVal range As String)<br />
Dim _pht As Photos<br />
'Dim i As Integer<br />
<br />
<br />
For Each _pht In _PhotoList<br />
<br />
If _pht.posRange = range Then<br />
_PhotoList.RemoveAt(_PhotoList.IndexOf(_pht))<br />
End If<br />
<br />
Next<br />
<br />
End Sub<br />
<br />
<br />
Public ReadOnly Property PhotoList() As ArrayList<br />
Get<br />
Return _PhotoList<br />
End Get<br />
End Property<br />
<br />
End Class<br />
<br />
'Structure of each photo description<br />
Public Structure Photos<br />
Public Pos As Integer<br />
Public Desc As String<br />
Public posRange As String<br />
End Structure<br />
<br />
<br />
<br />
'Code for serialization<br />
<br />
Dim extraTypes(0) As Type<br />
<br />
extraTypes(0) = GetType(SitePhotos)<br />
<br />
Dim xSerializer As XmlSerializer = New<br />
XmlSerializer(GetType(GeneralSiteInfo.SitePhotos), extraTypes)<br />
<br />
Dim xWriter As StringWriter = New StringWriter()<br />
<br />
' Since the serialization can exception, we'll encase it in a try/catch<br />
' mechanism, so we can report the error properly<br />
<br />
Try<br />
xSerializer.Serialize(xWriter, objPhotos)<br />
<br />
'xmlSitePhotos is a hidden control to which i can store value. <br />
<br />
_xmlSitePhotos.Value = xWriter.ToString()<br />
<br />
Catch ex As Exception<br />
<br />
MsgBox(ex.ToString())<br />
'MsgBox("Could not serialize Site Photos", MsgBoxStyle.Critical, "Error<br />
Saving Site Photos")<br />
<br />
End Try<br />
<br />
xWriter.Close()<br />
<br />
thanks,
Sebastian
-- modified at 13:09 Friday 9th February, 2007
|
|
|
|
|
Hi all,
I want to create a TextBox or a editable Dropdownlist which lists all employee name when i type the first letter and shows the names starting with that letter. Is there a control provided by .NET.
Note: The names are populated from the database.
How do i achieve this.Help!!!its urgent
|
|
|
|
|
check out the AjaxControlToolkit, it has something similar to this.
|
|
|
|
|
you can copy data to arraylist sort it and put back to control
or sort the data at database level by using in your sql query - ORDER BY [field name].
|
|
|
|
|
Someone here already implemented valid W3C Xhtml pages, using Microsoft ASP.Net Ajax?
Engaged in learning of English grammar
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.(John 3:16)
|
|
|
|
|