 |
 |
Index ‹ Web Programming ‹ Frontpage Client
|
- Previous
- 1
- ASP.Net >> How enter multi lines text in desgin timeI have set a TextBox to MultiLines and set the rows to 10.
I assigned the Text of the TextBox some lins of text at desgin time,
but only the first line remain in the TextBox.
How can I assign some lines of text at desgin time?
- 2
- Frontpage Client >> coding "over strikes"Can anyone tell me in FP 2003 how to code an overstrike? You know ... you see a word typed, but there's a line through it("crossing out" the type), followed by the more appropriate phrase. It's more for effect than anything - not make or break, but has anyone done this? I looked under Insert -> Symbol.
- 3
- ASP.Net >> How to show Confirmation message box?I have a small web app that displays data from a SQL Server database. Using
a DataGrid control on a page, the user can delete a row from the database.
This works fine. But I want to prompt the user for confirmation ("Are you
sure...") before deleting the record. How can I do this from the ASP.NET
code? Since the C# code is server-side, is there a way to display a Yes/No
type of message box and only take action if the users clicks the "Yes"
button? I'm new to web development, so any and all help is appreciated.
Here is the deletion message handler; I want to prompt the user for
confirmation before the deletion code executes:
private void dgridProfiles_Delete(object source,
System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
[** How do I prompt the user here??]
[If user said yes, then...]
String profID = e.Item.Cells[0].Text.Trim();
String deleteCmd = "DELETE from Profile where ProfileID = @profID";
string connstr =
ConfigurationSettings.AppSettings["BLConnectionString"];
SqlConnection connection = new SqlConnection(connstr);
SqlCommand myCommand = new SqlCommand(deleteCmd, connection);
myCommand.Parameters.Add(new SqlParameter("@profID", SqlDbType.Char,
10));
myCommand.Parameters["@profID"].Value =
dgridProfiles.DataKeys[(int)e.Item.ItemIndex];
connection.Open();
try
{
myCommand.ExecuteNonQuery();
dgridProfiles.EditItemIndex = -1;
LabelMessageArea.Text = "Profile deleted.";
}
catch (SqlException )
{
LabelMessageArea.Text = "ERROR: Could not delete record.";
}
finally
{
connection.Close();
}
BindGrid();
}
[end code sample]
Thanks!
- 4
- 5
- IIS >> HTTP headers not workingHi,
I have been trying to make this work all day, but it has been to no avail. I
have my domain controller on a 2k3, and I have a 2k server with exchange. I
have been trying to create a site with http header "mail.domain.com", which
will have the same information found at "exchange.domain.com/exchange".
However, no matter what I do, I just can't get it to work. I tried using a
new site with redirection. A new site with the same directory as the
exchange. A new virtual directory, with http header mail.domain.com, that
would redirect to exchange.domain.com/exchange. I tried a few other things,
but I had no good results.
Could someone help me?
- 6
- ASP.Net >> Setting a Range Parameter in a crystal report and streaming resulting report as a pdfI would like to know if anyone knows how to apply a date range to a
range value parameter of a crystal report without using the cystal
report viewer.
Currently I have to pass a range value to a crystal report via the CR
Viewer, which is fine except I want to stream the report to the client
browser as a PDF.
Does anyone know how to pass a range to the report object itself without
using the viewer.
Any help would be great. Thanks.
James Wallace
Bryan Texas Utilities
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
- 7
- ASP.Net >> Adding a parameter to an ASP.NET deployed report causes a LoginExceptionHi, everyone! Long time no see!
I have a report developed in Crystal 9 that I have implemented in
ASP.NET. I am not using the Viewer, I am passing it to the screen as
a PDF.
Becasue the report directly connects to a database to collect it's
information, I have had to use the infamous security loop to get
information to each table in the system.
//crConnectionInfo.ServerName = @"<myserver>";
crConnectionInfo.ServerName = "OCSA";
crConnectionInfo.DatabaseName = "OCSA";
crConnectionInfo.UserID = "<myusername>";
crConnectionInfo.Password = "<mypassword>";
crDatabase = crReportDocument.Database;
crTables = crDatabase.Tables;
//Do the stupid security dance
foreach(CrystalDecisions.CrystalReports.Engine.Table crTable in
crTables)
{
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTable.ApplyLogOnInfo(crTableLogOnInfo);
}
//Do the more stupid subreport dance.
Sections crSections;
ReportObjects crReportObjects;
SubreportObject crSubreportObject;
crSections = crReportDocument.ReportDefinition.Sections;
ReportDocument subRepDoc = new ReportDocument();
foreach(Section crSection in crSections)
{
crReportObjects = crSection.ReportObjects;
foreach (ReportObject crReportObject in crReportObjects)
{
if (crReportObject.Kind == ReportObjectKind.SubreportObject)
{
crSubreportObject = (SubreportObject)crReportObject;
subRepDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName);
crDatabase = subRepDoc.Database;
crTables = crDatabase.Tables;
foreach(CrystalDecisions.CrystalReports.Engine.Table crTable
in crTables)
{
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTable.ApplyLogOnInfo(crTableLogOnInfo);
}
}
}
}
This solved the first login exception no problem, and was a fairly
easy fix.
So, I have some reports that work. Then I got a report with a
parameter. No problem, I added this code:
//Pass in the parameter
ParameterValues parameterValues = new ParameterValues();
ParameterDiscreteValue parameterDiscreteValue = new
ParameterDiscreteValue();
string classText = orgRosterClassDDL.SelectedItem.Text.ToString().Substring(4,orgRosterClassDDL.SelectedItem.Text.ToString().Length-4);
parameterDiscreteValue.Value = classText;
ParameterFieldDefinitions parameterFieldDefinitions =
crReportDocument.DataDefinition.ParameterFields;
ParameterFieldDefinition parameterFieldDefinition =
parameterFieldDefinitions["Class"];
parameterValues = parameterFieldDefinition.CurrentValues;
parameterValues.Add(parameterDiscreteValue);
parameterFieldDefinition.ApplyCurrentValues(parameterValues);
And went about my way. BUT, this code, when added, causes another
login exception at the point of Export.
My question - the question that even Crystal Decisions Tech Support
can't solve - is
WHY?
- 8
- 9
- Frontpage Client >> Self Updating Photo GalleryI am reposting this because it appears to have been deleted. I no longer
see the original post in OE.
I know how to create the photo gallery but what I want to do is when I add
another photo to that folder have it update the photo gallery. Is this
possible?
Jason Stevens
- 10
- Frontpage Programming >> FP 2000 DHTML & Navigation BarsI have two problems/questions:
1. I have a DHTML effect on my home page - text to fly
in on page load. It is not visible on my published
site. Any ideas?
2. My left Navigation bar seems to change widths on
different pages of my web. This causes problems with
text wrapping. The most noticeable problem is the
scrolling marquee I have in the Nav Bar. On some pages
it looks fine, but on other pages parts of it are cut off
(the bottom of the letters are cut off, or when it stops
scrolling the first letter is cut off). Any ideas?
marquee looks good here: http://www.evanvic.com, but not
here
http://www.evanvic.com/http://evanvic.com/calculators.htm
Thanks for any help/answers!
Shannon J.
- 11
- 12
- ASP.Net >> Two way databinding using variable namesIs it possible to use a publicly scoped string vaiable as an argument
to the bind method?
A normal bind method works like this:
<asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("CustID")
%>'></asp:TextBox>
I get an error when I try this:
Public strCustIDFieldName as String="CustID"
<asp:TextBox ID="Text1" runat="server" Text='<%#
Bind(strCustIDFieldName) %>'></asp:TextBox>
The error is:
"A call to Bind was not well formatted"
The documentation says I can use any publicly scoped code,and it works
fine with the eval function.
Are literals the only thing allowed?
- 13
- ASP.Net >> File Write Access Denied with ASP .NET on Domain ControlerHi All,
I have a web page that tries to write in a xml file but I have an
Access Denied error on the xml file.
The page is working properly on the development computer but not on
test environment.
On the test environment the Web sServer is also PDC so there is no
ASPNET account on this computer.
- I have created a weak account with appropriate permissions
(following "ASP.NET does not work with the default ASPNET account on a
domain controller" article from Microsoft Support)
- I have changed the <ProcessModel> entry in the Machine.config to use
my account.
- I granted the new account Read - Write - Modify permissions on the
xml file.
- The web site is running in Anonymous mode (using IUSR_MACHINE
account).
But still my web page cannot modify the xml file.
Any help will be appreciated.
Sébastien.
- 14
- Frontpage Client >> Best display resolution optionsSome sites use 100% page width so the page fills the whole screen no matter
what the resolution. However alot of sites use 800 pixel width so the page is
either in the middle of the screen or to the left when viewing in 1024x768 or
higher.
Why is this and what is best?
- 15
- Frontpage Programming >> Survey Form via emailI have developed a survey form in FP 2003 with a confirmation page and
everything works great on the website. However, I want to email this as an
HTML email and have customers complete the form in their email client and
submit. The intent is to not require them to follow a link to my website,
but complete it as they read the email. Once they submit, I would like a
browser window to open with the confirmation page displayed. I am currently
sending the data to a CSV file, but will ultimately like to store it in
Access...either way will work for this exercise.
Can anyone offer any help?
|
| Author |
Message |
TheLogsdon4

|
Posted: Tue Oct 21 18:50:43 CDT 2003 |
Top |
Frontpage Client >> new features on 2003
When watching a tutorial before purchasing FP 2003, there
was many new featutures listed.
Now in reading, I am finding out these are not available
unless you have a sharepoint server. As I dont have one
yet, can anyone tell me, is the feature for adding
a 'dropdown menu'(and index) available only with
sharepoint?
I really need this feature for a new site I am working on.
I may have not made it clear, but I hope so.
TIA
Web Programming412
|
| |
|
| |
 |
chris

|
Posted: Tue Oct 21 18:50:43 CDT 2003 |
Top |
Frontpage Client >> new features on 2003
need more info on what you mean "dropdown menu (and index)"
"lillybug" <EMail@HideDomain.com> wrote in message
news:062f01c39822$acc88bc0$EMail@HideDomain.com...
> When watching a tutorial before purchasing FP 2003, there
> was many new featutures listed.
> Now in reading, I am finding out these are not available
> unless you have a sharepoint server. As I dont have one
> yet, can anyone tell me, is the feature for adding
> a 'dropdown menu'(and index) available only with
> sharepoint?
> I really need this feature for a new site I am working on.
>
> I may have not made it clear, but I hope so.
> TIA
|
| |
|
| |
 |
lillybug

|
Posted: Tue Oct 21 22:50:38 CDT 2003 |
Top |
Frontpage Client >> new features on 2003
>-----Original Message-----
>need more info on what you mean "dropdown menu (and
index)"
When you click a 'link' button, it drops down with choices
of other links.
Example: Main 'link'is books, click on it, and the name
of 6 books pop up to click on.
Thanks.
|
| |
|
| |
 |
