all groups > asp.net > november 2007 > threads for monday november 19
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
Web.config not well-formed?
Posted by Scott M. at 11/19/2007 11:04:20 PM
I took a look at the global web.config file in the 2.0 Framework folder and
opened it within VS 2005. Upon opening it, the IDE shows many validation
errors, most of which have to do with some attributes having a value of
"true", when the schema calls for "True" or vice versa.
How can this ... more >>
this doesn't work with Netscape
Posted by Bob at 11/19/2007 7:29:00 PM
Hi,
this works with IE 7 (you can see the red label with 60px length), but not
with Netscape 8 (nothing appears):
<form id="form1" runat="server">
<asp:Label ID="Label2" runat="server" BackColor="Red"
Width="60px"></asp:Label>
</form>
Any way to make ut work with Netscape?
Thanks... more >>
Adding records to a DropDown control
Posted by David C at 11/19/2007 5:20:32 PM
I have a DropDownList control that is bound to a table with an ID and name.
i added a selection option called <new> with a value = -1.
When I choose this -1 value record I use OnSelectedIndexChange event to add
the new country to the table and that is working fine. next I want to
refresh the... more >>
HttpHandler for site
Posted by SushiSean at 11/19/2007 4:39:01 PM
ok. I have web site and create handler for all pages.
<httpHandlers>
<add type="LoadHandler" verb="*" path="*" />
</httpHandlers>
it means any page will go to this handler. I need this to make virtual path.
For example, I have page with list of customers and looks like this
ht... more >>
Viewstate Encryption
Posted by DavidF at 11/19/2007 4:21:52 PM
Hi,
I'm having a problem with viewstate encryption on one of my websites. To
encrypt the viewstate, I'm using the following lines in my web.Config file:
<pages theme="Default" viewStateEncryptionMode="Always"
enableViewStateMac="true"></pages>
<machineKey validationKey="AutoGenerate,Iso... more >>
Changing icon in GridView, and back
Posted by gianfranco dalfiume at 11/19/2007 3:38:42 PM
Hi all!
I have a gridview with a templatefield and an imagebutton
<asp:TemplateField>
<ItemTemplate>
<asp:ImageButton ID="Riepilogo" runat="server"
CommandArgument="<%#((GridViewRow)Container).RowIndex%>"
ImageUrl="~/img/search.png"
CommandName="riepilogo" ToolTip="Riepilogo attività... more >>
RegularExpressionValidator set case insensitive for both client and server ValidationExpression
Posted by J055 at 11/19/2007 3:06:22 PM
Hi
I've having trouble getting this expression to work in both javascript and
server side.
(?:^.+\.)(?i-msnx:((jpg)|(gif)))$
I'd like to apply a ValidationExpression which is case insensitive and works
in both client and .NET.
Is this possible?
Thanks
Andrew
... more >>
iPhonePlaza.net
Posted by Steve C. Orr [MCSD, MVP, CSM, ASP Insider] at 11/19/2007 2:53:42 PM
Check out the new iPhone portal site I made with ASP.NET!
http://iPhonePlaza.net
Is it hot or not?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
remove the border=1 from GridView control
Posted by Andy Fish at 11/19/2007 2:46:52 PM
hi,
I have a gridview control on my asp.net page and it generates <table ...
border="1" > in the html
i am using CSS to render the site, and everything is set up so that a plain
<table> tag generates everything looking correct. this was great for normal
tables, but datagrid screws it up.... more >>
master page across multiple web applications is broke?
Posted by Andy B at 11/19/2007 2:43:05 PM
I am trying to use a master page in more than 1 web application. I am
looking through a post on how to do it and it says "In the MasterPageFile
attribute, refer to the master page in the root project using a relative
path from the current document. " Ok so I did
MasterPageFile="~/Site1.Mast... more >>
Double Hop Network Issue
Posted by kellygreer1 at 11/19/2007 2:02:25 PM
Still working on trying to solve this issue. I have an ASP.NET aspx
page that needs to copy a file to a fileshare on another server.
As a simple test I have been trying to do the following:
string fullPath = @"\\someserver\someshare\log.txt";
File.WriteAllText(fullPath,"tes... more >>
Counting files in directory
Posted by David C at 11/19/2007 1:57:38 PM
I have an ASP.Net web site that does some file system folder access. One of
the things I am doing is counting the # of files in a passed directory to
determine if I show or hide something on the page. My problem is that I
want to ignore hidden files in the count but I can't find a way to do ... more >>
Passing a javascript array to a handler .ashx
Posted by JJ at 11/19/2007 1:52:30 PM
I am using a handler (processImage.ashx) to display an image. The image is
displayed according to parameters passed in the querystring. The handerl is
called via some clientside javascript.
I want to send an array of unknown length to the handler. I am not sure
whether the querystring is th... more >>
resource sharing between web applications?
Posted by Andy B at 11/19/2007 1:40:17 PM
I need to share resources between web applications in the same solution. The
resources are things like themes, master pages, config file sections like
connection strings, databases (especially the one used by asp.net
configuration tool). Is there any way to do this? and if so, is there a step ... more >>
Reading XML Documents
Posted by David Lozzi at 11/19/2007 12:41:01 PM
Howdy,
I have an XML document, see below. I'm trying to read from it and pull
attributes and elements as needed. The only thing i've been able to get to
work is using the Read method of the XmlReader class. I see there are other
methods of moving around but none appear to be working properl... more >>
how to display the content in dataset programmatically, but look like a gridview?
Posted by Kelly Zhu at 11/19/2007 12:40:33 PM
I am learning ASP.NET. Try to create a grid view programmatically. More
precisely, I used to work with record sets in traditional ASP. With a
recordset, I could display it in any tabular view I want. How do I do the
same in ASP.NET?
... more >>
Cropping and Scaling an image
Posted by JJ at 11/19/2007 12:05:39 PM
I have some javascipt that allows you to scale and crop an image.
However, I want the user to be able to scale and crop any number of times,
and in any order, with the possibility to undo an action. I then need to
translate the crops and scales to an image I can save (and view) via my ashx ... more >>
users permissions?
Posted by Paulo at 11/19/2007 11:48:41 AM
Hi, can you help on a best logic to do a users permissions? Each module on
menu must have a number?
example: 1 - Customers
2 - Employers
3 - Reports
etc
so example in table database the login user paul will have the numbers
associated with him... what do you think about it ?
Thanks a... more >>
How to make roles use domain accouunts not local
Posted by Premium Plastics at 11/19/2007 11:34:13 AM
I have an application that is using windows roles that was untill latly a
domain contoller. since it has demoted to a memeber server only global
groups work in roles, but we have used domain groups for all our
authentication.
is it posible to uwsse domain groups as well as global groups in rol... more >>
Javascript files
Posted by JJ at 11/19/2007 11:30:33 AM
Can you embed .js files when you compile a site into dll's? Is this option
only available when compiling controls, or is it simply not possible at all?
Many thanks,
JJ
... more >>
Final Stretch for TreeView Woes - Need Heroic Suggestions
Posted by pbd22 at 11/19/2007 11:18:10 AM
Hi.
I am almost done my treeview find-or-create logic
but keep getting parent nodes as parents of other
parent nodes... er, if you follow me. For example:
/parent
......../child
.........../file1
.........../file2
.........../file3
.........../file4
......./parent
.........../child
... more >>
Differences between Web Site and Web Application
Posted by Lloyd Sheen at 11/19/2007 10:37:50 AM
As title states is there a URL pointing to the differences between the two
project types (actually their output).
I ask this as I cannot get Ajax web service calls to work correctly for a
Web Application.
Thanks
Lloyd Sheen
... more >>
Connection issues between .Net framwok and SQl Express 2005
Posted by RGF at 11/19/2007 10:29:50 AM
Background:
I wrote a simple .bat file which executes the following sqlcmd call:
"sqlcmd -S BLUEBOX\SQLEXPRESS -d C:\App_Data\ASPNETDB.MDF -U
MyUserCount -P MyUserPassword -Q "Exec SendMessage" -o C:\Vocalico
\SendMailQuePump\Undelievered.txt"
the above command works fine, as long as no o... more >>
It is an error to use a section...
Posted by Rbrt at 11/19/2007 10:23:00 AM
I have a web site I developed on development workstation using ASP.NET 2.0.
Published it to my Win 2003 Server. This Server has been a lot of trouble -
just recently de-installed and re-installed iis and asp.net 2.0. Still
getting w3wp.exe memory errors.
I have enabled asp.net 2.0, create... more >>
High level design question
Posted by Rob at 11/19/2007 10:01:02 AM
What is the best way to safely access a companies ERP data (SQL server) from
a website that is hosted outside the firewall ?
... more >>
Waiting Message
Posted by Marine at 11/19/2007 9:51:36 AM
Hi,
I have two pages : Page1 and Page2.
On page1, I have a Response.Redirect("Page2?id=test").
On Page2, on the Page_Load event, I'm connecting to a Sql Server so it can
take a while.
I would like to show a waiting message.
For the moment, the Page1 remains until the Page2 is loaded, an... more >>
Maintaining URL encoding for comman (",")
Posted by N at 11/19/2007 9:20:58 AM
I am passing URL encoded value in query string and then on server side I
process this query string. There is one situation that is bugging me. The
value from client side can contain "," (commas) and I URL encode the value
and then explictly replace "," with "%2C". So far so good. But when i
... more >>
OT- Mail list services
Posted by Peter Bromberg [C# MVP] at 11/19/2007 8:36:05 AM
We have to send out a monthly email newsletter for a site, and the ISP is
balking because of the bandwidth spike it creates. Can anyone recommend an
inexpensive mail list manager that uses their own SMTP Server(s)?
--Peter
"Inside every large program, there is a small program trying to get out... more >>
Print HTML Page from .net application
Posted by Kumar.A.P.P at 11/19/2007 7:28:03 AM
We have a requirement in our project to print Html page from a vb.net windows
service application. The application should not display any dialog box. The
Printer details, which varies for different Print Jobs, needs to be
programmatically set. We have found the following code on the net which can... more >>
How to set role programmatically using disconnected architecture
Posted by Kumar.A.P.P at 11/19/2007 7:24:01 AM
I am developing a web application using .Net framework 2.0 and using
a disconnected architecture to connect to Oracle database.
Please let me know how and where I can specify the configuration to set the
role
similar to what we write in pl/sql for setting role as below:
set role <username> id... more >>
Include Assets in Library
Posted by shapper at 11/19/2007 6:57:29 AM
Hello,
I am working on a web control library.
How can I include my CSS Files and images in the DLL library?
I would like to be able to move only the DLL file to the web site Bin
Folder and not have to copy all CSS Files and Images.
Thanks,
Miguel... more >>
can't select one of the item in the drop down list
Posted by Claudia Fong at 11/19/2007 4:56:13 AM
HI,
I have a drop down list that I manually bond the values:
In my pageLoad I have this code
connectionInfo =
ConfigurationSettings.AppSettings["ConnectionString"];connection = new
SqlConnection(connectionInfo);
connection.Open();
Command = connection.CreateCommand();
Command.Co... more >>
Can I access rows & cols with a data source
Posted by Ant at 11/19/2007 12:53:02 AM
Hi,
I'm new to ASP & the new ADO data model so please excuse the ignorance.
I have created a data source by simply dragging a table onto the design view.
Can I now pragmatically access columns & rows of that table via the data
source or must I transfer the data into another object (table, vie... more >>
|