all groups > asp.net > june 2005 > threads for monday june 13
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
Image upload to Access DB in ASP.NET/VB = VOODOO WICHCRAFT REQUIRED????
Posted by Neo Geshel at 6/13/2005 11:26:27 PM
I have examined about 80+ different upload scripts on the 'net, both in=20
VB and C#, and none seem to do what I need them to do. Perhaps someone=20
here can point me somewhere that Google hasn't reached yet (I have gone=20
all the way to page 50 on Google's results!!). Here are my requirements:
... more >>
Page_Error, Application_Error and HttpUnhandledException
Posted by Carl Johansen at 6/13/2005 10:50:20 PM
I've been reading the O'Reilly "ASP.NET Cookbook" 1st edition (Kittel and
LeBlond), and it makes a recommendation about exception handling that seems
a bit strange. They say that, if you want to let some exceptions propagate
up to Application_Error, you should include the following Page_Error... more >>
autopostback on dropdownlist
Posted by TJS at 6/13/2005 10:45:23 PM
I am rendering a dropdownlist from HTMLTextWriter, how do I specify to
enable autopostback ?
'=========================================
....
writer.AddAttribute(HtmlTextWriterAttribute.Id, "xx")
writer.AddAttribute(HtmlTextWriterAttribute.Name, "xx")
writer.RenderBeginTag(HtmlTextW... more >>
How to insert NULL to Database from VB.NET
Posted by Patrick Olurotimi Ige at 6/13/2005 9:59:01 PM
How can i insert NULL below?
It says i can;t convert it to character!!
Dim MB As Char
If Request.Params("MB") = "True" Then
MB = "Y"
ElseIf Request.Params("MB") = "False" Then
MB = "N"
Else
MB = Convert.ToC... more >>
Delete button not firing
Posted by Andy Sutorius via DotNetMonster.com at 6/13/2005 9:44:30 PM
Hi,
I have a delete button in the item template of my datagrid, when I click it
the function for the Insert button is executed instead of the delete button.
When I step through in debug, the doAction function is never entered. Below
is my code. Do you see any errors? Thanks, Andy
<asp:datag... more >>
"DATA" Directory
Posted by Alex Maghen at 6/13/2005 7:17:01 PM
Hi. I had previously installed VS2005 beta 1. I carefully followed all the
steps (I thought) to deinstall it and then installed beta 2. According to the
documentation, the "Data" directory which was to be a "special" directory in
the docroot of an ASP.NET app, has been renamed to "app_data". T... more >>
How to declare & access pre-complied usercontrols from page code behind?
Posted by N. Demos at 6/13/2005 7:15:58 PM
I have a user control with code behind of which two instances are
created/declared in my aspx page. The aspx page has code behind also, as
I need to access methods of the usercontrols on page submit.
I've read several post here and articles on the web on this topic. What
little I have lea... more >>
Multiple LoginURL's
Posted by dgator at 6/13/2005 6:05:02 PM
Is it possible to have multiple LoginURL's.
I have a situation where I have a certain url redirect into my secure web
application. I have the specific login credentials handled fine. The users
from the external site get in fine. When they log out of the app, it returns
them to their pe... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
asp.net remove white space in html
Posted by Aaron at 6/13/2005 5:49:24 PM
is there a way to remove all white spaces in the html output? ie. everything
as one line.
... more >>
HTMLGenericControls, ascx, and span
Posted by Sue at 6/13/2005 5:36:02 PM
I have created a web user control containing a web calendar (among other
controls) that is shown/hidden when the user clicks an imagebutton. I've used
SPAN tags to show/hide the calendar. I need to use several instances of this
user control in my main web page. What I need how is way to give t... more >>
Using MS Word on server
Posted by CMan at 6/13/2005 5:30:01 PM
Hi
We have a requirement for a browser based app which needs to be able to
create/print word files, mail merges e.t.c.
How should we approach this? I an assuming that running word on the server
is not a great idea because of threading issues.
Has anyone else done this kind of thing?
I... more >>
30 style tags per page limitation
Posted by Rob Nicholson at 6/13/2005 5:22:10 PM
We're using a well known presentation layer library to implement complex
controls on an intranet site. IE has the following limitation which
effectively means that you can only have 30 <STYLE> tags per page. That's in
effect 30 style sheets per page, not classes - each sheet can have as many
sty... more >>
Upload file using custom button
Posted by tshad at 6/13/2005 5:13:56 PM
Is there a way to use a custom button with the:
<Input ID="MyFile" Type="File" RunAt="Server">?
This gives you a generic button, but I would like to use my own button that
has the same style as the other buttons I've created.
Is there an easy way to do this?
Thanks,
Tom
... more >>
how to properly encode ampersands in querystring
Posted by darrel at 6/13/2005 4:45:15 PM
I am creating a querystring to look like this:
form_edit.aspx?collectionID=25&confirmationMessage=New+form+entry+saved
Note that I'm escaping the ampersand.
However, I can't grab the 'confirmationMessage' querystring unless I do NOT
encode the ampersand. I assume I'm missing something ... more >>
ASP.NET Image Disply from DB still not functioning properly
Posted by Neo Geshel at 6/13/2005 4:12:57 PM
I still have a problem displaying images from an access DB using
asp.net. This showimage.aspx is for an admin site.
I need to pull the correct image from the correct table, hence the two
GET variables
I need to re-size the image, while keeping the proper proportions, on
the fly (before i... more >>
Uploading files to a multiuse page
Posted by tshad at 6/13/2005 3:08:59 PM
I have a page that I am using for multiple uses that includes reposting of
the page as well as going to another page where the "form" tag would be
something like:
<form id="something" runat="server">
I looked at some of the upload examples and they all seem to have the
uploading on a pag... more >>
In asp event occurs once for textbox.textchanged AND button.button
Posted by Spencer H. Prue at 6/13/2005 2:10:03 PM
I have a textbox and a button on my asp.net form. I have some Smtp code in my
button click procedure. When the user hits the return for the textbox the
button procedure runs. When the button is clicked the button procedure also
runs. This fine so I get the Smtp code to run either way. The prob... more >>
Using HttpWebRequest to post form data with cookies
Posted by Luis Esteban Valencia Muñoz at 6/13/2005 1:35:32 PM
I'm working on a web scraping application that needs to log into a website
before it can get the data to scrape. I've always been confused about how
the HttpWebRequest and HttpWebResponse objects work together with cookies,
and was hoping that someone here could clear it up for me!
Here's the... more >>
VB.NET code troubleshooting (CommandArgument property during OnItemDataBound event)
Posted by jason at 6/13/2005 1:09:21 PM
i'm trying to set the commandargument property of a buttoncolumn in the
DataGrid ItemBind event. it works fine in one instance, but in the
latest page i've written it doesn't seem to work, and i can't see why.
can anyone tell me why this chunk of code works:
[from File1.aspx]
<asp:datagrid id... more >>
seesion state question?
Posted by Leon at 6/13/2005 11:56:15 AM
how can I load values in session state within the global.asax file
doing Application_BeginRequest event? Or can I?
... more >>
Is writting to a shared log file an issue for ASP.Net app?
Posted by Feng at 6/13/2005 11:50:02 AM
I have an ASP.Net app that is wrtting some log information into a log file.
All I have is one single log file used by the web application and shared
cross all the sessions. What I don't understand is what will happen if one
session is trying to write the file while another is currently writtin... more >>
Multiple Keys
Posted by Shahid Juma at 6/13/2005 11:39:15 AM
Using NameValueCollection, is this possible:
my.Add ("1", "VALUE");
my.Add ("1", "VALUE");
my.Add ("2", "VALUE");
my.Add ("2", "VALUE");
Also, how do I iterate through it and print the values that have been
stored.
Thanks in advance,
Shahid
... more >>
client-side code checkboxlist
Posted by Sandy at 6/13/2005 11:15:03 AM
Hello -
I have two checkboxlists; A and B. CheckboxlistA has Item1, Item2, Item3,
etc. up to Item8.
If need client-side code with the logic that if Item8 in CheckboxlistA is
checked then show CheckboxlistB.
Any help will be greatly appreciated!
--
Sandy... more >>
looking for a few good ideas
Posted by rodchar at 6/13/2005 11:14:01 AM
hey all,
here's what i have to work with:
i've got
3 drop-down lists
1 textbox
for makeup my search critera for 1 table of records.
when the user sets his criteria, gets a subset of records based on the
criteria, selects a record to view, and closes that view, i'd like to go back
to th... more >>
Cookie does not seem to timeout
Posted by Martin Dew at 6/13/2005 9:56:44 AM
Hi,
I am using ASP.Net for a website, I use the following code;
<authentication mode="Forms">
<forms name=".ADASTRATEAROUNDS" loginUrl="login.aspx"
protection="All" timeout="30" path="/">
</forms>
</authentication>
I authenticate the user from a d... more >>
Enable script in HTTPWebRequest
Posted by gorkos at 6/13/2005 9:31:07 AM
Hi,
I am two days trying to solve a problem with some pages, which i get through
HTTPWebRequest. Error is that some pages need Script to be enabled. But how
to do this in HTTPWebRequest class?... more >>
IE Web TreeView Control - Sorting?
Posted by Aaron Corcoran at 6/13/2005 9:05:08 AM
I posted this under the webcontrols area as well, however, I didn't
receive any feedback, so please pardon my redundant post.
Dear Group,
My coworker has been working on a project that uses the IE TreeView
control to mimic an explorer window. Everything works close to plan
except the way t... more >>
Page_Error doesn't render output
Posted by Buddy Ackerman at 6/13/2005 8:59:59 AM
I have a page where users upload files. I have the maxRequestLength set and
have created a Page_Error procedure to trap the error when someone load a
file that is larger than the maxRequestLength. The problem is that the page
does not render. I either get a "Document Contains No Data" message ... more >>
*****UNABLE TO MAP THE DEBUG START PAGE URL TO A MACHINE NAME - HELL ON EARTH - PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Posted by Tom wilson at 6/13/2005 8:57:36 AM
I can't get rid of this error. The only reference I can find is this:
1. Debugging through a firewall. Microsoft does not recommend or
support remote
ASP.Net debugging through a firewall. The best way to do overcome
this is use
Terminal Services to log into the remote server and debug ... more >>
Q: login screen
Posted by JIM.H. at 6/13/2005 8:57:06 AM
Hello,
I am tiring to create a login screen for our partners through out internet.
I have two options to go but I do not know which one I should go.
I am planning to create a user per partner in our Active Directory and check
active directory once the click login.
Or should I create the... more >>
sql server express vs sql server 2000 code
Posted by Daves at 6/13/2005 8:34:44 AM
hi all,
locally I am developing using asp.net 2.0 with SQL server express. My host
is providing 2.0 with golive but a normal sql server (2000 I guess). I am
using custom SQL expressions and the built in roles/membership functions.
Will my (sql server dependent) code run smoothly when I deploy?... more >>
DataList Table Layout
Posted by Wayne Wengert at 6/13/2005 8:24:38 AM
I have an aspx page I originzlly built in WebMatrix that includes a
"<table>" structure to layout the columns using "<tr>" and "<td>" elements
(see sample below). When I create a new aspx form in my VSNE2003 solution,
add a datalist component with table layout and paste that code, it doesn't
... more >>
<Object> Is undefined
Posted by Sam Samnah at 6/13/2005 8:15:25 AM
I posted this during the weekend and I think it was missed so I am posting
it again. I'm in real big trouble with this and need help desperately. Any
suggestions will be met with unbelievable gratitude.
I don't know why but on the outputed page the dialog helper id is not
recognized or is "... more >>
Image Upload Irrational Error - "not declared" error despite identical code!!!
Posted by Neo Geshel at 6/13/2005 8:07:08 AM
I am trying to upload images to an access db using a DataGrid. The code=20
inside the INSERT sub is identical to almost everything else I've seen=20
on the net, but it still won't work. The compiler seems to not recognize =
that the add_CarShowGalleryPhoto is referring to a form field with a=20... more >>
c# & character problem - repost
Posted by snt at 6/13/2005 7:57:19 AM
I have a C# asp.net project in which I create meta keywords
dynamically. I have a problem with "&" character. When the page is
rendered, the "&" character is converted into "&". Is there any
way to stop this?
I already once posted this question and did not get any useful help.
Any help... more >>
share same session across sub domains.
Posted by guoqi zheng at 6/13/2005 7:42:03 AM
I have an application in IIS with a few sub domains assign to it. Is there a
way for me to share session data across those subdomains?
regards,
Guoqi Zheng
http://www.ureader.com... more >>
Web controls in multiple project
Posted by venky at 6/13/2005 7:32:41 AM
How can i write a web controls which can be used in multiple projects?
I know from my project i can do add web user control.
If the same web user control i want to use in multiple projects, how do
i share it or whats the best way?
venky
... more >>
Add Existing Form to Solution
Posted by Wayne Wengert at 6/13/2005 7:08:49 AM
I am using VSNET2003/VB. I have a solution/project with a couple of forms. I
also have several aspx forms (created outside of VSNET - they were created
with WebMatrix and do not use codebehind) that I want to add to my VSNET
solution. How should I do this?
Wayne
... more >>
DataGrid Problems...
Posted by Tim::.. at 6/13/2005 6:14:01 AM
Hi Can someone please tell me why my datagrid doesn't populate with data
properly...
For some reason the DataNavigateUrlFormatString populates ok but Text
doesn't???
E.G:
Text="<%Container.DataItem(Name) %>"
I would really appritiate any help!
Inline code:::
<Columns>
<asp:HyperLi... more >>
Error codes for sql server?
Posted by Roy at 6/13/2005 5:45:49 AM
Hey all,
I wish to implement a "Try..." block into my web app (which is
basically an editable datagrid) to display appropriate error pages to
my users. Basically, the two main error's are that the request times
out while talking to sql server or that the database admin kills the
process. Does a... more >>
Web.Config file path question "<appSettings file=..."
Posted by Shark Bait at 6/13/2005 5:10:07 AM
Hi, I have a web site that I am creating locally on my workstation's "C"
drive. I have a reference in my web.config to a resource file (it contains
global keys) using "\" as the root. Everything works fine. When I move it to
a test server the mapping to the file no longer works unless I includ... more >>
avoiding postback
Posted by NH at 6/13/2005 4:27:05 AM
Hi,
I have two dropdown lists in a web form. When you choose an entry in the
first list the code retrieves records from the database and displays them in
the second dropdownlist.
Is there a way of avoiding a postback with this by maybe retrieving all the
data at the start and then filte... more >>
Problems with Response.AddHeader
Posted by Frank Bishop at 6/13/2005 4:21:02 AM
I am having problems downloading an Excel file after I export it with
another procedure. When I look at the file after export, it looks fine,
but when I use the sub below, it rearranges all the data in the excel
file to an unreadable glob. Help appreciated.
Thanks,
Frank
<code>
Sub Displa... more >>
datagrid size issue - any ideas ?
Posted by Stuart at 6/13/2005 2:51:05 AM
Hi there
I have a datagrid in my application that can vary in width dramtically, this
is due to the number of visible columns which is controlled programatically
and can vary from day to day.
For ease of use, there is an id (basically a name) column in position 1 of
the datagrid, I would... more >>
regular expression question?
Posted by Leon at 6/13/2005 2:45:11 AM
why is the following not correct in asp.net? I'm trying to match all
subdomain names 'leon.domain.com', but
not 'www.domain.com'?
Dim sdm As Regex
sdm = New Regex (?!www\.)(.*)\.domain\.com
... more >>
HttpModule read Response without using Response.Filter
Posted by Brian Norman at 6/13/2005 2:23:01 AM
Hello
Can anyone suggest a way to read the response (I want to write it to a file)
in an HttpModule but without using a response filter?
I can't see any other way to get at the response stream.
Thanks
Brian Norman... more >>
Bigger radiobutton
Posted by Nemo at 6/13/2005 2:14:03 AM
Is there anyway the make the radibutton bigger?
Bigger diameter..
Regards, Ola... more >>
flash objects in asp.net ??
Posted by fredda054 NO[at]SPAM hotmail.com at 6/13/2005 2:13:33 AM
Hi everybody !
I have a problem with a Flash movie. I just want to put an existing
..swf-file into my aspx web form. I've added the "Shockwave Flash
object" COM component to the toolbox list, (the web forms tab), and I
drag it from the toolbox menu and drop it the table cell where I want
it dis... more >>
remove a script registered with RegisterStartupScript
Posted by Ahmed at 6/13/2005 1:46:04 AM
Hi all,
Is there any way to replace a script I registered in Page Load with the
method Page.RegisterStartupScript... more >>
asp V3 and asp.net
Posted by Stuart at 6/13/2005 12:39:02 AM
Hi there
Apologies if this is an absolutely nonsense question... I have been finding
plenty of information regarding using different versions of the .NET
framework on the same web server so that web applications that have been
developed over considerable time scans by different people using... more >>
General ExceptionHandler in Asp.Net - Page_Error?
Posted by Clas at 6/13/2005 12:03:02 AM
Hi!
I want to set up an exception handler in my asp.net page which handles all
unhandled exception. When the exception is trapped I want to assign its
message to a label. How can I do this?
I have tryied to do like this:
Protected Sub Page_Error(ByVal sender As Object, ByVal e As
Syste... more >>
XML > Dataset. Please, I need help. Thank You.
Posted by Shapper at 6/13/2005 12:00:00 AM
Hello,
I have a XML file that includes the node <item>:
....
<title>...</title>
<url>...</url>
<item>
<title>title 01</title>
<description>description 01</description>
</item>
<item>
<title>title 02</title>
<description>description 02</description>
</item>
....
How to get all... more >>
File download from my ASP page
Posted by MW de Jager at 6/13/2005 12:00:00 AM
Hi
I want to make a download link on my ASP page, however if I use a Hyperlink,
this just tries to open the file in the browser and does nothing if the file
is of an unknown type. If I right click the file, I can download it as
usual.
What do I do to get a button or a hyperlink to open ... more >>
How to bind this XML data?
Posted by Shapper at 6/13/2005 12:00:00 AM
Hello,
I have a XML which contains 2 data types:
1. Data which is not repeated. (<title>, <link>)
2. Repeating data. (<item>)
My XML File:
<channel>
<title>...</title>
<link>...</link>
<item>
<title>4 Web Version 1.0 is available since today!</title>
<link></l... more >>
Convert latin-1 characters to named HTML entities?
Posted by Joergen Bech NO[at]SPAM at 6/13/2005 12:00:00 AM
Is there a function in the .Net 1.1 framework
that will take, say, a string containing Scandinavian
characters and output the corret HTML entities, such
as
æ
ø
å
etc.
I am currently using FreeTextBox, but while it seems to
convert some characters (<... more >>
How to set the RegularExpression
Posted by ad at 6/13/2005 12:00:00 AM
I want to limit the iput of Textbox:
1.The input character must within '0'-'9' or 'a'-'d', for instance
a091b, d23c, 123, ad.. is ok, but f9a, ddu.. is not ok
2. null value is ok
I set RegularExpressionValidator to a textbox, but how can I set the
RegularExpressionValidator.Validatio... more >>
Port number in a URL
Posted by Shafia at 6/13/2005 12:00:00 AM
Hi,
What exactly do I need to do to run an asp.net application remotely? The URL
contains a unique port number for each application e.g
http://localhost:60169/WebSite2/Default.aspx
This port number wasnt there for the ASP 1.1 and I guess this is the
problem. I get http forbidden 403 error whi... more >>
Problems with ListBox Control
Posted by Nayak at 6/13/2005 12:00:00 AM
On my web page, I want to let the user change the order of items in the
LISTBOX.
I could do that using the javascript , but when the page is submitted the
listbox is reset to its original values.
what happenig here ?
I am using ASP.Net with C# as the code behind
... more >>
get numbers from string
Posted by Alexander Widera at 6/13/2005 12:00:00 AM
hi,
i have a string "testing123testing".... I want out of this string only the
numbers (123) ... how can i make this?
perhaps there are some more difficulties ... if the string is
"testing123test456anothertest" ... i want both numbers ... 123 and 456 ...
thanks
Alex
... more >>
color of one <td> change by program when load - how?
Posted by Dmitry N.Ananyev at 6/13/2005 12:00:00 AM
Hello friends!
I am start my first ASP practic in VS2005.
**** My table ******************************
<table>
<tr>
<td></td>
</tr>
<tr>
<td style="background-color: #ccff66 ">TestColor</td>
</tr>
... more >>
|