|
There are two ways you can do this:
Either in the ItemDataBound[^] event, or call a function[^] directly from your template column, passing the two values (name and nickname)
|
|
|
|
|
Thanks for that,
Couldn't get my head around the databound method, I'll save that for another day. Got the function method working although I ran into another problem with that (null values), I'll post a seperate message about that.
Thanks again
gerryR
|
|
|
|
|
hi all,
I got an error when i am trying to connect a web application on my local system with a remote DB.The error is
"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 connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
the web.config file contains the connection string
<add name="ConnectionString" connectionString="Data Source=Servername;Initial Catalog=GospelNews;User ID=userID;Pwd=passwordd;Connect Timeout=30;Trusted_Connection=Yes" providerName="System.Data.SqlClient"/>
Can anybody help me to come out of this problem.
Thanks in Advance
|
|
|
|
|
Check to make sure the connection works on a local machine, if it does then probably you're blocked by their firewall.
For security reasons many servers prohibit connection from a remote computer. I believe you need to contact web server support, they may let you give them an ip and they let it pass the firewall.
"In the end it's a little boy expressing himself." Yanni
|
|
|
|
|
There are several reasons for this, but first thing I noticed is that you use Named Pipes. Is this the protocol you want? Typically it's not on and it won't go through firewalls
Mika
|
|
|
|
|
How can i change it to tcp/ip?
|
|
|
|
|
|
Hi all,
i run my web application correctly on my local server and works well.After i hosted the same (only remote DB connection string changed) it shows the error
"Server Error in '/' Application.
Login failed for user 'vbb/bnm'"
Can anybody help me in finding what is wrong with the application.
Thanks.
|
|
|
|
|
reogeo2008 wrote: Login failed for user 'vbb/bnm'"
Does't this line explain itself...
Seems like its you do not have access to Database.
Hope this helps...
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Hey guys, i was wondering how do they create the seat selection and saving it them. [from www.gv.com.sg , buy tickets]
i find it very cool, but the selection and saving them i am not sure. Are there examples available ?
|
|
|
|
|
|
If that's really your username and password I suggest you edit your post to remove them
|
|
|
|
|
I have a gridview that in every row of it is a textbox.and i have a generic list.I want to show item of list in textboxes of gidview.for example ,if in list has 4 item like 1,2,3,4 ,and gridview has 7 rows,only 4 row of gridview must be complete.4 textbox in full and 3 textbox are empty.what should i do?
|
|
|
|
|
|
Nika Asgari wrote: how can i fix it
Not by posting the same question in two forums. That just annoys people.
|
|
|
|
|
hi
i just confused where to post it!
first i post it to webdevelop and i saw no one is answer in there
so i deside to post it here
i thout it can be the best idea to get my answer coze i need it
Nika Asgari
|
|
|
|
|
Nika Asgari wrote: first i post it to webdevelop and i saw no one is answer in there
Just because no-one's answering doesn't mean they're ignoring your question. Firstly it's a Sunday so lots of people are out doing things, or relaxing, and secondly they may just not know the answer to your question.
Nika Asgari wrote: i thout it can be the best idea to get my answer coze i need it
Again, people will do their best but there's no guarantee for an answer.
Regards,
--Perspx
Don't trust a computer you can't throw out a window
-- Steve Wozniak
|
|
|
|
|
ask one question once always
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫
|
|
|
|
|
Hey guys i'm just working on a project at the moyment and this database i got from one of my class which upload cvs file but i don't know the first thing about it . help please .
all the database i've seen for cvs file looks simple ie.
<b>1,John Mye,1980,ect....</b>
But mine is like this:
<b>"'Hislop, Creagh & Main Legal papers', 1858-1930, 73-056, Alexander Turnbull Library, Wellington ","1858-1930","","Open","1 folder","","73-056 ","Alexander Turnbull Library, Wellington","62","Hislop, Creagh & Main Legal papers ","Comprises legal papers, mostly letters of appointment","No"
"'Hislop, Creagh & Main Legal papers', 1858-1930, 73-056, Alexander Turnbull Library, Wellington ","1858-1930","","Open","1 folder","","73-056 ","Alexander Turnbull Library, Wellington","1149","Hislop, Creagh & </b>
Here is the databse ,
This is the error message i keep geting for it .
<pre>Msg 102, Level 15, State 1, Line 29
Incorrect syntax near 'varchar'.
Msg 208, Level 16, State 1, Line 1
Invalid object name 'DatabaseCSVFile.csv'</pre>
This is the code i've change some stuff on it already .
IF NOT EXISTS(SELECT * FROM sys.databases
WHERE name = N'Redwood')
CREATE DATABASE Redwood
GO
USE Redwood
--
-- Alter the path so the script can find the CSV files
--
DECLARE
@data_path nvarchar(256);
SELECT @data_path = 'C:\Documents and Settings\Administrator\Desktop\Redwood\';
--
--GO
-- =======================================
-- Delete existing tables
--
IF EXISTS(
SELECT *
FROM sys.tables
WHERE name = N'DatabaseCSVFile'
)
DROP TABLE DatabaseCSVFile;
--
-- Create tables
--
CREATE TABLE DatabaseCSVFile
( Citation varchar(8000) NULL,
Date varchar(200) NULL,
Digital nchar (3)NULL,
File_Classification varchar(200) NULL,
Notes varchar(8000) NULL,
Place_of_Origin varchar(8000) NULL,
Reference Number varchar(100) NULL,
Repository varchar(8000) NULL,
Source Number int(6) NULL,
Source Title varchar(8000) NULL,
Summary_of_Contents varchar(8000) NULL,
Viewed varchar(8000 NULL),
);
--
-- Load table data
--
--
EXECUTE (N'BULK INSERT LicenseStatus FROM ''' + @data_path + N'DatabaseCSVFile.csv''
WITH (
CODEPAGE=''ACP'',
DATAFILETYPE = ''char'',
FIELDTERMINATOR= '','',
ROWTERMINATOR = ''\n'',
KEEPIDENTITY,
TABLOCK
);');
-- ================================================
--
GO
SELECT *, COUNT(*)
FROM DatabaseCSVFile.csv
GO
|
|
|
|
|
One problem at least:
JACENZ wrote: Viewed varchar(8000 NULL),
Viewed varchar(8000) NULL
|
|
|
|
|
Hi CP,
I am using upload control in asp.net . in that i am uploading only .pdf files. In java script, i wrote the code to upload only pdf files.
But user can change the extension and upload the .txt or any files as pdf .This should not be done.
How to check whether the file is PDF Only ? in vb.net
If he changes the extension of any file and he can upload i have to display the message as
"Please upload the original PDF Files"
Thanks ,
Ram.
|
|
|
|
|
i have face a problem for creating run time event.
i have a button on page. when i have click on button , i create another button in page in run time. i want , when i click on new button so display an message on screen.
i hope , my friends , you have a solution
|
|
|
|
|
It would be best to use JavaScript here, whereby you can create elements dynamically at runtime using the document.createElement() function. Take a look at this article which may be of use.
Regards,
--Perspx
Don't trust a computer you can't throw out a window
-- Steve Wozniak
|
|
|
|
|
If you create controls dynamically, you have to recreate them on every postback.
If you create the second button in the click event of the first button, it will only be created on the first postback. When you click the second button it will not be recreated, so there won't be any control to handle the click event.
If the controls that you want to create are limited in number, it's easier to create them from the start as invisible controls. Then you can just make them visible to have them rendered in the page.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
I want to get the default printer name of clinet machine to send the crystal report printout from the client machine. How can I do this. in asp.net c#
|
|
|
|
|