Saturday, March 31, 2012
Submitting data to sql
this is what I have for my submit button
Me.txtprocess.Text.Insert()
all I am trying to do is when a user puts an entry in and click submit the entry is written over to a sql table.
Thanks in advanceJust do something like...
Dim strSQL As String ' SQL Statement
Dim cmd As New SqlClient.SqlCommand ' SQL Command
Dim strSubject As String ' Subject String
' Set the SQL connection to use for SQL Command
cmd.Connection = New SqlClient.SqlConnection("Persist Security Info=False;server=MyServer;database=MyDB;User ID=sa;Password=MyPassword")
' Add neccessary parameters to the SQL Command
cmd.Parameters.Add("@.MyData", txtMyData.Text)
' SQL UPDATE Statement
strSQL = "INSERT INTO MyTable (MyColumn) Values (MyData)"
' Try to catch any exceptions
Try
' if the SQL Connection is closed, open it
If SqlConn.State = ConnectionState.Closed Then
SqlConn.Open()
End If
' Set the SQL Command SQL Statement
cmd.CommandText = strSQL
' Execute the SQL Insert or Update
cmd.ExecuteNonQuery()
' Catch any exceptions
Catch ex As Exception
' Finally if it excepts or not
Finally
' If the SQL Connection is open, close it
If SqlConn.State = ConnectionState.Open Then
SqlConn.Close()
End If
End Try
Submitting form doesnt update .Text
I have this form that I use, both for adding records and for updating. When submitted, it checks if the Reuqest.Querystring("pid") i set, if not it adds a new record, otherwise it should update the current record (based on pid).
There are no problems if I add a record, but on update, the values in the form doesn't follow.
The basic structure is this:
Sub saveNews(Byval id)
'When I use this on an update, the values in name.Text and pbody.Text aren't the ones entered, but the previous values in the textboxes (or database).
If id <>""Then'Update dbElse'Add new recordEnd IfEnd SubSub btnSave()Call saveNews(Request.Querystring("pid")End SubSub fEditFrm(ByVal id)
'Here I fetch the columns based on id
If objDR.HasRows Then
pbody.Text = objDR("pbody")
name.Text = objDR("name")
date_created.Text = objDR("date_created")
End If
End SubSub Page.Load()'This checks which page you're onSelect Case Request.Querystring("page")Case"addnew" news.SetActiveView(editnews)Case"edit" news.SetActiveView(editnews)Call fEditFrm(Request.QueryString("pid"))'This one fetches the record and populates the textboxesEnd Sub
Is my problem understandable at all?
Thanks you alot!
/MartinI found the problem. Apparently the sub fEditFrm (which populate the form with db entry) executes before the update in saveNews(), so the textboxes reverted to the original values... I added an 'If Not Page.IsPostback' before the Call fEditFrm and it worked.
But then I have another question:
How can you check in which order things are executed? I come from classic ASP and it wasn't too hard to do things like this. Btw, I'm using VWD Express edition.
Enable tracing on the Page...
<%#@. Page Trace="true" TraceMode="SortByTime"%>
Then run the page. At the bottom you will see everything that is going on inside the page.
Thanks!
That was very useful, in Classic ASP I have this subroutine that spits out that info but this was much easier :)
Question though; is it possible to put that trace into a master page so you don't have to edit every single page?
Thanks again!
/Martin
You can enable trace for all pages in the web.config file, which looks something like this:
<configuration><web.config><trace enabled="true" traceMode="SortByTime" localOnly="false" /></web.config></configuration>
Thanks alot! I'll try it as soon as it's possible!
Submitting HTML page data through form.
Iam trying to submit data using form.
I have taken Text area in the form.
I want to submit Html page data(data is something like <Html> <body> hello</body></html>)
through this form.
But it is giving error. How to handle this situation
Server Error in '/webs' Application.
------------------------
A potentially dangerous Request.Form value was detected from the client (ta=" <html><head></head><...").Please read the following:
Request Validation - Preventing Script Attacks
It will show you how you can effectively "turn off" this error. However, youmust take notice of the warnings in red text. Do not just turn off the error, without validating the input yourself.
Hi,
.NET 1.1 has built in protection against script injections through textbox, textareas etc., However, if you are sure that your users won't do the hacking, you can remove this checking functionality by adding the ValidateRequest="false" to the @.Page directive of your aspx page.
If you want this for whole of your application, you can specify the same in the web.config
Hope it helps.
Hello
Thanks for help.
It is working fine.
But While printing the result it is printing like
<html><head></head><body>hello</body></html>
How to handle this situation.
Hi there,
You will have to decode the information before actually bind to a control.
for e.g
Text1.text = Server.htmldecode(dr("myHtml).tostring)
HTH
Thanks to all .
It is running fine.
Wednesday, March 28, 2012
Substring of text...
This is the code I've been trying to use :
Dim logText As String = qWebLog.myDataReader("msgText")
logText = logText.Substring(0, logText.indexOf("."))
logBodyCell.Text = logText & " <a href='?logID=" & qWebLog.myDataReader("ID") _
& "'>Read more ...</a>"
To illustrate : it should put the text in the cell till the first occurence of the dot (the end of the first sentence in other words... Though this code doesn't work, he gives the following error : length cannot be less than zero : paramatername = length.
Though, the text contains a dot ...
Who could help me please?
Regards,
NielsThe text cannot contain a dot if the error is occuring. I would suggest that you do the following:
String logText = qWebLog.myDataReader("msgText");Int IndexOfDot = logText.IndexOf(".");
if (IndexOfDot > -1) {
logText = logText.Substring(0, IndexOfDot);
}
logBodyCell.Text = logText + " <a href='?logID=" + qWebLog.myDataReader("ID") + "'>Read more ...</a>";
Thanks a lot ! That worked ...
But now (sorry for my questioning...) I have the same problem when I type three dots... I tried it the same way :
Dim logText As String = qWebLog.myDataReader("msgText")
Dim IndexOfDot As Integer = logText.IndexOf(".")
Dim IndexOfTripleDot As Integer = logText.IndexOf("...")
If IndexOfDot > -1 Then
logText = logText.Substring(0, IndexOfDot + 1)
logBodyCell.Text = logText & " <a href='?logID=" & qWebLog.myDataReader("ID") _
& "'>Read more ...</a>"
ElseIf IndexOfTripleDot > -1 Then
logText = logText.Substring(0, IndexOfTripleDot + 1)
logBodyCell.Text = logText & " <a href='?logID=" & qWebLog.myDataReader("ID") _
& "'>Read more ...</a>"
Else
logBodyCell.Text = logText & " <a href='?logID=" & qWebLog.myDataReader("ID") _
& "'>Read more ...</a>"
End If
And it still doesn't work...
Sorry for the silly questions ...
Regards and a early happy newyear !
Regards
IndexOfDot will always be greater the -1 if IndexOfTripleDot is greater than -1, therefore the second condition will never be tested. Reverse the order of your if statements.
Also, you have six lines that do exactly the same thing. The following will achieve the same result, but with less lines of code:
Dim logText As String = qWebLog.myDataReader("msgText")Dim IndexOfDot As Integer = logText.IndexOf(".")
Dim IndexOfTripleDot As Integer = logText.IndexOf("...")
If IndexOfTripleDot > -1 Then
logText = logText.Substring(0, IndexOfTripleDot + 1)
ElseIf IndexOfDot > -1 Then
logText = logText.Substring(0, IndexOfDot + 1)
End If
logBodyCell.Text = logText & " <a href='?logID=" & qWebLog.myDataReader("ID") _
& "'>Read more ...</a>"
Monday, March 26, 2012
Suggested means to cope with commas etc.
In a typical 'contact us' type page what is a recommended way to ensure a message text box gets dealt with properly rather than break at comma's etc.
Is it as simple as using server.encodeHTML() on every passed variable? When I do this I still seem to have problems.
GeoffWhy would you break at commas? I don't get the problem.
Sorry. Error was happening when writing a record of the email to a database.
So if I can change my question...
Is there a best-practice' approach to handling commas etc. when writing to database eg:..."insert into myTable message = '" & server.encodeHTML(msg.text) & "'" is the sort of thing that was breaking if a comma existed in the textbox called msg?
Thanks,
Geoff
The commas should not mess it up within the quotes.
If an apostrophe appears within the string ('), then it will close the string and this is what will mess it up.
The best practice is to use Parameters. These will take care of all these issues as well as protect you against SQL injection and a few other problems you may not have noticed yet.
Suggestion for HTML Editor to get past the crappy IDE one
reformatting the text is brain dead (and I am not just talking about the
switching from design to HTML). I am putting in a filter to provide a
gradient background.
Insert the code into the HTML and switch to design. Voila it shows. Back
to HTML and back to design. It is gone. The worst thing is that I can see
no change to the BODY tag. This is beyond reason. Other pages work
(sometimes).
This IDE does not seem to understand that users can be past the IE 3.0
stage. Does MS not provide its developers with up to date tools? It would
seem that QA does not get them.
Lloyd Sheen"Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
news:nUUQb.19242$iLV.10815@.twister01.bloor.is.net. cable.rogers.com:
> Insert the code into the HTML and switch to design. Voila it shows.
> Back to HTML and back to design. It is gone. The worst thing is that I
> can see no change to the BODY tag. This is beyond reason. Other pages
> work (sometimes).
This is "FrontPage". :)
FrontPAge used to be REALLY nasty about this type of stuff. MS has worked
really hard to get rid of this type of stuff.
It might be that the code that you are entering is not completely valid and
is confusing the parser. However the designer is showing it so...
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com
The code is good. I have compared other pages and it works there until I
make any change, even to text. The IDE seems to have some view that it
wants and the designer be dammed.
I have tried the same in FrontPage with no problems. If the IDE is to be
taken seriously then it should help not hinder developers. I keep hearing
wait until the next release. If this is to be MS mantra for the next set of
products then the MS haters will have a case.
Lloyd Sheen
"Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message
news:Xns947BEB74BEA35cpub@.127.0.0.1...
> "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> news:nUUQb.19242$iLV.10815@.twister01.bloor.is.net. cable.rogers.com:
> > Insert the code into the HTML and switch to design. Voila it shows.
> > Back to HTML and back to design. It is gone. The worst thing is that I
> > can see no change to the BODY tag. This is beyond reason. Other pages
> > work (sometimes).
> This is "FrontPage". :)
> FrontPAge used to be REALLY nasty about this type of stuff. MS has worked
> really hard to get rid of this type of stuff.
> It might be that the code that you are entering is not completely valid
and
> is confusing the parser. However the designer is showing it so...
>
> --
> Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> "Programming is an art form that fights back"
>
> ELKNews - Get your free copy at http://www.atozedsoftware.com
When I open the code in Dreamweaver it looks correct. For an expensive
product VS2003 is a real dud in HTML design. I had not done this before but
now I can see why people do not want to use VS as the HTML designer.
Notepad would be better, at least it does not make assumptions about what
the user wants.
Lloyd Sheen
"Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in message
news:ysVQb.19981$iLV.19585@.twister01.bloor.is.net. cable.rogers.com...
> The code is good. I have compared other pages and it works there until I
> make any change, even to text. The IDE seems to have some view that it
> wants and the designer be dammed.
> I have tried the same in FrontPage with no problems. If the IDE is to be
> taken seriously then it should help not hinder developers. I keep hearing
> wait until the next release. If this is to be MS mantra for the next set
of
> products then the MS haters will have a case.
> Lloyd Sheen
>
> "Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message
> news:Xns947BEB74BEA35cpub@.127.0.0.1...
> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> > news:nUUQb.19242$iLV.10815@.twister01.bloor.is.net. cable.rogers.com:
> > > Insert the code into the HTML and switch to design. Voila it shows.
> > > Back to HTML and back to design. It is gone. The worst thing is that
I
> > > can see no change to the BODY tag. This is beyond reason. Other
pages
> > > work (sometimes).
> > This is "FrontPage". :)
> > FrontPAge used to be REALLY nasty about this type of stuff. MS has
worked
> > really hard to get rid of this type of stuff.
> > It might be that the code that you are entering is not completely valid
> and
> > is confusing the parser. However the designer is showing it so...
> > --
> > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> > "Programming is an art form that fights back"
> > ELKNews - Get your free copy at http://www.atozedsoftware.com
"Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
news:ysVQb.19981$iLV.19585@.twister01.bloor.is.net. cable.rogers.com:
> I have tried the same in FrontPage with no problems. If the IDE is to
> be taken seriously then it should help not hinder developers. I keep
For the record - I did not say that. :)
> hearing wait until the next release. If this is to be MS mantra for the
> next set of products then the MS haters will have a case.
Let's just say I have feet on both side of the fence.
VS.net is a HUGE improvement over VS though. To be honest, prior to VS.net,
the IDE was just unusuable. When coming from Delphi (or even VB) it was like
stepping back in time 20 years.
Im not defending the issues you are seeing, but trying to tell you that when
it comes to this type of stuff its taking MS a long time to get their heads
wrapped around it. VS.net IMO is really a "1.1" IDE. For a 1.1, its pretty
darn good.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com
Not to be argumentative but this IDE should have some of the underpinnings
of the IDE's that preceded it. Someone said that the HTML designer came
from FrontPage. Well that product is quite old and should have the kinks
worked out.
I cannot figure out why anyone when QA'ing this product would accept the
formatting that happens (and I have turned off what I can in the Options).
I just moved a DIV and all contained controls were put on one line. Since
the designer does not allow for the adding of all needed information at
times you must go to the HTML view. I see absolutely no reason to reformat.
Especially after I just spent 20 mins making the format what I wanted.
MS this is the worst IDE I have ever seen and I have used VB since 1.0 and
VC since it was C 1.52.
Lloyd Sheen
"Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message
news:Xns947BEF166F90Acpub@.127.0.0.1...
> "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> news:ysVQb.19981$iLV.19585@.twister01.bloor.is.net. cable.rogers.com:
> > I have tried the same in FrontPage with no problems. If the IDE is to
> > be taken seriously then it should help not hinder developers. I keep
> For the record - I did not say that. :)
> > hearing wait until the next release. If this is to be MS mantra for the
> > next set of products then the MS haters will have a case.
> Let's just say I have feet on both side of the fence.
> VS.net is a HUGE improvement over VS though. To be honest, prior to
VS.net,
> the IDE was just unusuable. When coming from Delphi (or even VB) it was
like
> stepping back in time 20 years.
> Im not defending the issues you are seeing, but trying to tell you that
when
> it comes to this type of stuff its taking MS a long time to get their
heads
> wrapped around it. VS.net IMO is really a "1.1" IDE. For a 1.1, its pretty
> darn good.
>
> --
> Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> "Programming is an art form that fights back"
>
> ELKNews - Get your free copy at http://www.atozedsoftware.com
And even more. At present the designer shows the gradient background. Run
the app and it wants to recompile the page. When it shows the code is
changed, the gradient is gone and another strike for this terrible piece of
crap that MS has presented developers with.
This IDE constantly looses buttons, Intelisence, etc. I spend as much time
stopping and starting the IDE just to get past these problems.
Lloyd Sheen
"Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in message
news:COVQb.20263$iLV.834@.twister01.bloor.is.net.ca ble.rogers.com...
> Not to be argumentative but this IDE should have some of the underpinnings
> of the IDE's that preceded it. Someone said that the HTML designer came
> from FrontPage. Well that product is quite old and should have the kinks
> worked out.
> I cannot figure out why anyone when QA'ing this product would accept the
> formatting that happens (and I have turned off what I can in the Options).
> I just moved a DIV and all contained controls were put on one line. Since
> the designer does not allow for the adding of all needed information at
> times you must go to the HTML view. I see absolutely no reason to
reformat.
> Especially after I just spent 20 mins making the format what I wanted.
> MS this is the worst IDE I have ever seen and I have used VB since 1.0 and
> VC since it was C 1.52.
> Lloyd Sheen
> "Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message
> news:Xns947BEF166F90Acpub@.127.0.0.1...
> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> > news:ysVQb.19981$iLV.19585@.twister01.bloor.is.net. cable.rogers.com:
> > > I have tried the same in FrontPage with no problems. If the IDE is to
> > > be taken seriously then it should help not hinder developers. I keep
> > For the record - I did not say that. :)
> > > hearing wait until the next release. If this is to be MS mantra for
the
> > > next set of products then the MS haters will have a case.
> > Let's just say I have feet on both side of the fence.
> > VS.net is a HUGE improvement over VS though. To be honest, prior to
> VS.net,
> > the IDE was just unusuable. When coming from Delphi (or even VB) it was
> like
> > stepping back in time 20 years.
> > Im not defending the issues you are seeing, but trying to tell you that
> when
> > it comes to this type of stuff its taking MS a long time to get their
> heads
> > wrapped around it. VS.net IMO is really a "1.1" IDE. For a 1.1, its
pretty
> > darn good.
> > --
> > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> > "Programming is an art form that fights back"
> > ELKNews - Get your free copy at http://www.atozedsoftware.com
Do the following:
1. Create a new web form
2. Go to HTML
3. Locate the Body tag
4. Insert after MS_POSITIONING="GridLayout" the following:
style="FILTER:
progid:DXImageTransform.Microsoft.Gradient(endColo rstr='#663333',
startColorstr='#66CCFF', gradientType='0')"
5. Go to Design mode and see the gradient
6. Go to HTML and then back to design and it is gone but the code is still
there.
Go figure.
dont know mate.. think you seem to have a lot of problems. could be the
installation
Have been using vs.net 2003 for 6 months now without any issues. Though i
use it for programming as such and not for html designing.
BTW VS.NET has no links with frontpage. front page is a totally different
product. VS.NET is an ide which also lets you do html.
And dont compare it with dreamweaver. you are comparing all the html
editors with VS when it could be
a. you not doing it right
b. you are doing it right but you installation is messed up.
--
Regards,
HD
Once a Geek... Always a Geek
"Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in message
news:OSVQb.20314$iLV.3080@.twister01.bloor.is.net.c able.rogers.com...
> And even more. At present the designer shows the gradient background.
> Run
> the app and it wants to recompile the page. When it shows the code is
> changed, the gradient is gone and another strike for this terrible piece
> of
> crap that MS has presented developers with.
> This IDE constantly looses buttons, Intelisence, etc. I spend as much
> time
> stopping and starting the IDE just to get past these problems.
> Lloyd Sheen
> "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> message
> news:COVQb.20263$iLV.834@.twister01.bloor.is.net.ca ble.rogers.com...
>> Not to be argumentative but this IDE should have some of the
>> underpinnings
>> of the IDE's that preceded it. Someone said that the HTML designer came
>> from FrontPage. Well that product is quite old and should have the kinks
>> worked out.
>>
>> I cannot figure out why anyone when QA'ing this product would accept the
>> formatting that happens (and I have turned off what I can in the
>> Options).
>> I just moved a DIV and all contained controls were put on one line.
>> Since
>> the designer does not allow for the adding of all needed information at
>> times you must go to the HTML view. I see absolutely no reason to
> reformat.
>> Especially after I just spent 20 mins making the format what I wanted.
>>
>> MS this is the worst IDE I have ever seen and I have used VB since 1.0
>> and
>> VC since it was C 1.52.
>>
>> Lloyd Sheen
>>
>> "Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message
>> news:Xns947BEF166F90Acpub@.127.0.0.1...
>> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
>> > news:ysVQb.19981$iLV.19585@.twister01.bloor.is.net. cable.rogers.com:
>> > > I have tried the same in FrontPage with no problems. If the IDE is
>> > > to
>> > > be taken seriously then it should help not hinder developers. I keep
>>> > For the record - I did not say that. :)
>>> > > hearing wait until the next release. If this is to be MS mantra for
> the
>> > > next set of products then the MS haters will have a case.
>>> > Let's just say I have feet on both side of the fence.
>>> > VS.net is a HUGE improvement over VS though. To be honest, prior to
>> VS.net,
>> > the IDE was just unusuable. When coming from Delphi (or even VB) it was
>> like
>> > stepping back in time 20 years.
>>> > Im not defending the issues you are seeing, but trying to tell you that
>> when
>> > it comes to this type of stuff its taking MS a long time to get their
>> heads
>> > wrapped around it. VS.net IMO is really a "1.1" IDE. For a 1.1, its
> pretty
>> > darn good.
>>>>> > --
>> > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
>> > "Programming is an art form that fights back"
>>>> > ELKNews - Get your free copy at http://www.atozedsoftware.com
>>>
>>
just copy pasted your code as you said.
and switched between the designer and html views a couple of times
and it still works
if can see the code in html and i can see the gradient in designer
--
Regards,
HD
Once a Geek... Always a Geek
"Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in message
news:o3WQb.20454$iLV.4171@.twister01.bloor.is.net.c able.rogers.com...
> Do the following:
> 1. Create a new web form
> 2. Go to HTML
> 3. Locate the Body tag
> 4. Insert after MS_POSITIONING="GridLayout" the following:
> style="FILTER:
> progid:DXImageTransform.Microsoft.Gradient(endColo rstr='#663333',
> startColorstr='#66CCFF', gradientType='0')"
> 5. Go to Design mode and see the gradient
> 6. Go to HTML and then back to design and it is gone but the code is
> still
> there.
> Go figure.
It seems to have to do with the reformatting. If you can get the filter to
show on one line you can switch back and forth. I just wish I could totally
turn off the reformatting. It is irritating and poorly done.
To paraphrase what most developers tell others in these forums when people
ask about changing the way things look - "let the user decide". MS has not
done this in the HTML designer and we the developer pay for it.
Lloyd Sheen
"Hermit Dave" <hermitd.REMOVE@.CAPS.AND.DOTS.hotmail.com> wrote in message
news:OfRgeZ44DHA.2440@.tk2msftngp13.phx.gbl...
> dont know mate.. think you seem to have a lot of problems. could be the
> installation
> Have been using vs.net 2003 for 6 months now without any issues. Though i
> use it for programming as such and not for html designing.
> BTW VS.NET has no links with frontpage. front page is a totally different
> product. VS.NET is an ide which also lets you do html.
> And dont compare it with dreamweaver. you are comparing all the html
> editors with VS when it could be
> a. you not doing it right
> b. you are doing it right but you installation is messed up.
> --
> Regards,
> HD
> Once a Geek... Always a Geek
> "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
message
> news:OSVQb.20314$iLV.3080@.twister01.bloor.is.net.c able.rogers.com...
> > And even more. At present the designer shows the gradient background.
> > Run
> > the app and it wants to recompile the page. When it shows the code is
> > changed, the gradient is gone and another strike for this terrible piece
> > of
> > crap that MS has presented developers with.
> > This IDE constantly looses buttons, Intelisence, etc. I spend as much
> > time
> > stopping and starting the IDE just to get past these problems.
> > Lloyd Sheen
> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> > message
> > news:COVQb.20263$iLV.834@.twister01.bloor.is.net.ca ble.rogers.com...
> >> Not to be argumentative but this IDE should have some of the
> >> underpinnings
> >> of the IDE's that preceded it. Someone said that the HTML designer
came
> >> from FrontPage. Well that product is quite old and should have the
kinks
> >> worked out.
> >>
> >> I cannot figure out why anyone when QA'ing this product would accept
the
> >> formatting that happens (and I have turned off what I can in the
> >> Options).
> >> I just moved a DIV and all contained controls were put on one line.
> >> Since
> >> the designer does not allow for the adding of all needed information at
> >> times you must go to the HTML view. I see absolutely no reason to
> > reformat.
> >> Especially after I just spent 20 mins making the format what I wanted.
> >>
> >> MS this is the worst IDE I have ever seen and I have used VB since 1.0
> >> and
> >> VC since it was C 1.52.
> >>
> >> Lloyd Sheen
> >>
> >> "Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message
> >> news:Xns947BEF166F90Acpub@.127.0.0.1...
> >> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> >> > news:ysVQb.19981$iLV.19585@.twister01.bloor.is.net. cable.rogers.com:
> >> > > I have tried the same in FrontPage with no problems. If the IDE is
> >> > > to
> >> > > be taken seriously then it should help not hinder developers. I
keep
> >> >> > For the record - I did not say that. :)
> >> >> > > hearing wait until the next release. If this is to be MS mantra
for
> > the
> >> > > next set of products then the MS haters will have a case.
> >> >> > Let's just say I have feet on both side of the fence.
> >> >> > VS.net is a HUGE improvement over VS though. To be honest, prior to
> >> VS.net,
> >> > the IDE was just unusuable. When coming from Delphi (or even VB) it
was
> >> like
> >> > stepping back in time 20 years.
> >> >> > Im not defending the issues you are seeing, but trying to tell you
that
> >> when
> >> > it comes to this type of stuff its taking MS a long time to get their
> >> heads
> >> > wrapped around it. VS.net IMO is really a "1.1" IDE. For a 1.1, its
> > pretty
> >> > darn good.
> >> >> >> >> > --
> >> > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> >> > "Programming is an art form that fights back"
> >> >> >> > ELKNews - Get your free copy at http://www.atozedsoftware.com
> >> >>
> >>
as i told you you line of code worked fine... no issues with reformatting...
you sure you didnt mess about with some settings ?
--
Regards,
HD
Once a Geek... Always a Geek
"Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in message
news:UfXQb.21387$iLV.13845@.twister01.bloor.is.net. cable.rogers.com...
> It seems to have to do with the reformatting. If you can get the filter
> to
> show on one line you can switch back and forth. I just wish I could
> totally
> turn off the reformatting. It is irritating and poorly done.
> To paraphrase what most developers tell others in these forums when people
> ask about changing the way things look - "let the user decide". MS has
> not
> done this in the HTML designer and we the developer pay for it.
> Lloyd Sheen
> "Hermit Dave" <hermitd.REMOVE@.CAPS.AND.DOTS.hotmail.com> wrote in message
> news:OfRgeZ44DHA.2440@.tk2msftngp13.phx.gbl...
>> dont know mate.. think you seem to have a lot of problems. could be the
>> installation
>> Have been using vs.net 2003 for 6 months now without any issues. Though i
>> use it for programming as such and not for html designing.
>> BTW VS.NET has no links with frontpage. front page is a totally different
>> product. VS.NET is an ide which also lets you do html.
>> And dont compare it with dreamweaver. you are comparing all the html
>> editors with VS when it could be
>> a. you not doing it right
>> b. you are doing it right but you installation is messed up.
>>
>> --
>> Regards,
>> HD
>> Once a Geek... Always a Geek
>> "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> message
>> news:OSVQb.20314$iLV.3080@.twister01.bloor.is.net.c able.rogers.com...
>> > And even more. At present the designer shows the gradient background.
>> > Run
>> > the app and it wants to recompile the page. When it shows the code is
>> > changed, the gradient is gone and another strike for this terrible
>> > piece
>> > of
>> > crap that MS has presented developers with.
>>> > This IDE constantly looses buttons, Intelisence, etc. I spend as much
>> > time
>> > stopping and starting the IDE just to get past these problems.
>>> > Lloyd Sheen
>>> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
>> > message
>> > news:COVQb.20263$iLV.834@.twister01.bloor.is.net.ca ble.rogers.com...
>> >> Not to be argumentative but this IDE should have some of the
>> >> underpinnings
>> >> of the IDE's that preceded it. Someone said that the HTML designer
> came
>> >> from FrontPage. Well that product is quite old and should have the
> kinks
>> >> worked out.
>> >>
>> >> I cannot figure out why anyone when QA'ing this product would accept
> the
>> >> formatting that happens (and I have turned off what I can in the
>> >> Options).
>> >> I just moved a DIV and all contained controls were put on one line.
>> >> Since
>> >> the designer does not allow for the adding of all needed information
>> >> at
>> >> times you must go to the HTML view. I see absolutely no reason to
>> > reformat.
>> >> Especially after I just spent 20 mins making the format what I wanted.
>> >>
>> >> MS this is the worst IDE I have ever seen and I have used VB since 1.0
>> >> and
>> >> VC since it was C 1.52.
>> >>
>> >> Lloyd Sheen
>> >>
>> >> "Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message
>> >> news:Xns947BEF166F90Acpub@.127.0.0.1...
>> >> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
>> >> > news:ysVQb.19981$iLV.19585@.twister01.bloor.is.net. cable.rogers.com:
>> >> > > I have tried the same in FrontPage with no problems. If the IDE
>> >> > > is
>> >> > > to
>> >> > > be taken seriously then it should help not hinder developers. I
> keep
>> >>> >> > For the record - I did not say that. :)
>> >>> >> > > hearing wait until the next release. If this is to be MS mantra
> for
>> > the
>> >> > > next set of products then the MS haters will have a case.
>> >>> >> > Let's just say I have feet on both side of the fence.
>> >>> >> > VS.net is a HUGE improvement over VS though. To be honest, prior to
>> >> VS.net,
>> >> > the IDE was just unusuable. When coming from Delphi (or even VB) it
> was
>> >> like
>> >> > stepping back in time 20 years.
>> >>> >> > Im not defending the issues you are seeing, but trying to tell you
> that
>> >> when
>> >> > it comes to this type of stuff its taking MS a long time to get
>> >> > their
>> >> heads
>> >> > wrapped around it. VS.net IMO is really a "1.1" IDE. For a 1.1, its
>> > pretty
>> >> > darn good.
>> >>> >>> >>> >> > --
>> >> > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
>> >> > "Programming is an art form that fights back"
>> >>> >>> >> > ELKNews - Get your free copy at http://www.atozedsoftware.com
>> >>> >>
>> >>
>>>>
>>
As I said, add the code switch views and after a couple of switches the
gradient is gone.
"Hermit Dave" <hermitd.REMOVE@.CAPS.AND.DOTS.hotmail.com> wrote in message
news:OTUMrJ54DHA.2496@.TK2MSFTNGP09.phx.gbl...
> as i told you you line of code worked fine... no issues with
reformatting...
> you sure you didnt mess about with some settings ?
> --
> Regards,
> HD
> Once a Geek... Always a Geek
> "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
message
> news:UfXQb.21387$iLV.13845@.twister01.bloor.is.net. cable.rogers.com...
> > It seems to have to do with the reformatting. If you can get the filter
> > to
> > show on one line you can switch back and forth. I just wish I could
> > totally
> > turn off the reformatting. It is irritating and poorly done.
> > To paraphrase what most developers tell others in these forums when
people
> > ask about changing the way things look - "let the user decide". MS has
> > not
> > done this in the HTML designer and we the developer pay for it.
> > Lloyd Sheen
> > "Hermit Dave" <hermitd.REMOVE@.CAPS.AND.DOTS.hotmail.com> wrote in
message
> > news:OfRgeZ44DHA.2440@.tk2msftngp13.phx.gbl...
> >> dont know mate.. think you seem to have a lot of problems. could be the
> >> installation
> >> Have been using vs.net 2003 for 6 months now without any issues. Though
i
> >> use it for programming as such and not for html designing.
> >> BTW VS.NET has no links with frontpage. front page is a totally
different
> >> product. VS.NET is an ide which also lets you do html.
> >> And dont compare it with dreamweaver. you are comparing all the html
> >> editors with VS when it could be
> >> a. you not doing it right
> >> b. you are doing it right but you installation is messed up.
> >>
> >> --
> >> Regards,
> >> HD
> >> Once a Geek... Always a Geek
> >> "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> > message
> >> news:OSVQb.20314$iLV.3080@.twister01.bloor.is.net.c able.rogers.com...
> >> > And even more. At present the designer shows the gradient
background.
> >> > Run
> >> > the app and it wants to recompile the page. When it shows the code
is
> >> > changed, the gradient is gone and another strike for this terrible
> >> > piece
> >> > of
> >> > crap that MS has presented developers with.
> >> >> > This IDE constantly looses buttons, Intelisence, etc. I spend as
much
> >> > time
> >> > stopping and starting the IDE just to get past these problems.
> >> >> > Lloyd Sheen
> >> >> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> >> > message
> >> > news:COVQb.20263$iLV.834@.twister01.bloor.is.net.ca ble.rogers.com...
> >> >> Not to be argumentative but this IDE should have some of the
> >> >> underpinnings
> >> >> of the IDE's that preceded it. Someone said that the HTML designer
> > came
> >> >> from FrontPage. Well that product is quite old and should have the
> > kinks
> >> >> worked out.
> >> >>
> >> >> I cannot figure out why anyone when QA'ing this product would accept
> > the
> >> >> formatting that happens (and I have turned off what I can in the
> >> >> Options).
> >> >> I just moved a DIV and all contained controls were put on one line.
> >> >> Since
> >> >> the designer does not allow for the adding of all needed information
> >> >> at
> >> >> times you must go to the HTML view. I see absolutely no reason to
> >> > reformat.
> >> >> Especially after I just spent 20 mins making the format what I
wanted.
> >> >>
> >> >> MS this is the worst IDE I have ever seen and I have used VB since
1.0
> >> >> and
> >> >> VC since it was C 1.52.
> >> >>
> >> >> Lloyd Sheen
> >> >>
> >> >> "Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message
> >> >> news:Xns947BEF166F90Acpub@.127.0.0.1...
> >> >> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote
in
> >> >news:ysVQb.19981$iLV.19585@.twister01.bloor.is.net. cable.rogers.com:
> >> >> > > I have tried the same in FrontPage with no problems. If the IDE
> >> >> > > is
> >> >> > > to
> >> >> > > be taken seriously then it should help not hinder developers. I
> > keep
> >> >> >> >> > For the record - I did not say that. :)
> >> >> >> >> > > hearing wait until the next release. If this is to be MS mantra
> > for
> >> > the
> >> >> > > next set of products then the MS haters will have a case.
> >> >> >> >> > Let's just say I have feet on both side of the fence.
> >> >> >> >> > VS.net is a HUGE improvement over VS though. To be honest, prior
to
> >> >> VS.net,
> >> >> > the IDE was just unusuable. When coming from Delphi (or even VB)
it
> > was
> >> >> like
> >> >> > stepping back in time 20 years.
> >> >> >> >> > Im not defending the issues you are seeing, but trying to tell you
> > that
> >> >> when
> >> >> > it comes to this type of stuff its taking MS a long time to get
> >> >> > their
> >> >> heads
> >> >> > wrapped around it. VS.net IMO is really a "1.1" IDE. For a 1.1,
its
> >> > pretty
> >> >> > darn good.
> >> >> >> >> >> >> >> >> > --
> >> >> > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
> >> >> > "Programming is an art form that fights back"
> >> >> >> >> >> >> > ELKNews - Get your free copy at http://www.atozedsoftware.com
> >> >> >> >>
> >> >>
> >> >> >>
> >>
swtiched 20 times with a couple of saves
so far so good
added a line save
switched 10 times
so far so good
restart the application
so far so good
make another change
switched 10 times... still good
so it cannot be visual studio cause i am also using vs.net and this is
indeed VS.NET 2003. btw... define couple... more than 40 times is good
enough.
--
Regards,
HD
Once a Geek... Always a Geek
"Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in message
news:ayXQb.21512$iLV.12586@.twister01.bloor.is.net. cable.rogers.com...
> As I said, add the code switch views and after a couple of switches the
> gradient is gone.
>
> "Hermit Dave" <hermitd.REMOVE@.CAPS.AND.DOTS.hotmail.com> wrote in message
> news:OTUMrJ54DHA.2496@.TK2MSFTNGP09.phx.gbl...
>> as i told you you line of code worked fine... no issues with
> reformatting...
>> you sure you didnt mess about with some settings ?
>>
>> --
>> Regards,
>> HD
>> Once a Geek... Always a Geek
>> "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
> message
>> news:UfXQb.21387$iLV.13845@.twister01.bloor.is.net. cable.rogers.com...
>> > It seems to have to do with the reformatting. If you can get the
>> > filter
>> > to
>> > show on one line you can switch back and forth. I just wish I could
>> > totally
>> > turn off the reformatting. It is irritating and poorly done.
>>> > To paraphrase what most developers tell others in these forums when
> people
>> > ask about changing the way things look - "let the user decide". MS has
>> > not
>> > done this in the HTML designer and we the developer pay for it.
>>> > Lloyd Sheen
>> > "Hermit Dave" <hermitd.REMOVE@.CAPS.AND.DOTS.hotmail.com> wrote in
> message
>> > news:OfRgeZ44DHA.2440@.tk2msftngp13.phx.gbl...
>> >> dont know mate.. think you seem to have a lot of problems. could be
>> >> the
>> >> installation
>> >> Have been using vs.net 2003 for 6 months now without any issues.
>> >> Though
> i
>> >> use it for programming as such and not for html designing.
>> >> BTW VS.NET has no links with frontpage. front page is a totally
> different
>> >> product. VS.NET is an ide which also lets you do html.
>> >> And dont compare it with dreamweaver. you are comparing all the html
>> >> editors with VS when it could be
>> >> a. you not doing it right
>> >> b. you are doing it right but you installation is messed up.
>> >>
>> >> --
>> >> Regards,
>> >> HD
>> >> Once a Geek... Always a Geek
>> >> "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
>> > message
>> >> news:OSVQb.20314$iLV.3080@.twister01.bloor.is.net.c able.rogers.com...
>> >> > And even more. At present the designer shows the gradient
> background.
>> >> > Run
>> >> > the app and it wants to recompile the page. When it shows the code
> is
>> >> > changed, the gradient is gone and another strike for this terrible
>> >> > piece
>> >> > of
>> >> > crap that MS has presented developers with.
>> >>> >> > This IDE constantly looses buttons, Intelisence, etc. I spend as
> much
>> >> > time
>> >> > stopping and starting the IDE just to get past these problems.
>> >>> >> > Lloyd Sheen
>> >>> >> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote in
>> >> > message
>> >> > news:COVQb.20263$iLV.834@.twister01.bloor.is.net.ca ble.rogers.com...
>> >> >> Not to be argumentative but this IDE should have some of the
>> >> >> underpinnings
>> >> >> of the IDE's that preceded it. Someone said that the HTML designer
>> > came
>> >> >> from FrontPage. Well that product is quite old and should have the
>> > kinks
>> >> >> worked out.
>> >> >>
>> >> >> I cannot figure out why anyone when QA'ing this product would
>> >> >> accept
>> > the
>> >> >> formatting that happens (and I have turned off what I can in the
>> >> >> Options).
>> >> >> I just moved a DIV and all contained controls were put on one line.
>> >> >> Since
>> >> >> the designer does not allow for the adding of all needed
>> >> >> information
>> >> >> at
>> >> >> times you must go to the HTML view. I see absolutely no reason to
>> >> > reformat.
>> >> >> Especially after I just spent 20 mins making the format what I
> wanted.
>> >> >>
>> >> >> MS this is the worst IDE I have ever seen and I have used VB since
> 1.0
>> >> >> and
>> >> >> VC since it was C 1.52.
>> >> >>
>> >> >> Lloyd Sheen
>> >> >>
>> >> >> "Chad Z. Hower aka Kudzu" <cpub@.hower.org> wrote in message
>> >> >> news:Xns947BEF166F90Acpub@.127.0.0.1...
>> >> >> > "Lloyd Sheen" <sqlguyremoveallofthis@.tostopspamhotmail.com> wrote
> in
>> >> >> news:ysVQb.19981$iLV.19585@.twister01.bloor.is.net. cable.rogers.com:
>> >> >> > > I have tried the same in FrontPage with no problems. If the
>> >> >> > > IDE
>> >> >> > > is
>> >> >> > > to
>> >> >> > > be taken seriously then it should help not hinder developers.
>> >> >> > > I
>> > keep
>> >> >>> >> >> > For the record - I did not say that. :)
>> >> >>> >> >> > > hearing wait until the next release. If this is to be MS
>> >> >> > > mantra
>> > for
>> >> > the
>> >> >> > > next set of products then the MS haters will have a case.
>> >> >>> >> >> > Let's just say I have feet on both side of the fence.
>> >> >>> >> >> > VS.net is a HUGE improvement over VS though. To be honest, prior
> to
>> >> >> VS.net,
>> >> >> > the IDE was just unusuable. When coming from Delphi (or even VB)
> it
>> > was
>> >> >> like
>> >> >> > stepping back in time 20 years.
>> >> >>> >> >> > Im not defending the issues you are seeing, but trying to tell
>> >> >> > you
>> > that
>> >> >> when
>> >> >> > it comes to this type of stuff its taking MS a long time to get
>> >> >> > their
>> >> >> heads
>> >> >> > wrapped around it. VS.net IMO is really a "1.1" IDE. For a 1.1,
> its
>> >> > pretty
>> >> >> > darn good.
>> >> >>> >> >>> >> >>> >> >> > --
>> >> >> > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
>> >> >> > "Programming is an art form that fights back"
>> >> >>> >> >>> >> >> > ELKNews - Get your free copy at http://www.atozedsoftware.com
>> >> >>> >> >>
>> >> >>
>> >>> >>> >>
>> >>
>>>>
>>
Saturday, March 24, 2012
Summary text doesn't work
appear whem i add it to another project, i can see it only in the same
project.
Thanks
PietroTake a look at this:
http://dotnet.mvps.org/dotnet/faqs/...ntation&lang=en
XML comments (like all comments) aren't part of a .dll (otherwise the .dll
would bloat in size). As such, as for as your other application is
concerned, there is no summary text. One would think that you could use
the DescriptionAttribute, but this unfortunetly doens't work for
intellisense (just th properties window). The above link shows how to hook
the outputted xml file from the original source to the dll you are
referecing in yoru other project...thus preserving the summary information.
karl
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Pietro" <piefox@.uol.com.br> wrote in message
news:eCkWOOPQFHA.3296@.TK2MSFTNGP15.phx.gbl...
> I've created a summary text for a method of a class, but it doesn't
> appear whem i add it to another project, i can see it only in the same
> project.
> Thanks
> Pietro
Summary text doesnt work
appear whem i add it to another project, i can see it only in the same
project.
Thanks
PietroTake a look at this:
http://dotnet.mvps.org/dotnet/faqs/...ntation&lang=en
XML comments (like all comments) aren't part of a .dll (otherwise the .dll
would bloat in size). As such, as for as your other application is
concerned, there is no summary text. One would think that you could use
the DescriptionAttribute, but this unfortunetly doens't work for
intellisense (just th properties window). The above link shows how to hook
the outputted xml file from the original source to the dll you are
referecing in yoru other project...thus preserving the summary information.
karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Pietro" <piefox@.uol.com.br> wrote in message
news:eCkWOOPQFHA.3296@.TK2MSFTNGP15.phx.gbl...
> I've created a summary text for a method of a class, but it doesn't
> appear whem i add it to another project, i can see it only in the same
> project.
> Thanks
> Pietro
Super Annoying ! Character in my HTML Email!!
How do I get around this annoying feature! What am I doing wrong?
Your help will be greatly appreciated.I have been perusing tons of documentation and even rewrote my code, but still nothing.
I am thinking of this: is there any way to display the contents of a HTML page on the body? Essentially, this is what I'm doing. I just had a bunch of HTML tags in my body of the mailMessage.
Your help will be greatly appreciated.
Hi,
Dim objMM As New System.Web.Mail.MailMessage
objMM.BodyFormat = Mail.MailFormat.Html
More info
HTH
shaji:
Thanks for your reply. I already have that code in my page. How can I include a URL has the whole body of the email message, that is what I am looking for.
Can anyone help?
OK -- this is what I've been noticing with my mail application. When I attach an HTML body to my MailMessage .Body section and the email retrieves email addresses from a database via a datareader, the emails themselves come back with 'garbage' displayed as random '!' marks in my text.
If I put the same HTML Body in an HTML document by itself, the format is beautiful, clean, and what I'm looking for.
So this brings me to conclude that somehow, the server is throwing in some 'garbage' into the body of my MailMessage .Body. Thus now, I have come to the conclusion that I can't alleviate this problem since it seems to be out of my hands.
I was thinking there must be a way to have the Body of the email to display the web page, i.e. that HTML document.
Please help.
Hi net123,
Try String.Replace() function.
YourMailBody.Replace("!", "")HTH
Maybe your server is converting some caracter he does'nt understand to a "!"
Can you see a pattern on where those "!" are added ?
Tuesday, March 13, 2012
Survey dynamic ASP server controls generation plz
How can i add dynamic survey questioners with (Text box, Check box and combo boxs). i am using ASP.NET 2.0,SQL2005.
If you have any good articles are ideas please share.
Thanks in advance
DK
Hi DK,
There are ASP.NET survey/poll controls. You can search them yourself.
http://www.codeproject.com/useritems/Site_Poll_Control.asp
But I'm not sure if it is dynamic.