all groups > asp.net > september 2005 > threads for thursday september 8
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Open Word Doc in Word, not in Browser
Posted by Franck at 9/8/2005 10:41:31 PM
Hi,
Tryin to open a generated word doc with Word and not in IE.
Lookin samples, I tried this without success :
Response.ContentType = "application/ms-word"
Response.AddHeader("Content-Disposition", "inline;filename=" &
MyFileName & ".doc")
Response.WriteFile(MyFileVirtualPath)
It's stil... more >>
urgent-itemdatabound not getting called
Posted by samir dsf at 9/8/2005 10:00:14 PM
hi
I had been using this datagrid for long. all well...but suddenly the
itemdatabound event is not at all getting called...i dont see my
links..initally it worked well
here is the page_load and itemdatabound event.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.E... more >>
use .net remoting?
Posted by Wendy Elizabeth at 9/8/2005 9:59:01 PM
I want a Visual Basic 6.0 web or desk top application to communicate with a
Visual Basic.NET web or desktop application. I also want a Visual Basic.NET
web or windows
application to communicate with Visual Basic 6.0 web or desktop applications.
Can you tell me what is the best communicati... more >>
Browser flickering
Posted by Mark at 9/8/2005 9:49:00 PM
Is there anyway to stop the flickering when a page refreshes in the browser?
I am thinking maybe something to do with buffering and repainting the page
over the old one instead fo clearing the display and then redrawing. My ASP
page always fills the available browser window.
Any help much a... more >>
Server.Transfer problem
Posted by dee at 9/8/2005 9:43:35 PM
Inside Search.aspx I make the following call:
Server.Transfers("Table.aspx");
I'm transfered to Table.aspx and browser still shows Search.aspx in address
bar. However, I do postback within Table.aspx. The first time that there is
postback the address bar shows Table.aspx! Am I correct to... more >>
smtp
Posted by JD at 9/8/2005 9:35:46 PM
Is it possible using the smtp class in asp.net to send emails and
authenticate to the mail server that is sending the emails out.
Currently I have a web application that works fine on my machine, will send
email to both my company email addresses and to non-company email addresses.
However,... more >>
ASP.net web pagegs
Posted by Sarah Sarah at 9/8/2005 7:21:02 PM
I have just created a very simple web page/site in VS 2005. I have saved it,
built it but when I try to display in a browser it takes about 20 seconds and
then comes up with "the page cannot be displayed" error. Being new to C# and
the .Net environment I"m not sure what to go look for. I was u... more >>
Personal Web Site starter kit question
Posted by mac at 9/8/2005 6:52:03 PM
Hi,
I dont have sql 2005 express on my machine. Instead i have sql server 2005
CTP. When i build and run the website, i get following error. What are
necessory steps required to run site.
Server Error in '/WebSite3' Application
--------------------------------------------------------------... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Why is the repeater empty in a postback?
Posted by Alan Silver at 9/8/2005 6:07:48 PM
Hello,
I have a form that contains a repeater. A simplified version of the
ItemTemplate is shown below (air code)...
<br><asp:Literal id="litID" runat="server" />
<br><asp:TextBox id="txtQty" runat="server" />
<hr>
This basically shows a list of item IDs, with quantities for each one.
... more >>
WriteEntry to Event Log Fails
Posted by TJO at 9/8/2005 5:42:04 PM
I am creating an EventLog and attempting to write to it using the
following code. The problem is when I inspect the log there in no
entry? Can anyone see what I am doing wrong here?
if (!System.Diagnostics.EventLog.SourceExists("SmartMI"))
{
System.Diagnostics.EventLog.CreateEventSourc... more >>
Graphical controls for ASP.NET
Posted by John Smith at 9/8/2005 5:13:30 PM
Hello
Coould please any one to help me to find good graphical controls to create
GDI in ASP.NET.
Some related websites also really appreciated
Thanks in Advance
John
... more >>
inheritance locked
Posted by Bennie Thorvaldsen at 9/8/2005 4:52:44 PM
I just moved off my own server to a webhotel with frontpage extensions.
using Visual studio i created a webbapplication to one of the domains.
I mailed the support about this problem
http://www.pixelriot.net/webform1.aspx
they said it was a programmatically error but I think it's a setup
... more >>
How to run code whenever asp process starts?
Posted by cremoni NO[at]SPAM gmail.com at 9/8/2005 4:45:24 PM
How can I run some special start up code everytime the asp.net process
starts?
... more >>
dynamic validators break explorer
Posted by Abraham Luna at 9/8/2005 4:30:37 PM
how do i stop the dynamic validators from breaking explorer
if i use a dynamic validator and move to a different control it breaks
explorer and i can type in the page when i'm not supposed to. thank you.
... more >>
managing web.config in different environments...
Posted by sqlster at 9/8/2005 4:15:02 PM
We have 3 different environments: dev, qa, and production. After unit
testing, the application is deployed to dev for unit testing among the
programmers and business analyst. When that is okay it gets deployed to QA
for other qa teams to test. When that is approved, it gets deployed to
produ... more >>
Newby level question: Radio Buttons
Posted by Ferret Face at 9/8/2005 3:38:58 PM
Hello,=20
I have a web page that gets the user to select items from a list of =
options. This list is a set of independant Radio Buttons. I did not =
use a Radio Button List because I wanted the possibility of multiple =
selections. However, one item is "None of the above" and I have pl... more >>
Loop Through / Delete From ListBox
Posted by Sparky Arbuckle at 9/8/2005 3:05:21 PM
I've created 2 listboxes with buttons that transfer items between the
two. The idea is that one of the listboxes will have a collection of
items to be deleted from the database. I haven't found any
documentation on how to loop through the listbox to build a query
string. I'm guessing it will loo... more >>
newbie seeks CustomValidation advice/problem solving...
Posted by Illustris at 9/8/2005 2:28:05 PM
Hi all,
Hoping someone can help me w/an annoying issue.
I'm using a CustomValidator to check the length of a value in a textbox
(length should be less than 500).
When I test the form, if length > 500, I get the appropriate error message
from the CustomValidation. When I replace the t... more >>
Master Page properties
Posted by rmccinc NO[at]SPAM hotmail.com at 9/8/2005 2:22:46 PM
Hello-
I am missing something very easy here I think.
I have 3 files
test.master.vb (Master)
content.aspx.vb (content)
Control.ascx.vb (user Control)
All 3 work fine together, but I am not being able to get/set parameters
like I think I should. I think it has something to do with in t... more >>
ERROR: [ODBC Microsoft Access Driver]Invalid precision value
Posted by Reza Nabi at 9/8/2005 1:50:05 PM
Dear All:
I have been developing ASP.NET application on MS Access database using ODBC.
When I was trying to save more than 255 chars in a Memo field I got the
following error.
ERROR [HY104] [Microsoft][ODBC Microsoft Access Driver]Invalid precision
value
Below is the code snippet of two f... more >>
ASP.NET BRAZIL
Posted by Ramon Rocha at 9/8/2005 1:16:59 PM
Olá amigos,
Sou desenvolvedor Delphi/ASP e novato em ASP.NET.
Vamos criar uma rede de contatos no MSN com desenvolvedores brasileiros?
Assim podemos trocar idéias, rotinas, dicas, etc.
Quem quiser me add como techvia@hotmail.com
[ ]s
RAMON ROCHA
... more >>
Accessing a file at a UNC
Posted by flipdoubt at 9/8/2005 12:51:30 PM
I have an application that stores paths as UNCs in a database. I want ASP.NET
to move files from a UNC to a web accessible location, but I'm having the
hardest time getting the app to access the UNC even when the UNC points to
the machine running ASP.NET. What magical and voodoo must I perfo... more >>
Word Automation
Posted by Remco Ploeg at 9/8/2005 12:21:01 PM
Hi,
I have a question about generating a word document from a template document
in a web control / web part. I'am using now the aspose.word dll's but for
this solution we have to pay a lot of money.
I searched the internet for a couple of days now, for a good example how to
render a wo... more >>
Am I missing something here?
Posted by Delphin at 9/8/2005 12:17:05 PM
In VS 2003 when I created a web application, I was able to drag and drop
controls on it like a windows form.
In VS 2005, I have no control on where on the page to position these items,
only to place them on the page, then try to manipulate them with the space
bar or carriage returns.
Wh... more >>
How to Synchronize anonymous users with authenticated users using profiles?
Posted by Rodusa at 9/8/2005 12:03:32 PM
I am trying to Synchronize anonymous users with authenticated uses
using Profile_MigrateAnonymous. However Profile_MigrateAnonymous only
carries information in one direction, for instance, if I delete one
item from the basket in a shopping cart when the user is still
anonymous, the item comes ba... more >>
Invalid ViewState Error after Multiple PostBacks
Posted by Jamie at 9/8/2005 10:59:01 AM
I am receiving an Invalid ViewState error after posting back to the same page
twice. Consistently the error occurs after the second postback and not after
the first.
I have looked into creating a static machinekey in the machine.config and
that did not help. I believe that issue only occu... more >>
How to initialize a page in Page_Load() event?
Posted by Andrew at 9/8/2005 10:57:04 AM
Hi, friends,
In Page_Load() events, I want to initialize this web page with values I
retrieved from DB.
For example, for the element <INPUT type="text" id="firstName" .../>, I want
to make its value equal to "John".
So, in C#, I did:
this.firstName = dbrow["firstName"].ToString()... more >>
firefox's HTML editor
Posted by PJ6 at 9/8/2005 10:40:30 AM
I love it and want to use it instead of VS's HTML editor. Only, I can only
look and not edit. Is it not complete yet?
UGH Mozilla is the same way. I can look but not edit!
Paul
... more >>
Serialize session state & OutOfMemoryError?
Posted by Dave at 9/8/2005 10:25:05 AM
I have an application running on a 3 server webfarm running Windows 2003 with
SQLServer Session state. After running for several hours, I started getting
the following error. When I access each app individually, only one of the
servers seems to return this error when I step through a sequenc... more >>
DataformatString in Gridview and Detalsview ignored
Posted by Gerhard Pretorius at 9/8/2005 10:13:45 AM
I am reposting this..hoping someone (from Microsoft) can confirm this at
least as a problem:
Since installing the VS.NET August CTP the DataFormatString of the
BoundField in the Gridview and Details view does not work. Runtime
v2.0.50727.
<asp:BoundField DataField="Event_Date" DataFormatS... more >>
ViewState chaos
Posted by the friendly display name at 9/8/2005 10:12:32 AM
Following problem:
I have on the page one (graphic-)button (its click even is wired), some
other stuff and of course the page_load function
Page_Load function has the following entry:
{
if (!Page.IsPostBack)
{
counttextboxes = 0;
ViewState.Add("counttextboxes", counttextb... more >>
Session Variables Not Being Saved Between Page Redirects
Posted by Hanover at 9/8/2005 10:08:45 AM
Im having problems maintaining session state.
I set a session variable like this:
Session("NavigatedAway") = "Yes"
Then when I redirect to another page and try to look at the session
variable, it's set to Nothing.
Any clues?
I have EnableSessionState on my page directives..and cookie... more >>
timeout of the vbc.exe when updating application files
Posted by Vavane at 9/8/2005 10:05:42 AM
When we update some files of our ASP.NET application on our customers
servers, the vbc.exe process compiles these files "on the fly" at the
first call. Right.
For one server (running Windows 2000 Server), we have a randomly
timeout on the vbc.exe process while users are connected to the
appli... more >>
Session Arrays
Posted by Bahman at 9/8/2005 10:02:06 AM
Hello!
I have a simple question.
Do we have session arrays that we can reference, assign, or select from?
Could I please have a sample of how this is done. The obvious syntax that I
am trying doesn't work. There are SA's in VB, but I am not seeing anything
for C#.
Thank you!
-Bah... more >>
ASP.NET controls
Posted by John Smith at 9/8/2005 9:47:31 AM
hello group,
I have to create a web page with some drag and drop and dynamic positining.
Does anyone know any ASP.NET controls which we could use.
Thanks in advance
... more >>
Posting Back Page with javascript
Posted by The Crow at 9/8/2005 9:43:58 AM
i have a popup window that is basically a save form, it opens from a page
that contains datagrid for listing records.. when save button is clicked
from popup window, i want to refresh listing page, so newly added record
would appear in the grid. i am able to access parent window, can call
fu... more >>
bad sql error message
Posted by Jeremy Ames at 9/8/2005 9:42:36 AM
I have a datagrid that updates the table using a stored procedure. The =
stored procedure is confirmed to complete correctly, yet the sql data =
adapter is returning an error that my application is catching.=20
Everything within my stored procedure is contained within a transaction. =
When uti... more >>
What do we do now for "include"
Posted by Andrew at 9/8/2005 9:16:05 AM
Hello, friends,
In ASP, we use <!-- include --> to include header/footer files. What are
recommended to do in ASP.net? Any sample source code or reference papers?
Thanks a lot for your help.... more >>
Authentication problems for non localhost
Posted by yofnik NO[at]SPAM comcast.net at 9/8/2005 9:07:30 AM
I have seen this issue posted a number of times, but never a solution.
Can someone please help.
If I access my web application that uses Forms Authentication using
"localhost" (http://localhost/myapp) or by its IP address
(http://192.168.100.1/myapp), authentication works fine. The
authentica... more >>
Sharepoint seems to be causing errors in our application
Posted by dave.stubbs NO[at]SPAM zentive.com at 9/8/2005 9:04:48 AM
Hi,
We have a large web application, using ASP.NET/C# that runs quite
happily on a Windows 2003 server under IIS, but when we install it on a
server with sharepoint installed it keeps falling over with
NullReference exceptions.
These exceptions appear to be related to core objects such as b... more >>
session variables end up null
Posted by Abraham Luna at 9/8/2005 8:59:50 AM
i have a problem when i set a session variable on the login page. sometimes
when i try to access it later it is null.
this is how my login page works:
Session["Typ"] = drEmployee["Typ"].ToString(); //set the typ session
variable to employee typ. either: sales, admin, etc.
FormsAuth... more >>
Debugging ASP.Net - Solution Model: Internet
Posted by Alfredo Barrientos at 9/8/2005 8:28:52 AM
Hi,
I am trying to debug a internet solution with 4 kind of projects:
1. Presentation Layer: ASP.Net Pages
2. Service Interface Layer: Web Services
3. Business Layer: COM+ Classes
4. Data Layer: COM+ Classes
But in the same solution i am having problems with ASP.Net Pages and
Web Servic... more >>
iframes
Posted by Andrew at 9/8/2005 8:26:12 AM
I have a parent iframe and 1 child iframe.
when I click a button in the parent iframe, I want the whole page to be
directed to another page.
Right now, when I click on the button, only the child iframe is redirected
to another aspx page.
TIA.
Andrew... more >>
Underlying Connection Was Closed on a Send
Posted by Jeff_Lav at 9/8/2005 8:26:11 AM
I have a problem when the HTTP keep alive is set to true on a server. When a
other server call a web service to that server (the one with the HTTP keep
alive is at true) I receive randomly a "Underlying connection was closed on a
send" if I retry a few second after, everything works well. This... more >>
Code in MasterPages
Posted by Jeff Lynch at 9/8/2005 8:21:43 AM
I need to call a class on every web page in a site. In ASP.NET 1.1 I would
call this class before the Page_Load event in each web page's code-behind
file since it needs to run before the web page loads.
In ASP.NET 2.0 can I do the same thing by calling the class on the
MasterPage's code-beh... more >>
Book reccomendations please
Posted by Owen at 9/8/2005 8:14:05 AM
Hi
I haven't done any "serious" dot net development in over six months, but I
am about to start a new job where I will be doing it every day.
I want to get myself a couple of good books to arm myself with when I enter
the new job. My level is "experienced" but certainly not "expert". I... more >>
How Do I point IIS to subdirectory within my asp.net application without getting a APPBase error?
Posted by robdob2003 NO[at]SPAM yahoo.com at 9/8/2005 8:08:49 AM
Hello,
I have an ASP.Net c# web application which contains 4 separate folders,
each of these folders contains a default.aspx page, I am pointing several
domains to different sections of this asp.net application. the problem is
that when I point it to the index page of my applications sub... more >>
Safari datagrid gridview errors
Posted by chrismichaelgardner NO[at]SPAM hotmail.com at 9/8/2005 7:51:09 AM
Has anyone figured out how to get rid of the "doPostback" Javascript
errors on Safari. I have a simple page with one gridview. When a row
is selected, Safari hangs and the Javascript console reports an
"invalid return type on doPostback". All I'm doing is running a
standard select call (nothi... more >>
Accessing a value from a dataset
Posted by Protoculture at 9/8/2005 7:48:06 AM
Using c# I'm trying to access a value from a dataset using the following code.
keyword.Text = myDataSet.Tables[0].Columns["keyword"].ToString();
but rather than getting the value at that location I just get the value
'keyword'.
I've also tried this without success.
keyword.Text = myDataS... more >>
Exception has been thrown by the target of an invocation
Posted by Matt at 9/8/2005 7:30:51 AM
Hi all,
I have a application that is built in .net. When I run the .exe
file I get the following error "Exception has been thrown by the target
of an invocation"
Now for a little history. I have Box A, application runs fine on
this box, I copied the application to Box B. I do not hav... more >>
Formating depending on DB value ?
Posted by Johan Wendelstam at 9/8/2005 7:15:04 AM
Hi
I have an DataList item where i use DataBinder.Eval(Container.DataItem,
"sent") to fetch data and display it and it works fine.
But depending on wheter a value in the datatable that is the datasource to
the DataList is either "public" or "private" i would likte to add HTML to the
page in ... more >>
PDF File stream problem... HELP...
Posted by Tim::.. at 9/8/2005 6:16:06 AM
Can someone please tell me why I can't open PDF's from a database but I can
open all other types of files...
I have acrobat reader 7 installed on my client and there is no problem
opening normal PDF files but when I try to open a PDF using the following
code it either opens in notepad or co... more >>
Help on Application event ???
Posted by serge calderara at 9/8/2005 5:31:14 AM
Dear all,
I am just learning the ASP.NET and I try to understand how application and
session event are handle..
I can simulate well the session event which increment at each instance of
the web server adress by placing
Application("SessionCnt")=Application("SessionCnt")+1 in Session_S... more >>
connection to sql server in debug mode is failed
Posted by lior NO[at]SPAM spearcast.com at 9/8/2005 3:02:04 AM
I'm working on asp .net project,when trying to work in debug mode
IE stuck(not responding).
When I debuged it I saw it stuck when trying to connect to the sql
server.
After that when I'm trying to open regular IE window it's stuck
also .
After restart when I'm opening the same page not ... more >>
VS2005 wants to check-in pdb files
Posted by Martin Bischoff at 9/8/2005 1:47:08 AM
When I build my web site (debug build), the bin folder contains pdb files for
every referenced assembly (also part of my solution). When opening the
"pending checkins" window, all DLLs and PDBs in the bin folder are listed for
checkin.
Should I checkin these files, or how can I prevent VS f... more >>
Linkbutton does not look like a linkbutton
Posted by Sathyaish at 9/8/2005 1:19:01 AM
OK, I almost got my problem solved. Zen is almost there! Just that a
LinkButton control inside a column in my datagrid doesn't show like a
link button. It does not have an underlining. My client side JavaScript
is enabled. How do I make the button underlined and appear and act like
a linkbutton?... more >>
Windows 2003 SP1 and specified cast is not valid
Posted by pdabak NO[at]SPAM yahoo.com at 9/8/2005 12:37:17 AM
Hello,
I had an ASP.NET application running on Windows 2003 machine and it was
all working fine. I upgraded the machine to Windows 2003 SP1 and now my
application is failing with "Specified cast is not valid" exception.
Here is the code snippet where the error comes from.
Object o=System.Ac... more >>
Setting a ButtonColumn to read from a hashtable
Posted by Sathyaish at 9/8/2005 12:32:46 AM
How do you set the text of each row of a ButtonColumn column type to a
particular field from a DataGrid's DataSource if the DataSource
property points to a Hashtable?
... more >>
Getting the text of the ButtonColumn
Posted by Sathyaish at 9/8/2005 12:29:23 AM
How do you get the text of a ButtonColumn control column in a datagrid?
As an example, I tried this little snippet on a test project, but it
returns a null string.
Private Sub dg_ItemCommand(ByVal source As Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs) Handles
dg.It... more >>
Why does Transfer hide the target page's address?
Posted by dee at 9/8/2005 12:00:00 AM
Hi,
I'm curious why MS decided to have Transfer hide the target page's url
invisible?
Any guesses ?
Thanks.
Dee.
... more >>
Email - Line Break.
Posted by Adam Knight at 9/8/2005 12:00:00 AM
Hi all,
I am sending email via ASP.NET.
In the message i am wanting to insert a linebreak after an initial
salutation.
In asp I would simply use vbCrLf.
objEmail.Body = "Dear " & Rw("name") & "," & vbCrLf & txtMessage.Text
This doesn't work.
What do i need to do to insert the require... more >>
Good ASP.NET 2.0 Books
Posted by Pat at 9/8/2005 12:00:00 AM
Can anybody recommend a good ASP.NET 2.0 book to buy?
Thanks
... more >>
How to show serial
Posted by ad at 9/8/2005 12:00:00 AM
I have not any serial number in my table.
But I want to show the serial number in my select result.
Like:
Select firstname, age from Employee:
Jhon 38
Mary 40
Mimi 32
How to show :
1 Jhon 38
2 Mary 40
3 Mimi 32
I wnat to show that serial number in a datalist control.
How ... more >>
Convert a text string to an image
Posted by UJ at 9/8/2005 12:00:00 AM
I have need to convert a text string (with formatting) to an image. This is
so that I can resize the image to different sizes and the formatting stays
exactly the same regardless of the size. I actually want the font size to
increase/decrease as the image grows/shrinks much the way text does i... more >>
does asp.net provide a solution to post back from javascript to raise an server-side event in the page?
Posted by The Crow at 9/8/2005 12:00:00 AM
i want to raise an event on the server with a javascript call on the client.
i found a solution but i think its not so elegant. the solution is:
i call __doPostBack("RefreshPage", ""); from javascript and check in the
Page_Load routine :
bool refreshPage = Request.Form["__EVENTTARGET"] == "Ref... more >>
DropDownList - Preselected.
Posted by Adam Knight at 9/8/2005 12:00:00 AM
Hi all,
What is the best way to preselect a drop down list item based on info from a
db?
Surely i don't have to write a function iterating through all the list items
and comparing values to find the required index???
Cheers,
Adam
... more >>
about displaying data in datalist
Posted by Yoshitha at 9/8/2005 12:00:00 AM
Hi
I have datalist control in my ASP.NET application
the problem here is
i have used a textbox with multiline true propertly when i enter data like
"fdjsfhjksdhfjsdfhsdjhfsdfhsdjfhsd
jfdsjfksdjfksdjkfjsdfjksdjfsdjfd
fdsfhjsdhfjsdhfjf dsjf dsjfhjsdfhjksdh d fdsjf
hsdjkfhdjsf... more >>
Could not load type .... from assembly
Posted by Max at 9/8/2005 12:00:00 AM
I have make an component with fiex version (1.0.0.1)
i realize two web component that use this library.
i've change the library and when i execute the web application i have this
error :
Could not load type ****** from assembly *******, Version=1.0.0.1,
Culture=neutral, PublicKeyToken=null... more >>
Email - From Name.
Posted by Adam Knight at 9/8/2005 12:00:00 AM
Hi,
i am sending email from asp.net.
I am using obj.Email.From = senders email address.
How do i include the senders name in the email so it will be displayed in
the recipients inbox.
If i recall correctly JMail had something like objEmail.FromName.
Thanks,
Adam
... more >>
|