all groups > asp.net > april 2007 > threads for monday april 23
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
Friendly Urls with page title in (eg. page-title.aspx)
Posted by anthonykallay NO[at]SPAM googlemail.com at 4/23/2007 11:59:23 PM
Hi there,
I am trying to rewrite my url's for SEO purposes and have read this
great article below
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewri...
I can follow all the steps but all it really tells me is how to go
form page.aspx?id=1 --> page-1.aspx, what i rea... more >>
How to prevent the user uploading corrupted or damaged files?
Posted by muthu at 4/23/2007 11:42:00 PM
Hi,
User will upload only picture and pdf files. I have return a asp.net
application for that,But thing is I need to restrict the user
uploading corrupted or damaged files.
Can anyone have any idea?
... more >>
Invalid object name 'xxx.PersonInfo'.
Posted by moni at 4/23/2007 11:38:25 PM
Hi,
I am using a table named PersonInfo in my database monisha in the SQL
server.
I need to use this in a .aspx file , but its giving me the error of
invalid object name.
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ConnectionStrings:monishaCS%>"
... more >>
ViewState?
Posted by gorostas at 4/23/2007 11:25:28 PM
Hi all,
i gues that this is not some new q but also..
is there a way to shorten that biiiig "_viewstate" my aspx pages
generate...*??
and, i know that i do need some, for gridview databind and some else..
thanx in advance
... more >>
HttpRequest constructor question!
Posted by Jeff at 4/23/2007 10:48:48 PM
ASP.NET 2.0
I'm about to program a HttpRequest from my asp.net 2.0 website. I'll request
another server using HttpRequest and ask if password etc are okay....
So I've looked into the HttpRequest constructors and cannot see how to use
it.
public HttpRequest (
string filename,
string ur... more >>
ASP.net 2 Master pages menu and saving pages - Weired situation - please help
Posted by Annie at 4/23/2007 10:41:18 PM
Hi guys,
I am having a weired situation that don't know how to handle it ...
I have master pages, the master page contains a dynaic menu which is set up
in the database
and has page url, name, title etc.
The menu is loaded dynamically at run time. The problem that I have is that
once the... more >>
Google Maps using ASP.NET
Posted by xml .NET group at 4/23/2007 9:35:31 PM
Is there any book on using ASP.NET for Google Maps. For example, following
books:
http://www.amazon.com/Beginning-Google-Maps-Applications-Ajax/dp/1590597079/
http://www.amazon.com/Beginning-Google-Maps-Applications-Rails/dp/1590597877
... more >>
Forms Authentication - Really really basic question
Posted by LW at 4/23/2007 9:18:02 PM
Hello!
I am just learning about forms authentication so please excuse this basic
question. I am using .NET 1.1 and C#.
I have created my web.config file and my login.aspx and the associated cs
file using
examples on MSDN. I have created a FormsAuthenticationTicket and cookie and
added the co... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP.NET 2.0 Compilation Model - I don't get it?
Posted by Spam Catcher at 4/23/2007 7:16:42 PM
Hi all,
From what I read, VS.NET 2005 doesn't precompile web applications into a
DLL for deployment, rather you need to manually precompile before release.
However, I have a web application in my project and it is compiling like in
..NET 1.1 - it is generating a set of deployment DLLs.
... more >>
problem with postback
Posted by Harry at 4/23/2007 7:04:49 PM
Hi,
This aspx page (let's call it thispage.aspx) fetches data from a
sqldatasource, then performs several things (in code-behind) and, to
simplify, passes data from code-behind via a hiddenfield to a javascript in
the aspx file. This javascript performs things and finally send data via a
... more >>
Passing Null to Function ?
Posted by luqman at 4/23/2007 6:08:57 PM
I have defined custom binding in DetailView Textbox.
<%# ShowParent(Eval("ParentID")) %>
Its calling a ShowParent() function which is as under:
The problem is that if ParentID field is Null,then the above line passes the
Null to function and error occurs when converting DBNull to Int16.
... more >>
TD tags are wider than necessary
Posted by Nathan Sokalski at 4/23/2007 5:55:23 PM
I have made a UserControl that contains the navigation for my site. However,
the table cell that I am putting it in is taking up more width than
necessary, therefore leaving extra whitespace on my pages. I have tried
everything I can think of to get rid of this problem, but it still remains.
... more >>
Try...Catch...Finally not firing finally?
Posted by David Lozzi at 4/23/2007 5:46:36 PM
Howdy,
I ran into a very interesting issue and I'm curios as to how this is suppose
to work. I am using Try...Catch...Finally statements for all database
connectivity in my ASP.NET 2.0 web application. I'm connecting to IBM's
Universe 10.2 using UniObjects.Net. Anyway, if the connection err... more >>
Random error on asp.net app
Posted by Nalaka at 4/23/2007 4:32:08 PM
Hi,
I get the following random error... on a asp.net 2.0 aplication.. running at
a hosting company (locally no issues).
It seems like this happens only when pageOutputCache is enabled and when the
app is running on a subDirectory (not root).
Some others that has the same issue.
http://comm... more >>
Checking for Null in Function ?
Posted by luqman at 4/23/2007 3:19:25 PM
How can I check if dv recordcount isNull ?
Best Regards,
Luqman
Function showRecords(byVal ItemID as Int16) as String
Dim SqlArg as New DataSourceSelectArguments
Dim dv As New System.Data.DataView
dv=sqlDatasource.Select(SqlArg)
If dv.Item(0).Rows.Count.Equals(System.DBNull.Value) the... more >>
Sending data to Word
Posted by David C at 4/23/2007 2:25:54 PM
I have an ASP.Net 2.0 intranet application and would like to be able to send
a name and address to an msword content type or something. I want to first
just send out the person's name and address to the upper-left portion of the
newly created .doc format so the user can finish the letter and ... more >>
Need a new line in my label tag
Posted by moni at 4/23/2007 2:22:57 PM
Hi,
I am getting a label to display data on page load after retreiving
from the SQL server. But I need to display many values, so I am
concatenating a string value and then using a label to display it.
totalMessage = (string)dreader1.GetValue(2);
totM += totalMessage + "\n";... more >>
Invalid character in a Base-64 string
Posted by James at 4/23/2007 2:22:03 PM
I'm trying to encrypt a part of a url as follows:
test.aspx?id=123&check=abc
Basically, I'm using TripleDes encryption to encrypt the id, then include
this as check in the url to prevent tampering. I'm working from some code
from http://www.15seconds.com/Issue/021210.htm
It seems to wor... more >>
Security Exception
Posted by trs at 4/23/2007 2:17:02 PM
Hi,
If anyone could please throw some light on how I can solve this error.
Have tried giving permission to the folder.
Description: The application attempted to perform an operation not
allowed by the security policy. To grant this application the
required permission please contact your sy... more >>
Membership Control Advice Wanted
Posted by Rusty Hill at 4/23/2007 1:27:55 PM
I am creating a web app to be shared amongst companies. Each user's
credentials will be in the common ASP.NET membership database. Each company
will have their own data base.
I need to be able to correlate each user to their company so I know what
connection string (which I want to store ... more >>
How do I define the ID field in an access table in VB.net to be incremented through the Visual Studio 2005 GUI interface
Posted by minkokiss at 4/23/2007 1:22:22 PM
OK so the situation is the following. I added my access database to my
ASP.net project (I am using VB.net) and the links work perfectly and I
can pull up the data in the datagrid view and everything. However when
i try to write a record to the database ( i am using the properties of
the AccessDa... more >>
ExecuteScalar method sometimes work, sometimes doesn't
Posted by Randy Smith at 4/23/2007 12:45:42 PM
Hi,
I've got some weird behavior happening within one of the datamappers. It
all has to do with inserting a new row, and returning the Id of the row
being entered.
Here is what the code looks like that is getting "Object reference not set
to an instance ..." run-time error:
... more >>
Required validator always firing
Posted by David C at 4/23/2007 12:08:11 PM
I have a RequiredFieldValidator on a DropDownList but it fires even when I
click the cancel button. How can I ignore and still keep the required
validation if the user actually makes entries in the other fields. Thanks.
David
... more >>
PreviousPage is null
Posted by Bryce at 4/23/2007 12:06:45 PM
I have a search page that submits to a search results page. I have set
the search results page to be authenticated, so when the user first
tries to search, it redirects them to a login screen. When they log in,
it goes to the search result screen. But when I do, the PreviousPage
variable is ... more >>
How to force UTF-8 coming from database?
Posted by darrel at 4/23/2007 12:06:32 PM
I'm having a hell of a time getting a valid RSS feed created. From what I've
discovered, my RSS XML has to be UTF-8 encoded for IE to know what to do
with it.
I can't force this using the XMLWriter as, apparently, if the data is
UTF-16, XMLWriter goes ahead and changes the encoding for me.
... more >>
Database connection pooling in ASPx
Posted by fniles at 4/23/2007 12:05:21 PM
In the Windows application (using VB.NET 2005) I use connection pooling like
the following:
In the main form load I open a connection using a connection string that I
stored in a global variable g_sConnectionString and leave this connection
open and not close it until it exits the application... more >>
Help - Binding data on a UserControl within a DataGrid TemplateColumn
Posted by Stephen Barrett at 4/23/2007 11:56:50 AM
I have an application that was originally built with ASP.Net 1.1.
We finally got permission to migrate to 2.0. Due to time constraints we
migrated the web projects to 2.0 web application projects to minimize
required changes initially.
I am stuck on a problem using a data grid.
I have ... more >>
Web services and security
Posted by Smokey Grindle at 4/23/2007 11:52:29 AM
I want to make a security system in my webservice similar to the one that
reporting services uses it has a logon user and logoff user web method...
when you log on it logs you into a session and maintains your logged in
status until you log off or timeout... I dont want to have to pass
usern... more >>
Microsof Virtual Web Developer Express Edition wheres the Publish option gone?
Posted by jfarrell NO[at]SPAM homester.co.uk at 4/23/2007 11:48:11 AM
Hi there,
Im attempting to publish my site to local then copy files to the web
server. The only option there seems to be in VWDE is to build/copy
the site...where is the Publish website option ?
any ideas
thanks
TP
... more >>
If you haven't done so already...bookmark this blog entry
Posted by Juan T. Llibre at 4/23/2007 11:45:44 AM
Scott has put together a lot of "ASP.NET 2.0 Tips, Tricks, Recipes and Gotchas" in it.
http://weblogs.asp.net/scottgu/pages/ASP.NET-2.0-Tips_2C00_-Tricks_2C00_-Recipes-and-Gotchas.aspx
Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http:... more >>
local client machine
Posted by Gavin Sullivan at 4/23/2007 11:35:30 AM
Hi,
Is there a way to determine the name of the machine that a page is viewed
on?
Ie, if Fred is using a PC called BURT, is there a way to determine that Fred
is using BURT to run is Browser to view the page?
Regards
... more >>
Maintaining a session through the full website
Posted by moni at 4/23/2007 11:24:28 AM
Hi,
I was hoping I could get a help on this one. I am creating a simple
website, in which I have a login after which the user gets logged in
using a session variable where I append the ID,eg
http://localhost:3944/monisha/Experiments/Projects/Copy/ProfilePage.aspx?ID=1
But from this profil... more >>
Handling Onclick Event from dynamically created linkbuttons (1.1)
Posted by RSH at 4/23/2007 10:04:18 AM
Hi,
I have a page that is generating Linkbuttons dynamically. I need to
dynamically wire up the buttons to an OnClick handler server side.
I am using this code but they are not firing the event.
What am i missing?
Dim ctrl As New LinkButton
ctrl.CommandName = "LoadUser"
ctrl.Comm... more >>
How to implement a "value" property for Web User Controls?
Posted by Harvey Triana at 4/23/2007 9:54:39 AM
Hi--
Sample. When i write something like:
<input type="button" name="btnSend" value="Send"
onclick="callSomeTask(getElementById('myControl').value );return false;
/>
I can run some cliente code if "myControl" is an Asp Textbox;
getElementById('myControl').value get current Text of T... more >>
Using VWD with SQL 2000
Posted by Jim at 4/23/2007 8:28:00 AM
I currently have three new websites under development and all need ASP.NET
2.0 type functionality such as Membership and data access. I currently use
FrontPage 2003 as my preferred website development tool and am attempting to
use VWD Express 2005 to add ASP.NET 2.0 functions to these sites.
... more >>
Permalinks
Posted by shapper at 4/23/2007 8:00:57 AM
Hello,
I am creating a simple Asp.Net Blog system. All blog posts have an ID
which is an unique identifier (a GUID).
Now I wanna create permalinks. What format should I use? How can I do
this?
Could someone, please, help me out?
Thanks,
Miguel
... more >>
Define Properties
Posted by shapper at 4/23/2007 7:46:20 AM
Hello,
I created a library with various web control classes. All these
classes access to an SQL database and have a few common properties.
Some of the properties are commonly used by the web controls classes
are: ConnectionString [String], Mode [Enumeration], Keys [Array of
String], etc.
... more >>
asp page that query Exchange ldap attributes (Error 70 with External account)
Posted by ouistyty NO[at]SPAM gmail.com at 4/23/2007 6:51:33 AM
Hi We have a simple asp page that query LDAP attribrute.
Everithing is working fine using a native domain account. but when
using an external account we have an error 70, acces denie.
Here's some basic info on our structure.
- Domain/Forest A with Exchange
- Domain/Forest B with external ac... more >>
SQL Server connection Pool error in Debug
Posted by Jerry J at 4/23/2007 6:20:01 AM
In my ASP.net application I am getting the following error...
"Timeout expired. The timeout period elapsed prior to obtaining a connection
from the pool. This may have occured because all pooled connections were in
use and max pool site was reached".
This only happens when I am in debug... more >>
Get Table Cell Value using Javascript
Posted by C at 4/23/2007 5:48:01 AM
How do I get the text from my cell e..g. <td>Test Text</td>
var elTableCells = elTableRow.getElementsByTagName("td");
alert(elTableCells[0].innerText);
... more >>
Get Table Cell value using Javascript
Posted by C at 4/23/2007 4:42:03 AM
How do I get the text from my cell e..g. <td>Test Text</td>
var elTableCells = elTableRow.getElementsByTagName("td");
alert(elTableCells[0].innerText);
... more >>
simple chat system
Posted by miladhatam NO[at]SPAM gmail.com at 4/23/2007 4:21:56 AM
did you write any code about simple chat system in a personal site
between 2 persons
i don't know what is the data structure of that
or database will be needed ?
thanks ...
... more >>
Write out Javscript Array from C#
Posted by C at 4/23/2007 4:10:01 AM
In my C# code I have a collection of values.
I want these values to be available to my clientside Javascript.
How can I do this?
Write to a hidden field?... more >>
Get HTML Table ID
Posted by C at 4/23/2007 3:28:02 AM
Hi,
I get a collecton of tables usig below JS.
How do I write out the table ID in my alert?
var eleTables = document.getElementsByTagName("table");
for (var i=0; i < eleTables.length; i++)
{
alert(eleTables[i].Id);
}
... more >>
accessing child controls
Posted by vespaboy at 4/23/2007 3:27:18 AM
i have a calendar control and i have added a dropdownlist control to
each day using the OnDayRender method:
Dim ddl As DropDownList = New DropDownList
ddl.AutoPostBack = True
....
....
e.Cell.Controls.Add(ddl)
However the autopostback event is not firing, indeed no autopostback
code is a... more >>
Page break in ASP pages
Posted by iweb at 4/23/2007 3:10:03 AM
Can we set page breaks in ASP Pages dynamically based on the data being
populated?
Akshay.... more >>
Monthly Repeater for news articles
Posted by anthonykallay NO[at]SPAM googlemail.com at 4/23/2007 2:55:25 AM
Hi,
I am trying to display my news articles by month, i am aproaching this
via the use of a nested repeater so that the main rptr will display
the month abnd then using itemdatabound i can pull all articles for
that month.. What i am struggling with is the code to programatically
fill the mai... more >>
HttpRuntimeConfig MaxRequestLength
Posted by bixbarton at 4/23/2007 2:52:18 AM
Does anyone know how to obtain the MaxRequestLength easily?
I have found that if you do the following;
object getCon = HttpContext.GetAppConfig("system.web/httpRuntime")
Then look at getCon in debug, you can see the HttpRuntimeConfig object
with the MaxRequestLength in it, but you cannot c... more >>
Can anybody give code for GridView1_RowUpdating()
Posted by Bhagya at 4/23/2007 1:32:27 AM
DataSet ds = new DataSet();
DataTable dtAddUsers = new DataTable("Names");
public void CreateDataset()
{
dtAddUsers.Columns.Add("Name", typeof(String));
dtAddUsers.Columns.Add("Place", typeof(String));
ds.Tables.Add(dtAddUsers);
ViewState["Dat... more >>
Retrieving the COM class factory for component with CLSID ....
Posted by Badis at 4/23/2007 1:08:00 AM
Hi,
I'm using automation and it's working fine when I run it from my local
machine. but if I try to access it from another machine it's giving me this
Error:
Retrieving the COM class factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following erro... more >>
GridView1_RowUpdating
Posted by Bhagya at 4/23/2007 12:22:20 AM
How do i use the GridView1_RowUpdating event?? Can someone please post
the C# code for this...Thanks in advance
... more >>
Problems with SQL server
Posted by Toni at 4/23/2007 12:00:00 AM
I have some program in VB6 (I can make new in .NET if it is necessary). This
program is working with SQL Server 2000 database from long distance
(computers are in agencies and is connected to DSL and VPN connection).
Every few days some of computers can not connect to sql server, but other
c... more >>
what $ means in the javascript
Posted by Victor at 4/23/2007 12:00:00 AM
i found some example js. the character $ has been used a lot. What's that
mean? can someone give me some reference on that?
Thanks
... more >>
Localization/Date Issues
Posted by Vinod at 4/23/2007 12:00:00 AM
Hi ,
I am having any application whose client base is in Australia, the
application is hosted in USA.
Brief Overview :- Application sets new menus every month.
I am facing the following problems :-
a) When a user is accessing the application on May 1st 2007 from Australia
current... more >>
vertical column header text
Posted by L.Peter at 4/23/2007 12:00:00 AM
Hi Group,
I have a gridview with 20 columns
column1, column2 ...
Is it possible to display the text of column header vertically.
i.e:
c
o
l
u
m
1
TIA
Peter
... more >>
Using Short Cut Keys like F2, F3 in Web Form ?
Posted by luqman at 4/23/2007 12:00:00 AM
How can I use the short cut keys like F2, F3 on web form, so do some
process.
For example: Pressing F2 should save the Document, pressing F3 should click
the Button etc.
I am using VS 2005.
Best Regards,
Luqman
... more >>
|