MD

|
Posted: Wed Oct 22 07:00:35 CDT 2003 |
Top |
Frontpage Client >> new features on 2003
Hi LIlly,
You can create such a menu using FP and the behaviors but it is not a trival
task. You may wish to look at MenuWeaver
http://www.websunlimited.com/order/Product/navigation/MenuWeaver.htm
Live Sites
http://www.santotoday.com/
http://www.csuchico.edu/ba/
--
Mike -- FrontPage MVP '97-'02
http://www.websunlimited.com
FrontPage Add-ins Since '97 2003 / 2002 / 2000 Compatible
----------------------------------------------------------------------------
--------------------
If you think I'm doing a good job, let MS know at EMail@HideDomain.com
"lillybug" <EMail@HideDomain.com> wrote in message
news:076101c3984f$a83c7a80$EMail@HideDomain.com...
>
> >-----Original Message-----
> >need more info on what you mean "dropdown menu (and
> index)"
>
> When you click a 'link' button, it drops down with choices
> of other links.
> Example: Main 'link'is books, click on it, and the name
> of 6 books pop up to click on.
>
> Thanks.
|
| |
|
| |
 |
Jim

|
Posted: Wed Oct 22 09:23:04 CDT 2003 |
Top |
Frontpage Client >> new features on 2003
Lilly,
It's pretty easy to create such a menu with Behaviors in FrontPage 2003. My
book has a detailed tutorial on doing just that.
--
Jim Cheshire
Jimco Add-ins
http://www.jimcoaddins.com
===================================
Co-author of Special Edition
Using Microsoft FrontPage 2003
Order it today!
http://sefp2003.frontpagelink.com
"lillybug" <EMail@HideDomain.com> wrote in message
news:076101c3984f$a83c7a80$EMail@HideDomain.com...
>
> >-----Original Message-----
> >need more info on what you mean "dropdown menu (and
> index)"
>
> When you click a 'link' button, it drops down with choices
> of other links.
> Example: Main 'link'is books, click on it, and the name
> of 6 books pop up to click on.
>
> Thanks.
|
| |
|
| |
 |
