all groups > asp.net > march 2008 > threads for thursday march 6
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 31
Vista - IP Address
Posted by Santel at 3/6/2008 10:36:53 PM
Hi,
Anyone please suggest me to retrieve the Vista machine's IP Address
from asp.net. I tried Request.ServerVariables["REMOTE_ADDR"], but no
success.
... more >>
Vista - IP Address
Posted by Santel at 3/6/2008 10:34:35 PM
Hi,
Anyone please suggest me to retrieve the Vista machine's IPAddress
from asp.net? I tried Request.ServerVariables[REMOTE_ADDR], but no
success.
Regards,
Bhuvana... more >>
HTML not generated on client
Posted by Steven at 3/6/2008 7:46:16 PM
Hello,
The code below will not generate the html for ImageSec. Can anyone tell
me why?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DynCtls.aspx.cs"
Inherits="DynCtls" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1... more >>
aspx html table caption got missing?
Posted by ckkwan@my-deja.com at 3/6/2008 7:31:40 PM
Dear All,
Using Framework 1.1.
Create a html table with <caption> tag, everything works fine.
However, when I put "runat=server" for that table, the caption get
missing :(
I can still see the caption in Designer view, just that when it render
by the IIS during runtime, the caption is g... more >>
passing values from chil pop up to parent
Posted by Vinki at 3/6/2008 5:37:01 PM
Hello Everyone,
I am trying to pass the value from my child window to my parent window. I
don't get the value from child to my parent when I refresh my parent page,
if I don't refresh my parent page then I get the value frtom my child window.
Below is the code in my parent window and chi... more >>
getting application ID
Posted by Keith G Hicks at 3/6/2008 5:08:25 PM
I am trying to figure out how to get the UserID from aspnet_Users in my
vb.net code after the user logs in. I have code that's pretty much working
except for one thing. I need the value of the ApplicationID. I tried
HostingEnvironment.ApplicationID but that returns something like this:
'/LM/w3... more >>
Setting Cookie.Expires
Posted by Joe at 3/6/2008 4:11:02 PM
I'm trying to set the Expires property of a cookie in a control by doing the
following:
this.Context.Response.Cookies["mycookie"].Expires =
DateTime.Today.AddDays(1);
But when I refresh the page and check the same
this.Context.Response.Cookies["mycookie"].Expires it has the default date
... more >>
EXECUTE permission denied on object 'aspnet_CheckSchemaVersion
Posted by Jeff at 3/6/2008 3:54:45 PM
asp.net 3.5
I've created a database in Sql Server 2005 for my asp.net project. I used
aspnet_regsql to add membership tables and stored procedures.
Then I added a login/user to this database. Default schema for this user is
dbo.
When I try to execute my asp.net webpage I get this error:... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
conditional redirects based on login status and other conditions
Posted by Keith G Hicks at 3/6/2008 3:53:51 PM
asp.net 2.0
I have a login control on a Login.aspx page. If a user tries to go to a page
and is not authenticated and should be then he's taken to the login page.
The login control has a property (DestinationPageUrl) for the page to go to
on successful login. But I need more than one destinati... more >>
Master Pages with Login Status
Posted by cs_in_va at 3/6/2008 2:41:39 PM
I'm trying to write a notification button on my master page so if
someone is logged in it will display some text in a label.
But I don't get the user.identity.isauthenticated in my code behind
file. What do I need to import?
Thanks
... more >>
default button in password recovery control
Posted by Keith G Hicks at 3/6/2008 2:34:15 PM
asp.net 2.0
I have an asp:Login control and an asp:PasswordRecovery control on the same
page. The login control is above the recovery one.
When I open the page, I'm setting the focus to the login control. I type in
my user name and password and hit ENTER and it logs me in. That's fine.
Wh... more >>
ImageButton in DataGrid wont submit when deployed to live
Posted by Frawls at 3/6/2008 2:33:45 PM
I have a datagrid which contains an ImageButton.
This datagrid is in a control which is in an aspx page. the aspx page
contains the form:<form id="frmItemDetail" runat="server">
On my local machine the ImageButton submits my page fine. Everything
works fine locally. But when i deploy my site... more >>
Page Request Parser Error Exception with AJAX-enabled page
Posted by JM_newsgroups at 3/6/2008 2:08:33 PM
Hi,
When I do a postback on a particular AJAX-enabled page, I get a popup
that says: "Sys.WebForms.PageRequestManagerParserErrorException: The
message received could not be parsed. . . . "
It comes and goes, and I only get the message once. A second submit
does not produce the message. An... more >>
Replacing Text without changing case??
Posted by wildman@noclient.net at 3/6/2008 1:46:08 PM
RE: Replacing Text without changing case??
This code works great, but case has to be exact.
Research.Text = Research.Text.Replace(textboxSearch.Text, "<b>" +
textboxSearch.Text + "</b>")
I found some c# code, but I can't make it work in vb.net:
Regex.Replace(Research.Tex... more >>
401 unauthorized message
Posted by Blasting Cap at 3/6/2008 1:33:11 PM
I've got a web service that had been functioning up until I moved it to
a new server a while back.
It basically is a screen scrape that grabs off html off a UPS or Fedex
web page.
All of a sudden, I'm getting a 401 Unauthorized message when I try to
run it. So is another application tha... more >>
How can i use a windows forms dataset for my asp .net website or vice versa?
Posted by Anjan Bhowmik at 3/6/2008 1:32:56 PM
I have a project that access data by asp .net intranet site and windows
forms c# application.
So i want a single dataset to be used by these 2 applications. But could not
do that, the dataset from 1 would not even compile under another project.
So, what do i do to make them work?
... more >>
link URL confusion
Posted by Keith G Hicks at 3/6/2008 1:18:23 PM
I'm confused about how to code a link button to go to the page I need
(asp.net 2.0)
My root is "Website1"
Here's the layout for the purposes of this question:
Website1 (folder)
masterpage.master (in the root)
Admin (folder off the root)
SendMail.aspx (uses the master)... more >>
frontpage server extensions not installed
Posted by Paul at 3/6/2008 1:04:00 PM
Hi,
I have installed vs2005 and when I try to create a web project using
http//localhost/webdir I get the error
frontpage server extenstions not installed. Just wondering were to get this
at and is it part of the VS2005 professional cd packet?
Thanks Paul.
--
Paul G
Software engineer.... more >>
ASPNETDB.MDF and Sql Server 2005 Express
Posted by Jeff at 3/6/2008 12:20:01 PM
hey
VS2008 (90 days trail version)
I have created a simple asp.net project in VS2008. Now I want to connect to
the ASPNETDB.MDF database from "Sql Server 2005 Express Management studio",
because I think it's easier to work with the database from there (compared
to VS2008). But I don't se... more >>
line feeds in Gridview cells? vbcrlf ? new line?
Posted by wildman@noclient.net at 3/6/2008 11:53:42 AM
Is there any way for gridview cells to observe vbcrlf in the data?
I attempted to do this, but it does not seem to work.
Dim dgItem As GridViewRow
For Each dgItem In gridCollaborator.Rows
dgItem.Cells(6).Text.Replace("-", vbCrLf + "-")
Next
I also trie... more >>
Can't find my images folder - why?
Posted by LP at 3/6/2008 11:41:13 AM
Hi there,
Sorry if this is a little off-topic here but can anyone explain why, when I
launch my website from within VS, it can find my image files ok when they're
in the root like so:
<img src="Test.jpg">
<img src="http://localhost:3932/WebSite/Test.jpg">
but can't find them in "App_Da... more >>
Checking the AUTH_USER against AD (and looking to see which group they're in)
Posted by Jim in Arizona at 3/6/2008 10:51:05 AM
I've been searching a lot for a simple example to search for a single
account name in active directory but have been unable to find what I'm
looking for. I did find an exmple (that worked) that pulls out all names in
the AD but that isn't what I need.
My goal is to check the AD for a userna... more >>
Javascript confusion....
Posted by George Ter-Saakov at 3/6/2008 10:40:54 AM
I am trying to get into depth of JavaScript a little more and find it a bit
confusing for person who is used to C#/C++ object oriented approach..
So I need some help in understanding how staff works... Given following
object definition
ZColor = function(num)
{
var a = num + 1;
this.b ... more >>
custom registration / login forms
Posted by brock wade at 3/6/2008 9:48:27 AM
I'm using VB.net/Visual Web developer/ASP.net. Would anyone have or
know where I could get some basic .aspx registration and login forms
without using the "WIZARDS"?
I'm restricted to using an Access database to store users names, email
addresses, and passwords. I'm wanting to stay clear of th... more >>
Aggravating Noob Question - Images won't display
Posted by Arch Stanton at 3/6/2008 9:41:03 AM
I'm an absolute newbie trying to teach myself asp.net from a dummies
book and the web. Sorry in advance.
I'm just trying to display images on my .aspx page. I've tried both of
these approaches:
<img src="CTLogo.gif" />
<asp:image runat="server"
id="CTLogo"
imageurl="CTLogo... more >>
Handling errors thrown in Application_Error()
Posted by Phil Johnson at 3/6/2008 9:02:01 AM
I have a web app that handles errors in the Gloabal.ascx's Application_Error().
It does some logging etc in there and if it throws an error, I want the app
to display a static html splash page rather than a yellow screen asp.net
error.
I have tried setting the custom error page and also a ... more >>
Method not found
Posted by Fred at 3/6/2008 8:43:02 AM
Hello,
I get this strange error in the code of a very simple aspx page just
called to download a file.
Do you have any idea about it ?
(The same code works fine on another server)
Server Error in '/' Application.
---------------------------------------------------------------------------... more >>
databind asp.net wizard control
Posted by MarcG at 3/6/2008 7:53:02 AM
I want to use a asp.net wizard control to help the user enter fields for a
single complex record. The idea is for each page to solicit data for a subset
of the fields and at the end do the update.
The wizard has a DataBind method, but I can't find a way to associate the
SqlDataSource on the... more >>
Dynamically set the checkbox column in a gridview
Posted by Robert Smith at 3/6/2008 7:49:02 AM
Hi,
I have a GridView with a checkbox column in it called FromInsight,
however this
is not bound to the dataset, its value is based on another column from the
dataset called sourceid
For each row FromInsight = true if (SourceId > 0). I try to loop around the
gridview and add the value ... more >>
Automatically create stubs for handling events from aspx/ascx source view?
Posted by DC at 3/6/2008 7:02:11 AM
Hi,
when I add a control like
<asp:LinkButton runat="server" id="myLink" />
then I can switch to the design view and click on the OnClick event,
enter a name for the handler, hit "Tab" and get an automatically
created event handler in code behind.
Can I do this without going to design ... more >>
Why RangeValidator and RegularExpression cannot validate null values??
Posted by lander at 3/6/2008 6:42:43 AM
For example:
http://quickstarts.asp.net/QuickStartv20/aspnet/samples/ctrlref/validation/RangeValidator/RangeValidator1_cs.aspx
How can make it validate null values easily???
thanks!... more >>
Anonymous Type. How to solve this?
Posted by shapper at 3/6/2008 6:41:53 AM
Hello,
I am getting a anonymous type from Linq Query inside a function.
How can I return the obtained values and use them outside the
function?
Do I need to create a new class?
Here is my code:
Public Shared Function GetStats() As ??????????????????
Dim database As New Co... more >>
where can I find some good-looking asp.net themes(skin file)??????????
Posted by lander at 3/6/2008 5:32:53 AM
where can I find some good-looking asp.net themes??????????
It's really time-consuming to write skins in asp.net 2.0......Where
can i find some reusable skins?
Thanks really!!!... more >>
Data binding a Crystal report to an object in a web app
Posted by kkarre at 3/6/2008 5:09:07 AM
Hello,
We want to use Crystal Reports to print a page with customer info.
However, we cannot connect a new report to our object! We have looked at the
samples and done the same but to no avail.
We cant even recreate the data connection in a new report in the sample web
application!
Is this a... more >>
Slow Rendering Page on First Access
Posted by Wannabe at 3/6/2008 4:54:00 AM
I have a page that take 10-15 seconds to load up the first time you access
it. Once the page loads, it runs super quick, but that initial hit (like
after an hour if no one has hit the page) takes a long time to come up.
Just to rule out databases, and any other external thing I could think of... more >>
Getting Byte[] data with MySQL -Cast(... AS BINARY)
Posted by ist at 3/6/2008 4:28:32 AM
Hi,
I am trying to get (and transfer over ASP.NET) some encrypted data
from some MySQL fields. Since the data contains many unicode
characters, I tried to get the data as a series of ASCII values,
transfer those numeric values over ASP.NET. I had no problem doing
this on my local computer, by... more >>
|