all groups > asp.net > august 2007 > threads for friday august 17
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
Problem with 2 SqlDataSource
Posted by Julien Sobrier at 8/17/2007 10:31:21 PM
Hello,
I have 2 SqlDataSource on the same page that retrieve the same column names:
<asp:SqlDataSource ID="SqlStructure" runat="server"
SelectCommand="SELECT a, b FROM c WHERE d = 0 />
<asp:SqlDataSource ID="SqlSons" runat="server"
SelectCommand="SELECT a, b FROM c WHERE d = 74" />
The ... more >>
How do I get the SMTP email address from web.config?
Posted by David Thielen at 8/17/2007 10:10:00 PM
I've tried:
MailSettingsSectionGroup mailConfig =
WebConfigurationManager.GetSection("system.net/mailSettings") as
MailSettingsSectionGroup;
and:
Configuration configurationFile =
WebConfigurationManager.OpenWebConfiguration("/Web.Config");
MailSettingsSectionGroup mailConfig;
if (co... more >>
Third party control on page
Posted by Supriya at 8/17/2007 7:25:48 PM
Hi All,
I added one ActiveX control to the web page from html source.
<OBJECT id="MyWinControl1" height="147" width="186"
classid="http:ActiveXDotNet.dll#ActiveXDotNet.myControl" ></OBJECT>
How can I access this control(MyWinControl1) in my aspx.cs ?
I am new to the web applications. Pl... more >>
Ajax - "exception has been thrown by the target of an invocation"
Posted by Monty at 8/17/2007 7:17:10 PM
[ASP.Net 2005, WinXP SP2, IE7]
I have a GridView in an update panel, and the GridView has an
ObjectDataSource. Under certain conditions the Object that is the
ObjectDataSource will throw an exception with a specific error message, but
on the client side the only error message displayed is "... more >>
where do page_load and page_loadcomplete methods come from?
Posted by Steve Richter at 8/17/2007 7:14:23 PM
how do methods in like Page_Load and Page_LoadComplete get
automatically wired up to hook their corresponding page events? I
dont see them in the MSDN documentation of the System.Web.UI.Page
class.
thanks,
-Steve
... more >>
MaterType
Posted by Mick Walker at 8/17/2007 5:57:38 PM
When I want to reference my master page I use the following:
<%@ MasterType virtualPath="~/Layout.master"%>
Is there anyway I make this global within my project for all content
pages? (in the web config or such)
Regards... more >>
Proper way to use LIKE operator with SqlDataSource and control parameters in declarative markup?
Posted by kenfine NO[at]SPAM nospam.nospam at 8/17/2007 5:35:39 PM
I'm trying to use LIKE operators in SqlDataSource with Control Parameters.
The following should express my intent, but it does not work in the way I
want it to (returns no results):
SelectCommand="SELECT title, conid FROM Contentitems WHERE ((categoryid =
'102') AND (byline LIKE '%@byline%'... more >>
Sliverlight canvas not showing drawings
Posted by Cindy Lee at 8/17/2007 4:54:49 PM
When I do a debug on visual studio I get the 3 circles like in the test
example, but when I deploy it to my server I just get a blank canvas. You
can see the blank canvas size though. Is there anything i need to install on
my 2003 .net server?
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Are Application collection and Page.Cache thread safe?
Posted by Max2006 at 8/17/2007 4:47:21 PM
Hi,
Since Application collection and Page.Cache can be shared among all
sessions, I wonder if they are thread safe?
Thank you,
Max
... more >>
asp.net 2 @ client coockies
Posted by pelegk1 at 8/17/2007 4:06:07 PM
i am trying to use this code:
[code]
If (True = Request.Browser.Cookies) Then ' this works!
Dim testCookie As New HttpCookie("LastVisited")
testCookie.Values.Add("time is now", DateTime.Now.ToString)
testCookie.Expires = DateTime.Now.AddDays(20)
testCookie.... more >>
Locate records DataSet
Posted by Paulo at 8/17/2007 3:20:53 PM
Hi, is there any way to do a Find / Locate on a DataSet? Because I need to
do a ID field search on a DataSet...
Thanks
... more >>
Sub domain creation....
Posted by Jawad Rehman at 8/17/2007 3:13:56 PM
Hi there,,
I want to create subdomains from my web page automatically...in most
of website,when u registered
with them,they give a sub domain.
i registered in website.www.blogger.com
they give me a URL to browse my profile.i.e
"meonline.blogger.com".meonline is my user name.
I need hel... more >>
Pharmacology database website
Posted by NavyPsych at 8/17/2007 3:10:23 PM
I have a website that I would like to add a pharmacology
'database' (for lack of a better word) of about 50-75 drugs.
Basically
I want users to be able to click on any drug and quickly have a page
refreshed with that drug's data, with all pages having the exact same
format, i.e. drug indication... more >>
usercontrol datatype
Posted by Arne at 8/17/2007 2:53:44 PM
My code
Dim AgentControl As UserControl
AgentControl = LoadControl("AgentVerification.ascx")
How do I change my usercontrol to type AgentVerification so I can invoke
properties and methods in my usercontrol?
--
Arne Garvander
Certified Geek
Professional Data Dude... more >>
Help! Cannot login using IE but can using FF
Posted by hplayer03 at 8/17/2007 2:41:07 PM
I am really stumped on this one....
I have a .net site that uses the default login controls to have users
login. I recently made changes to the site (just look and feel) and
now I cannot login using IE but still can using FF.
Is there some setting in IE that i need to change?
I'm using a... more >>
Css and DataGrid
Posted by tshad at 8/17/2007 2:31:22 PM
I am having a problem getting my Grid links to work correctly.
I have the following DataGrid:
<anthem:DataGrid AllowPaging="true"
AllowCustomPaging="false"
PageSize="10"
PagerStyle-Visible="false"
Visible=false
AllowSorting="True"
... more >>
Width
Posted by Paulo at 8/17/2007 2:10:10 PM
Hi, I couldnt find how to control the width of a column on the GridView...
how can I control it ?
Thanks
... more >>
Secure Folders
Posted by Timbo at 8/17/2007 2:05:14 PM
Hello all,
I have created a secure folder on my web server and created a user and
password that can access it. So when you navigate to a page/file within
this folder the login box appears. Here's my question:
From a link on a form (outside the secure folder), can you send the user
name... more >>
question about .net framework 3.0
Posted by Mich at 8/17/2007 12:17:02 PM
Hi,
i run asp.net application under IIS 6.0 (Windows server 2003 sp2) and .Net
Framework 2.0.
I read that .Net Framework 3.0 is released.
Should i upgrade my system (we don't intend to switch to Vista now)? What
are the biggest advantages?
Thanks
Mich
... more >>
code working but still getting error
Posted by Mike at 8/17/2007 12:12:26 PM
I have code that is doing some updating to a record. Its getting the ID =
to update from the Grid. I'm passing an INT to my method to update the =
record. My code is working though I'm still getting an 'input string was =
not in a correct format.'
Code:
foreach (GridViewRow row in grid.R... more >>
Looking for grid component that view/edits sql server tables.
Posted by Max2006 at 8/17/2007 11:54:11 AM
Hi,
We need to develop a user control that extend GridView to be able to
view/edit database tables.
The components should have parameters for TableName and ConnectionString,
then shows the records and allow users edit, delete or update records.
The name of table will be define at runtim... more >>
Looping Grid
Posted by Paulo at 8/17/2007 11:48:24 AM
Hi, I have a grid with a template column wich is a TextBox, how can I
retrieve the values typed by the user? I tried the code below but it always
returns empty string:
for (int i = 0; i < grdDocs.Rows.Count; i++)
{
Response.Write(grdDocs.Rows[i].Cells[2].Text.ToString() + "<br>");
}
Tha... more >>
Text box on same line as Radio Buttons
Posted by dancer at 8/17/2007 11:40:27 AM
Using ASP.Net1.0
How can I get "Type of degree" and the following text box on the same line
as the radio buttons for "CollegeCompleted"?
I have tried <div style="float:left">, which works well for me in other
areas, but not in this case.
<HR>
College Name <span style="margin-left:16... more >>
Web Site Administration Tool: Unable to Connect to Database
Posted by ZZ_Scarab at 8/17/2007 11:17:32 AM
Hi,
<I posted this on the microsoft.public.dotnet.framework.aspnet.security
newsgroup but before I got a reply this newsgroup has become unavailable!!
So I'm posting it here again. Sorry for the inconveneice.>
I tried using the ASP.Net Web Site Administration Tool to setup security for
a ... more >>
Can we use static table adapters in highly concurrent web sites?
Posted by Max2006 at 8/17/2007 11:08:15 AM
Hi,
I am trying to make our business logic layer components more efficient. We
use strongly typed datasets and TableAdapters.
Is it a good idea to use a static TableAdpater to share the static instance
among all sessions?
My business logic components are like this:
[DataObject]
pu... more >>
Calendar control and Null dates issue
Posted by Craig Buchanan at 8/17/2007 10:34:29 AM
I have embedded an asp:Calendar control into the EditItemTemplate of
GridView column. I have set the SelectedDate='<%# Bind("Finished") %>'
VisibleDate='<%# Eval("Finished") %>', to the AccessDataSource's 'Finished'
column (a Date type).
The control correctly binds to the column if the dat... more >>
SqlSiteMapProvider question for menu control
Posted by WebBuilder451 at 8/17/2007 10:14:00 AM
I need to translate thi control into vb.net code and i'm having a little
trouble.
(by the way, i love the example)
Specificly I'm not sure how to translate this statement:
// Create a dictionary for temporary node storage and lookup
Dictionary<int, SiteMapNode> nodes = new Dictionary<int, S... more >>
Retrieving id field ?
Posted by Paulo at 8/17/2007 9:57:57 AM
Hi, how can I retrieve the id from identity field generated by sql server
after a insert into instruction? Is that possible? Using .net 2.0 C# VS 2005
and
"ExecuteNonQuery"
Thanks in advance!
... more >>
Tree Node Problem
Posted by JJ297 at 8/17/2007 9:09:49 AM
When I click on the Root it appears to double all of the nodes. Is
there something in properities to turn this off?
Thanks!
... more >>
Menu control with Target MultiView Control?
Posted by Yin99 at 8/17/2007 8:53:03 AM
I have a Menu control that currently changes the view on a MultiView.
Works, but I was wondering if there is any way to load separate pages
in each view via Menu?
Ex:
[Menu Control] (Allows user to select view in Multiview)
[MultiView Control]
[View1] - view 1 loads page1.aspx
[Vie... more >>
Pass TextBox Value To Paypal Cart
Posted by at 8/17/2007 8:36:47 AM
I would like to pass the value of textbox1 to the item_name value in
the paypal cart. Can someone help me modify the code to obtain this
goal?
Thanks
Code:
<%@ Page Language="VB" AutoEventWireup="false"
CodeFile="Default5.aspx.vb" Inherits="Default5" %>
<!DOCTYPE html PUBLIC "-//W3C/... more >>
Using SQL 2005 Appicatioin Roles with ASP.NET 2.0.
Posted by CuteDeveloper NO[at]SPAM gmail.com at 8/17/2007 8:31:27 AM
Hi everybody!
I can not understand how to use SQL2005 Appicatioin Roles (AR) with
ASP.NET 2.0? The tricky thing here is that you have to set up your
connection string to use integrated authentication (otherwise you lost
auditing ability of Application Role). OK. After you set up AR in SQL
Se... more >>
allow multiple row selection in gridview
Posted by Mike at 8/17/2007 8:31:24 AM
On my web form I need to allow the users to select mulitple rows within =
and then click delete, is there a way to allow for multi row selections =
and then get each row id so then can delete all the selected rows?... more >>
Inserting into two tables
Posted by JJ297 at 8/17/2007 7:42:21 AM
how do I set up a stored procedure to insert into two tables. This is
what I have thus far...
I want the quesid from the QuesNAns table to go into the Requestors
table Getting an error message that I must declare the QuesID but
when I do it still does not work. Any suggestions?
CREATE ... more >>
Validate over several Web User Controls
Posted by Moistly at 8/17/2007 7:28:06 AM
Hi everyone,
This is a scenerio for my problem,
I have one aspx page with several instances of the same Web User
Control (ascx files).
I have for example the Web User Control that has a textbox that
requires a numeric value (I am using the RequiredField, and
RangeValidator here with no p... more >>
Best ways to translate characters/entities for javascript use and for e-mail
Posted by kenfine NO[at]SPAM nospam.nospam at 8/17/2007 7:24:23 AM
Overview: I want to know the best/easiest way to make arbitrary text data
safe for programmatic insertion into javascript.
Detail: I'm plotting database data onto maps by looping through my records,
building up a javascript statement using stringbuilder, and injecting that
into my page:
**... more >>
ObjectList Data-Binding to a List<MyClass>
Posted by Alex Maghen at 8/17/2007 5:50:00 AM
Let's say I have defined a class:
public class TestClass
{
int m_ID;
string m_UserTitle;
public TestClass(int ID, string UserTitle)
{
m_ID = ID;
m_UserTitle = UserTitle;
}
public int ID
{
... more >>
Bookmarking in Mobile
Posted by Alex Maghen at 8/17/2007 5:50:00 AM
When I configure an ASPX Mobile website and I set cookieless Sessions, it
results in that key being inserted and passed around from page to page in the
URL. This is fine except for one thing: It seems to mean that people cannot
bookmark pages because the key field in the URL will not be valid ... more >>
The server tag is not well formed
Posted by Alhambra Eidos Kiquenet at 8/17/2007 5:48:03 AM
Hi,misters
I'll try put an attribute runat="server" to TR in ItemTemplate of DAtalist
....
<ItemTemplate>
<tr id="filaListado<%# Eval("idtareasworkflow") %>"
onclick="SeleccionarFilaLis('<%#
Eval("idtareasworkflow") %>', '<%# Eval("Offset") %>... more >>
Using WebParts generates SQL-error ???
Posted by Chris Peeters at 8/17/2007 2:39:43 AM
Hi,
I try to use WebParts but when browsing to my page I get following error
:
"An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
c... more >>
ASPNet HyperLink NavigateUrl question
Posted by Jason Huang at 8/17/2007 12:00:00 AM
Hi,
In my ASPNet 2.0 C# web form, there's a
<asp:HyperLink ID="HyperLinkA" ...
NavigateUrl="http://MyIP/MyFolder/MySubFolder"> TestLink </asp:HyperLink>
My question is how to config the NavigateUrl as the combination of 2 strings
"MyIPString"+"MyFolderString"?
Thanks for help.
Jason
... more >>
Can I make my collection "data pageable"?
Posted by Rob Meade at 8/17/2007 12:00:00 AM
Hi all,
I have my own collection own which implements ienumerable and ienumator.
I was recently using a GridView and I was prompted that I could not turn on
paging because the data source (my collection) was not data pageable. I
subsequently added a property to my collection to return the... more >>
|