anonymous

|
Posted: Wed Oct 22 12:26:14 CDT 2003 |
Top |
Frontpage Client >> new features on 2003
>-----Original Message-----
>Lilly,
>
>It's pretty easy to create such a menu with Behaviors in
FrontPage 2003. My
>book has a detailed tutorial on doing just that.
Jim, where do I purchase your book?
I did not rec. a book at all with 2003.
Appreciate your answer.
Lilly
|
| |
|
| |
 |
Jim

|
Posted: Wed Oct 22 13:08:03 CDT 2003 |
Top |
Frontpage Client >> new features on 2003
Lilly,
You can pre-order my book at the link in my signature.
--
Jim Cheshire
Jimco Add-ins
http://www.jimcoaddins.com
===================================
Co-author of Special Edition
Using Microsoft FrontPage 2003
Order it today!
http://sefp2003.frontpagelink.com
<EMail@HideDomain.com> wrote in message
news:02e601c398c1$981d1a20$EMail@HideDomain.com...
>
> >-----Original Message-----
> >Lilly,
> >
> >It's pretty easy to create such a menu with Behaviors in
> FrontPage 2003. My
> >book has a detailed tutorial on doing just that.
>
> Jim, where do I purchase your book?
> I did not rec. a book at all with 2003.
> Appreciate your answer.
> Lilly
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ Frontpage Client |
- Next
- 1
- ASP.Net >> use column name instead of indexHi All,
I have the following code
----------------------------------------------------
Business.Product pdt = new Business.Product();
SqlDataReader product = pdt.GetProductDeals(134);
StringBuilder maker = new StringBuilder();
while (product.Read())
{
maker.append ("formatting text" + product.GetValue(8).ToString());
maker.append ("formatting text" + product.GetValue(3).ToString());
maker.append ("formatting text" + product.GetValue(12).ToString());
}
----------------------------------------------------
In the above code, I am using index value to get the database column value.
It's causing lot of confusion as I have around 45 fields coming from
database. Is it possible to use the DB Column name instead of index value.
Please help.
Thanks in Advance.
- 2
- 3
- IIS >> Mid-Tier 6.x & NLB Windows 2003OK I have a Action Request System Mid-Tier 6.3 I believe installed on 2
Windows 2003 IIS 6.0 Servers. I have setup the NLB system withen Windows
2003 to load balance the 2 servers. I have verified that on Port 80 it
distributes the load 50/50 between the servers. I have also verified using a
PHP script that on port 443 when you get on 1 server you stay on. However we
are have problems with Mid-Tier and it loosing it's JSESSIONID cause it is
being bounced they tell me... Has anyone ever setup Mid-Tier 6.x on a Windows
2003 system with NLB and got it to work properly?
- 4
- ASP.Net >> 1 to many in GridViewHello!
I don't know if this is possible, but I have two tables in a
one-to-many relationship. I want one record to be displayed in a
GridView from table1 with a blue background, followed by all the
related records in table 2 in a white background, followed by the next
record in table1 in a blue background (for example). It should be nice
an simple. Back in the ASP Classic days, I would use response.write
and build a table, but I was wondering if there is an easier way to do
this in .NET. Oh yes, I'm using VB.
Thanks for any help!
- 5
- ASP.Net >> Application Center Test DetailsCan someone tell me where I can find more information on
Application Center Test details such as the difference
between number of request, unique request, number of
connections etc. The documentation doesn't seem to have
much to that.
Thanks
Eager Load Tester
- 6
- ASP.Net >> Default submit buttonI am sure this question has been asked many times, however I am yet to find
a satisfactory solution to the problem. I have a number of user controls
within an asp.net page, a login box, a search box, and contact form. I wish
to be able to ensure that when the user presses enter in the appropriate
textbox control, the correct form is validated and submitted.
I have tried a number of methods to achieve this goal, the main one being
setting the __EVENTTARGET hidden form field value to the id of the button I
wish to be "clicked" when the enter key is pressed. I do this by adding an
onkeypress attribute to each of the textboxes within the usercontrol. This
doesn't appear to be working however, and one button is always "clicked"
rather than the others.
I wondered if anyone may have some advice on how to handle this approach
where there are several user controls which would each have been a form in
their own right in old style asp. Also I'd be interested in how people
would handle the validation of such a scenario, I am inclined to just write
my own validation routines for the scenario, rather than rely on the inbuilt
validation, which doesn't appear to work well for this.
I have also found it necessary to check each of the validators individually
within the user control to check if the data submitted IsValid, if I try to
call Page.IsValid then it will validate all of the validation controls
within the page, not just within the user control. Am I missing something
here or is there anyway to validate only the controls within the current
user control.
This would seem to be a fairly common situation, however I am finding it
very difficult to easily achieve the results I am looking for using ASP.Net.
Any thoughts appreciated....
- 7
- ASP.Net >> Cancelling a postback event at the master pagelevel...Hi,
I am writing a script which needs to detect and block if the user has
pressed the Refresh button on the browser.
I have some code on the masterpage that sets up a hidden field counter and
uses a session to keep track of the last value used - if it is the same it
is a refresh - this is detecting fine.
The problem - Now I am detecting the refresh I need to stop the child page
from processing the request. Is there any way to do this globally on the
master page without having to alter 100's of pages individually?
Thanks in advance,
Stu
- 8
- IIS >> Request throttlingHi all,
i was wondering if there are any plugins or filters that i can use to
enforce request throttling in IIS6.0
thanx
- 9
- ASP/Active Server Pages >> ASP - date formating MySql insert/updateI am storing dates in a mySql database in the format yyyy-mm-dd.
Now, I have set up so that this field is insert by a form.
It isn't very user friendly to have to type yyyy-mm-dd, how can I set up so
that the user
can enter format dd/mm/yyyy and it will automatically insert into the
database as yyyy-mm-dd?
I am using Dreamweaver MX 2004 and ASP.
Thanks for any helps to me ....
Vivian
- 10
- IIS >> Moving IIS 4.0 sites to new NT 4.0/IIS 4.0 serverHello,
We still run a large number of websites on NT4.0/IIS 4.0. Because of
stability issues, we are targeting "problematic" websites and will move them
to a duplicate IIS 4.0 server. Can anyone recommend a process / best
practice for moving a single or group of websites to a different server?
Hopefully, (the process) this will take into account any dependencies such as
DNS, aliases, DLL and/or other requirements. We will be retiring all NT
servers but that is another project that is forthcoming. Moving them to W2k3
is not an option right now. We must stay on NT/IIS 4.0.
TIA,
Rich
- 11
- Frontpage Client >> Link BarsHow can I get child pages to show as a separate "fly out" or sub link when
the parent page link is hovered over in the link bar?
- 12
- ASP.Net >> OLEDB conn giving errorHi,
I am facing a problem while trying to execute a simple mdx query using
C# and OLEDB conn.
The code I am using is as:
// Create a OleDb(!!)-connection
OleDbConnection oleDbConn = new OleDbConnection();
// Set the connectionstring
oleDbConn.ConnectionString = "Provider=MSOLAP.2;Data
Source=localhost;Initial Catalog=FoodMart 2000;";
// Creacte a new command
OleDbCommand cmd = new OleDbCommand();
// Assign the connection to the command
cmd.Connection = oleDbConn;
// Assign a query to the commandtext
cmd.CommandText = "SELECT { [Time].&[1997] } ON COLUMNS , {
[Store].[Store State].&[WA] } ON ROWS FROM [Sales] WHERE (
[Customers].[Name].&[1370], [Measures].[Unit Sales] )";
// Open the connection
oleDbConn.Open();
// Execute the reader
OleDbDataReader reader = cmd.ExecuteReader();
while(reader.Read())
{
// for each item in the resultset, print the value
for(int i = 0; i < reader.FieldCount; i++)
{
Response.Write(reader.GetValue(i));
}
}
// Don't forget to close the connection
oleDbConn.Close();
This works fine when the 'datasource' specified is 'localhost' but
gives an exception at the 'oleDbConn.Open();' statement when i am using
any other machine name which has analysis sevices.The error is 'No
error information available: E_FAIL(0x80004005)'.
What could be the possible reasons for this.Is it authentication issue?
I dont think there is any problem with connection string.
Please Advice.
Thanks and Regards.
- 13
- ASP.Net >> How to determine authorized roles for a page?I've been combing through Google trying to find the answer but not luck.
I'm using Forms authentication. Determining what Roles the current user is
in was the easy part (User.IsInRole). But how does one determine what Roles
are permitted to use a particular ASPX page? (.NET 2.0, VS05)
- 14
- ASP.Net >> ASP.NET Page Performace ProblemHello All
I'm stumped as to why my aspx page takes so long to load. When I run
this is a development environment (with minimal data in the database)
all is fine.
I ran the stored procs (in a production environment) that run on this
page and they take a total of 4 seconds, but the page takes over 30
seconds to run
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin Init
aspx.page End Init 0.000338 0.000338
aspx.page Begin LoadViewState 0.000470 0.000132
aspx.page End LoadViewState 0.002084 0.001614
aspx.page Begin ProcessPostData 0.002213 0.000128
aspx.page End ProcessPostData 0.002653 0.000440
aspx.page Begin ProcessPostData Second Try 0.023925 0.021272
aspx.page End ProcessPostData Second Try 0.024105 0.000180
aspx.page Begin Raise ChangedEvents 0.024215 0.000110
aspx.page End Raise ChangedEvents 0.024337 0.000122
aspx.page Begin Raise PostBackEvent 0.024482 0.000145
aspx.page End Raise PostBackEvent 35.709462 35.684980
aspx.page Begin PreRender 35.710435 0.000973
aspx.page End PreRender 35.712750 0.002315
aspx.page Begin SaveViewState 36.104278 0.391528
aspx.page End SaveViewState 36.104839 0.000561
aspx.page Begin Render 36.105011 0.000172
Why does the (Begin Raise PostBackEvent) take so long to load?
Can anyone please help me
Thanks in advance
Rob
- 15
- ASP.Net >> axWebBrowser in WindowsControlLibrary not showing in WebPageHere's the thing I am trying to do:
I have a HTMLEditor control in a WindowsControlLibray. I want to use
this control on a webpage to let users fill out text in HTML-format. It
won't show.
A little test gave me the following:
A standard control(with a textbox on it for example) in a
WindowsControlLibrary will show up in my webpage.
When I add the axWebBrowser to that control it won't show up. It seems
to me I am not able to use controls that use dll's or something.
Can anyone explain/clarify this?
Any help appreciated,
Marcel
|
|
|