How to insert a reference to a blog in my entry?
ASP web-programming
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > ASP web-programmingGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:
Monday, 3 November 2008
ASP.NET app - Slow initial load IIS6 Med 16:33:00
 Hi,

Initial load of my ASP.NET app takes 50 seconds to load. Then it become
fairly fast. Followings are my app/hardware configs:


Server/IIS:
-----------
IIS 6 running on Hosted VPS Windows 2003 Enterprise, with allocated 512MB
RAM. Lots of memory still available when my app runs. CPU usage is low too.
Application pool default settings.


ASP.NET:
--------
ASP.NET 3.5 using "StateServer" service.


Initially I thought delay was caused by SQL connection, so I created a blank
asp.net app, with one page (default.aspx) only. This page does not try to
connect to SQL on load. It only does this when a button on default.aspx is
clicked which calculates connection time.


When I tried to load default.aspx, it still took more than 50 seconds to
load. Considering there is no code to run when this page loads. SQL
Connection takes less than 7 millisecond to execute. So SQL connection is
not source of the problem.


Does anyone knows possible cause of this delay? I think it is asp.net/IIS
related or might have something to do with app pooling or "StateServer"
service perhaps?



Thanks for your time.


Kind Regards


Med

comment 1 answer | Add comment
Saturday, 1 November 2008
ASP.Net Frame Work Doug Bynum 15:22:29
 Which O/S has more tools to program in ASP.Net; XP or Vista?
--
D.E.B.
comment 2 answer | Add comment
Does XP O/S or Vista O/S have more programming tools for ASP.Net? Doug Bynum 04:25:11
 
--
D.E.B.
comment 1 answer | Add comment
Friday, 31 October 2008
Unexpected Exception. Devin 18:28:31
 Hi,
I'm getting an exception error on this line:

do while not rs.eof and ucase(rs.fields("ca­tegory")) =
ucase(holdLast)


This error occurs on the last record in the table (mdb). I deleted
the last few records from the table to see if it was something with
the record. The same thing occured.


I also response.write the values of rs.fields("category­") and
holdLast and they output the values I would expect.


Am I going nuts?

I don't want to post my enter page, but if the error could really go
beyond this line then please let me know.

Thanks for any input.


DC

comment 3 answer | Add comment
Thursday, 30 October 2008
Creating date-based grid in ASP Mike P 20:03:49
 I need to create a grid which along the y axis has a user name and along
the x axis has a date. Somehow I need to populate the x axis with 6
months worth of dates from the current date, and then look at a database
table that lists what dates a user is busy on so that I end up with a
grid that shows all users and all dates for the next 6 months and when
they are busy and when they are not busy.

I have very little experience in ASP so this is proving very tricky, I
think the hardest part would be creating the grid with a column for each
date for the next 6 months.
Can anybody help?



*** Sent via Developersdex http://www.develope­rsdex.com ***
comment 2 answer | Add comment
Consuming .NET Webservice from classic ASP Guest 16:23:35
 I am trying to consuming a .NET web service from a standard (classic)
ASP, but having not so much luck as I dont have much experience about
SOAP.

Here is the webservice url: http://test.webserv­ices.superbreak.com/­SoapEndpoint.asmx

I have been advised that i need to use this through MSSOAP Toolkit or
through soap envelope.

Could someone advise about some coding pattern to access this service?

Thanks!

arno
comment 2 answer | Add comment
system.web.httpconte­xt.current.user.iden­tity.name shows old usenam Antonio O''Neal 15:22:07
 We changed a username in AD. The user now logs on to a computer on our
network using the new username without any problems. They can not logon using
the old username. However, when they access a IIS 6.0 web site where a
programmer compares system.web.httpcont­ext.current.user.ide­ntity.name to a
lookup table containing usernames they could not gain access with the new
userid. We created a web page to show what
system.web.httpcont­ext.current.user.ide­ntity.name is returning. It is
returning their old username. If we put the old username in the table the
user may access the web site. The IIS site logs for the web site show the
new username for the user as he accesses the site. I have used adsiedit to
look at the user's information in AD. It shows only the new username through
out the the account parameters.

We also have a sharepoint 3.0 site that shows the user's old username when
he accesses that site.

What can I do so system.web.httpcont­ext.current.user.ide­ntity.name will
contain the new username for this renamed account?

Thank you,
Antonio

Add comment
Tuesday, 28 October 2008
ASP and HTML templates. Using vCalendar Devin 21:33:17
 Hi.

I'm hoping somebody can give me some quick incite into the confusion I
am experiencing. I'm using an open source package called vCalendar.
It uses asp and and access database.

I need to add some dynamic content to one of the pages but I can't
figure out how. On the HTML page there are fields that generated when
the asp file is processed. Always in {variable_name}. If I renamed
the html template file to asp and adjust the asp file to point to the
renamed file it still works, but it doesn't process the asp in the
template file, it just prints it. Maybe this is plain and obvious,
but I've never worked with templates before and the references I find
to them don't seem to be set up the same way as this one.

I hope thats enough information to go on.

Thanks!!

DC
comment 1 answer | Add comment
If user doesn't have file permission to acceess xyz.asp, redirect them Devin 16:27:47
 Hi

I asked a similar question a while ago, but I need to clarify what I
am doing in order to get clearer response.

When a user attempts to access an asp page, I want to check that they
have permission to access it. If they have permission they should be
able to coast right into the page with out incident. If they do NOT
have file/folder permissions for that page I want to redirect them to
another page gracefully. That is to say I don't want them to get the
default "forbidden" page or what-have-you.

Thanks!


D
comment 5 answers | Add comment
Monday, 27 October 2008
modalPopupExtender issue Grissom 17:34:51
 I have a modal panel that houses a search function. I am using a linq
datasource and visual studio 2008. My gridview is being updated with the
correct data when searched but if I attempt to select one of the items in the
gridview the code jumps out when trying the retrieve the row of data. The
code behind registers that a select has been done and the command argument
has the correct number but the rows are null. I fill the linq datasource
usnig the Selecting method. Any thoughts would be helpful.
--
There are only 10 types of people in this world: Those who understand
binary and those who don''t
comment 1 answer | Add comment
ASP - Only allow access via specific IP address Jez 14:20:48
 I'm trying to work this out..

But I'm a little stuck...

<%
'declare variables
Dim sIP1
Dim sIP2
Dim sIP3

'assign our APPROVED IP addresses (all extrenal addresses)
sIP1 = "xxx.xxx.xxx.xxx"
sIP2 = "xxx.xxx.xxx.xxx"
sIP3 = "xxx.xxx.xxx.xxx"

'retrieve the visitors IP address
sIP = Request.ServerVaria­bles("REMOTE_ADDR")

'check if IP address matches any of the approved IPs
response.write sIP
If sIP <> sIP1 OR sIP <> sIP2 OR sIP <> sIP3 Then
Response.Redirect "http://www.google.­com"
else
response.write "HELLO & WELCOME"
End If
%>

How do I do the IF statement ?? if sIP is anything other that sIP1 or
sIP2 or sIP3 then ???
Thanks
comment 1 answer | Add comment
Saturday, 25 October 2008
Error Question Mangler 01:17:10
 Lets say I have a page where a user can update their profile
information. In the DB table the username field has a unique
constraint on it to keep username from repeating. If the user changed
their username to something that already existed in another record in
that table sql will throw an error. That also means that IIS will
give an error page.

I was wondering how I can keep the user on the same page but display
the SQL error message somewhere on the page.

comment 1 answer | Add comment
Thursday, 23 October 2008
Possible to verify user login? Devin 19:19:30
 Hi,

This might seem a little bit disjointed. My boss is suggesting I take
a certain approach to something. There is a private section of the
intranet (its essentially its own section as few users would have use
for it or even know of its existence) and when a user logs on to the
home page of this intranet site ASP should verify that they are
allowed to be there (based on them logging on to the network when they
logged on to their PC).

I suppose it could be done with folder permissions. I don't really
see how else though.

Any suggestions or questions about my question?


D
comment 6 answers | Add comment
COALESCE a Session Var ASP Gtn170777 16:18:00
 Hi All, is this the correct way to Coalesce a session var -

<%Session("EMPLOYET­OKENS") =
tokens.Fields.Item(­COALESCE(SUM("JBCLTo­kens"),0)).Value%> ?

Thank you
comment 1 answer | Add comment
problem with paste from word into textarea asp MS SQL 2000 Gtn170777 12:11:01
 Hi there,

I'm hoping this is the place to submit this, as really I am looking to
resolve the issue before the data is sent to the database.

I have a website, with a textarea, that stores data in an nvarchar(4000)
field, the insert is done via a stored procedure. The data is sent as HTML
Encoded.

This works fine when data is manually entered, however if the user enters
the data by copying and pasting from Word, Notepad, PDF, etc the data is
entered ok, but then doesn't display properly.

The problem seems to be the use of the tab key in the associated program,
for instance -

The data from word looks like this -

"• To hold a Degree with a significant "

The data held on the database then looks like this -

"• To hold a Degree"
Please note the gap between ":" and "To" this doesn't appear to be a space
as it is to big.

The data that is then displayed is -

"•aU"

If i manually remove the gap I get the following -

"•To hold a Degree with a significant " with no gap

Obviously i can't manually do this for every entry, and i deally I still
want to keep the structure of the text, i.e paragraphs.

I think the problem is around ordered and unordered lists from Word etc, and
the tab space between the bullet and first letter, is there anyway to clear
both the un/ordered list and tab space before submitting the data?

I'm using MS SQL 2000

My stored procedure looks like this -

CREATE PROCEDURE NormalAdvert
@EmployeeId int,
@SiteID int,
@ClientId INT,
@JobTitle nvarchar(50),
@Description nvarchar(4000),
@Payrate nvarchar(50),
@location nvarchar(50),
@category nvarchar(50),
@employmenttype nvarchar(50),
@reference nvarchar(50),
@startdate nvarchar(50)
AS
Declare @NewID INT
INSERT INTO dbo.JBAdvert (JBASiteID, JBAEmployeeID, JBAClientID, JBATitle,
JBADescription, JBAPayRate, JBALocation, JBACategory, JBAEmplymentType,
JBAReference, JBAStartDate)
VALUES (@SiteID, @EmployeeId, @ClientId, @JobTitle, @Description, @Payrate,
@location, @category, @employmenttype, @reference, @startdate)

Thank you

comment 2 answer | Add comment
Wednesday, 22 October 2008
FedEx Webservice Printing Zebra raw printer file Raymond 23:18:40
 Hi All,

Has any one work with FedEx Webservice with ASP?

I am using ASP via SOAP to talk to FedEx Webservice, I have no problem
printing the FedEx label with PNG or PDF, my problem is to print the raw
Zebra printer file to the Zebra printer.

I know that the web browser will not be able to do this, I need to create an
ActiveX control.

Has any one created any ActiveX control like this?

Ray


Add comment
Roles.AddUserToRole(­Username, UserRole) in transactions VictorP 17:31:01
 Hi,
I'm trying to use inside a transaction scope the method
Roles.AddUserToRole­(Username, UserRole)
but the DTC thows the exception:
"The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled
the distributed transaction.
Could not create constraint. See previous errors.".

Outside the TS it works fine. Is there any reason for which that method
should not work inside a transaction scope? Also I have noticed that in the
same execution context the method

MembershipUser newuser = Membership.CreateUs­er(Username, Password, Email);

fails or completes successful in a random way. Sometimes works, sometimes
the DTC throws again.

These methods were thought to be used inside a TS? Should I use them outside
TS ?
comment 2 answer | Add comment
ASP connection to visual foxpro Guest 13:46:35
 I am trying to setup an active server page that accesses my visual
foxpro database. I have setup a system DSN named vfp_test. How do you
open a recordset in an ASP? I have tried this code: rs.Open "ICILOC",
"DSN=VFP_test" , but I get an error on that line.
comment 1 answer | Add comment
Monday, 20 October 2008
Download files from remote server Axelman 22:06:23
 Hi guys,

I'm using Classic ASP, IIS6, IE 7, FF 3

I've developed a vb script to downloand files hosted in my server (zip, doc,
pdf, jpg, xls, et. etc.) it's very straight forward and there's a lot of
information around the web, however when it comes to dowload files from a
remote server (NOT hosted in my server) there is no information :-(­, the
idea is to have an Access DB that stores the full url
i.e.(http://www.dow­nloadallfiles.com/so­mefolder/manual.zip then retrieve
this url and downlod the file, again I'm able to force the download dialog
box but do not know how to achive the actual download from a remote server.

Please your urgent help is appreciated, I've been stuck for 2 weeks on this
issue.

Best regards


comment 3 answer | Add comment
Common connection string file Egsdar 21:30:07
 Hi, On ASP 3.0 I was able to create a file conn.vbs where the connection
string lines to the db resides in, how can i do the same on ASP.Net?

The reason of this is to avoid modify the line in only one file instead of
do it in several web pages.
comment 6 answers | Add comment
Saturday, 18 October 2008
De-Speckle or Remove Noise from an image Daddywhite 23:21:17
 I seem to be able to do this with the TRIAL version of Aurigma
Graphics Processor in ASP. However the trial version leaves a horrible
square randomly on the image. (Obviously a limitation of the trial
version)

They have discontinued this product and therefore cannot purchase it!!

Anyone know of any other ASP Image tools that cos Remove Noise or De-
Speckle an Image? I have tried about 8 different ones with no luck!!
Or anyone got a licensed version of Aurigma Graphics Processor they
can give me?

I am also using Persits ASPJpeg but that doesnt seem to have the
ability to do this.

Thanks for your time.
Add comment
Friday, 17 October 2008
asp vbscript textbox paste from word problem Gtn170777 02:06:36
 Hi Guys,

It's been a while, I've got a small problem that I could do with your
expertise on.
As you know (I Think) I build websites for recruitment agencies, part of the
website includes a job board facility and for job form entry I used a normal
form with a normal textbox, however what I'm finding now is that a lot of
recruitment consultants are pasting the job description into the textbox,
which when submitted is resulting in most of the text not being entered!!!

Is there any way around this?

I've attached the code -

Thank you

<%@LANGUAGE="VBSCRI­PT" CODEPAGE="65001"%>
<!--#include file="../Connection­s/recruta2.asp" -->
<%
Dim MM_editAction
MM_editAction = CStr(Request.Server­Variables("SCRIPT_NA­ME"))
If (Request.QueryStrin­g <> "") Then
MM_editAction = MM_editAction & "?" & Server.HTMLEncode(R­equest.QueryString)
End If

' boolean to abort record edit
Dim MM_abortEdit
MM_abortEdit = false
%>
<%
' IIf implementation
Function MM_IIf(condition, ifTrue, ifFalse)
If condition = "" Then
MM_IIf = ifFalse
Else
MM_IIf = ifTrue
End If
End Function
%>
<% Session("NEWVACANCY­TITLE") = Request.Form("title­") %>
<% Session("NEWVACANCY­SECTOR") = Request.Form("jobty­pe") %>
<% Session("NEWVACANCY­LOCATION") = Request.Form("locat­ion") %>
<%
If (CStr(Request("MM_i­nsert")) = "form1") Then
If (Not MM_abortEdit) Then
' execute the insert
Dim MM_editCmd

Set MM_editCmd = Server.CreateObject­ ("ADODB.Command")
MM_editCmd.ActiveCo­nnection = MM_recruta2_STRING
MM_editCmd.CommandT­ext = "INSERT INTO dbo.Vacancy (VacancyTitle,
VacancyCategory, VacancyLocation, VacancyType, VacancyPaye, VacancyDuration,
VacancyReference, VacancyExpiryDate, VacancyDescription,­ VacancyEmployerID,
VacancyEmployeeID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
MM_editCmd.Prepared­ = true
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param1", 202,
1, 50, Request.Form("title­")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param2", 202,
1, 50, Request.Form("jobty­pe")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param3", 202,
1, 50, Request.Form("locat­ion")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param4", 202,
1, 50, Request.Form("contr­act")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param5", 202,
1, 50, Server.HTMLEncode(R­equest.Form("payrate­"))) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param6", 202,
1, 50, Request.Form("durat­ion")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param7", 202,
1, 50, Request.Form("refer­ence")) ' adVarWChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param8", 135,
1, -1, MM_IIF(Request.Form­("expirydate2"), Request.Form("expir­ydate2"),
null)) ' adDBTimeStamp
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param9", 201,
1, -1, Server.HTMLEncode(R­equest.Form("descrip­tion"))) ' adLongVarChar
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param10", 5, 1,
-1, MM_IIF(Request.Form­("SITEID"), Request.Form("SITEI­D"), null)) ' adDouble
MM_editCmd.Paramete­rs.Append MM_editCmd.CreatePa­rameter("param11", 5, 1,
-1, MM_IIF(Request.Form­("Employee"), Request.Form("Emplo­yee"), null)) '
adDouble
MM_editCmd.Execute
MM_editCmd.ActiveCo­nnection.Close

' append the query string to the redirect URL
Dim MM_editRedirectUrl
MM_editRedirectUrl = "afternewvacancy.as­p"
If (Request.QueryStrin­g <> "") Then
If (InStr(1, MM_editRedirectUrl,­ "?", vbTextCompare) = 0) Then
MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString­
Else
MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString­
End If
End If
Response.Redirect(M­M_editRedirectUrl)
End If
End If
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/­TR/xhtml1/DTD/xhtml1­-transitional.dtd">
<script type="text/javascri­pt" src="../Scripts/cur­rentdate.js"></scrip­t>
<%
Function fRandomReference()
Const sValidChars = "abcdefghijklmnopqr­stuvxyz"
Dim nCount
Dim sRet
Dim nNumber
Dim nLength
Randomize
nLength = Len( sValidChars )
For nCount = 1 To 10
nNumber = Int((nLength * Rnd) + 1)
sRet = sRet & Mid( sValidChars, nNumber, 1 )
Next
fRandomReference = sRet
End Function
%><html xmlns="http://www.w­3.org/1999/xhtml">
<head>
<meta http-equiv="Content­-Type" content="text/html;­ charset=utf-8" />
<title>Backoffice</­title>
<meta name="robots" content="noindex,no­follow">
<link href="Styles/client­sheet.css" rel="stylesheet" type="text/css">
<link href="Styles/client­forms.css" rel="stylesheet" type="text/css">
<meta http-equiv="refresh­" content="1201;URL=i­ndex.asp">
<script src="../SpryAssets/­SpryCollapsiblePanel­.js"
type="text/javascri­pt"></script>
<script type="text/javascri­pt" src="../Scripts/ref­lection.js"></script­>
<script src="../calendar/ca­lendar.js"></script>­
<link href="../SpryAssets­/SpryCollapsiblePane­l.css" rel="stylesheet"
type="text/css" />
<script type="text/javascri­pt" src="../Scripts/che­ck.js"></script>
</head>
<body>
<div id="wrapper">
<table border="0" cellpadding="0" cellspacing="0" class="table">
<tr>
<td class="toptableback­office"><table border="0" cellpadding="0"
cellspacing="0" class="toptableback­office">
<tr>
<td><img src="../images/recr­utalg.jpg" alt="Recruta" width="179"
class="reflect rheight50 ropacity33" id="recrlogo" /></td>
<td><table border="0" cellpadding="0" cellspacing="0"
class="toptableback­office2">
<tr>
<td class="recrutadate"­><script language="JavaScrip­t"
type="text/javascri­pt">
document.write("<sp­an
class=\"datetext\">­"+doClock("W0","%20"­,"D0","%20","M0","%2­0","Y0")+"</span>");­
</script></td>
</tr>
<tr>
<td class="loggedin"><%­= Session("NAME") %> you are logged in
</td>
</tr>
</table></td>
</tr>

</table></td>
</tr>
<tr>
<td class="tdrecrutanav­bar"><ul class="nav">
<% If Not adminlevel.EOF Or Not adminlevel.BOF Then %>
<li><a href="pagelist.asp"­>Page Manager</a></li>
<li><a href="consultantlis­t.asp">Consultant Manager</a></li>
<li><a href="newslist.asp"­>News Manager</a></li>
<li><a href="jobsearchcrit­eria.asp">JobSearch Manager</a></li>
<% End If ' end Not adminlevel.EOF Or NOT adminlevel.BOF %>
<li><a href="oldregcandlis­t.asp">Registered Users</a></li>
<li><a href="jbemgnt.asp">­Jobs by Email Manager</a></li>
<li><a href="account.asp">­Account</a></li>
<li><a href="logout.asp">L­og Out</a></li>
</ul></td>
</tr>
<tr>
<td><table border="0" cellpadding="0" cellspacing="0"
class="recrutamaina­rea">
<tr>
<td valign="top" class="tdrightrecru­tamain"><h1>New Vacancy </h1>


<p class="invalid">Ple­ase complete all fields </p>
<form ACTION="<%=MM_editA­ction%>" METHOD="POST" name="form1"
id="form1">
<table border="0" cellpadding="0" cellspacing="0"
class="outervacancy­table">
<tr>
<td class="editvacancyv­alue">Vacancy Title:</td>
<td class="editvacancyf­orm"><label>
<input name="title" type="text" id="title"
maxlength="50" />
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Sector:</td>
<td class="editvacancyf­orm"><label>
<select name="jobtype" id="jobtype">
<option selected="selected"­ value="">Select</op­tion>
<%
While (NOT jobsectors.EOF)
%>
<option
value="<%=(jobsecto­rs.Fields.Item("Jobt­ype").Value)%>"><%=(­jobsectors.Fields.It­em("Jobtype").Value)­%></option>
<%
jobsectors.MoveNext­()
Wend
If (jobsectors.CursorT­ype > 0) Then
jobsectors.MoveFirs­t
Else
jobsectors.Requery
End If
%>
</select>
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Location:</td>­
<td class="editvacancyf­orm"><label>
<select name="location" id="location">
<option selected="selected"­ value="">Select</op­tion>
<%
While (NOT joblocations.EOF)
%>
<option
value="<%=(joblocat­ions.Fields.Item("Jo­bLocation").Value)%>­"><%=(joblocations.F­ields.Item("JobLocat­ion").Value)%></opti­on>
<%
joblocations.MoveNe­xt()
Wend
If (joblocations.Curso­rType > 0) Then
joblocations.MoveFi­rst
Else
joblocations.Requer­y
End If
%>
</select>
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Type:</td>
<td class="editvacancyf­orm"><label>
<select name="contract" id="contract">
<option selected="selected"­ value="">Select</op­tion>
<option value="Temporary">T­emporary</option>
<option value="Permanent">P­ermanent</option>
<option value="Contract">Co­ntract</option>
</select>
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Pay Rate:</td>
<td class="editvacancyf­orm"><label>
<input name="payrate" type="text" id="payrate"
maxlength="50" />
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Duration:</td>­
<td class="editvacancyf­orm"><label>
<input name="duration" type="text" id="duration"
maxlength="50" />
<input name="reference" type="hidden" id="reference"
value="<%=fRandomRe­ference()%>" />
</label></td>
</tr>
<tr>
<td class="editvacancyv­alue">Advert Expires on:</td>
<td class="editvacancyf­orm">
<input name="expirydate2" type="text" id="expirydate2"
onFocus="this.selec­t();lcs(this)"
onClick="event.canc­elBubble=true;this.s­elect();lcs(this)">
</td>
</tr>
<tr>
<td class="editvacancyv­alue">Description:</­td>
<td class="editvacancyf­orm"><label>
<textarea name="description" id="description"
rows="14"></textare­a>
</label></td>
</tr>
<tr>
<td><input name="SITEID" type="hidden" id="SITEID"
value="<%= Session("SITEID") %>" />
<input name="Employee" type="hidden" id="Employee"
value="<%= Session("EMPLOYEEID­") %>" /></td>
<td class="editbutton">­<label>
<input name="submit" type="submit" id="submit"
value="Submit" />
</label></td>
</tr>
</table>



<input type="hidden" name="MM_insert" value="form1" />
</form>

I've removed some of the not important stuff -- thanks
comment 4 answer | Add comment
Thursday, 16 October 2008
How to embed a text box in footertext of a GridView's boundfield Donzo 19:50:59
 Hi !

I need to embed a text box in a footer of a GridView's boundfield
column to get data prior to a row insert.


The textbox is usable and showing up in the web page source using View
Source, but I cannot see it using an alert,


or after postback on the server side (code behind). Is there a way to
reference such a control (embedded HTML in footertext) ?


If so, please advise ! (I embedded buttons in the command column which
work and execute their click events ok)


this code builds the footertext:


Dim grdBF As BoundField = New BoundField


grdBF.DataField = colNamesArray(idx)


'tbox


If colIsEditableArray(­idx) = "false" Then grdBF.ReadOnly = True


'this always puts a textbox in if editable, todo: chg to add some
input control per type:


stCtrl = _


"<input id=""" & colNamesArray(idx) & "textbox"" Type=""Text""
size=""20"" maxlength=""30"" value="""">test</in­put>"


If colIsEditableArray(­idx) = "true" Then grdBF.FooterText = stCtrl


dataGridView.Column­s.Add(grdBF)


'''''''''''''''''''­'''''''''''''''''''


this code tries to access after postback, server side, but does not
work, fix needed:


Dim tb As HtmlInputText =
dataGridView.Footer­Row.FindControl(colN­amesArray(idx) & "textbox")


'''''''''''''''''''­'''''''''''''''''


This code tries to show it client-side, at click event, before the
postback-submit:
(we can show only the innertext)


var state1 = document.getElement­ById("txtState");


var deForm = document.getElement­ById("form1");


state1.value = "insertclicked" //indicate state


//debug:


var tb = document.getElement­ById("dataGridView")­;


var i,j;


var msg;


for(i=0; i<tb.rows.length;i+­+)


{


msg += "\r\n" + tb.rows[i].cells[2].inner­Text;



}


alert(msg);

deForm.submit() //postback to server to save the data only


///////////////////­////////////////////­////////////////////­////////////////////­////////////////////­////////////////////­////////////////////­////////////////////­////////////////////­//////
the fix must be server side in code behind, since this all must be
completely dynamic, and is dependent on a config file to get its table
data from a sqldatasource which requires the boundfields in this
gridview. fyi my templatefield columns all work fine, getting the data
back in the request object since its otherwise blown away by a
postback.


Regards !


Don


-------------------­--------------------­----
Don Collier, Senior Developer, AGI
http://doncollier.c­lickhere2.net
"Love converts hearts and gives peace."
comment 1 answer | Add comment
Best practice for using Profiles in Web Application? Charlisa 19:50:38
 We are developing a Web Application in which we would like to utilize the
System.Web.Profile object. Unfortunately, .NET does not create the
infrastructure for Profiles in a Web Application, only in Web Site projects.
Is there a best practice for utilizing profiles in a Web Application?
comment 1 answer | Add comment
Wednesday, 15 October 2008
Printing in ASP JP SIngh 23:46:38
 Is it possible to send a file directly to printer in ASP?

I have an ASP page display the list of files associated with the record with
hyperlinks to the files. I want to provide a link next to each file to allow
people to click the button and send the appriopriate file to the printer.

Is it possible to do this in ASP or ASP.Net?



comment 4 answer | Add comment

Add new topic:

How:  Register )
 
Login:   Password:   
Comments by: Premoderation:
Topic:
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > ASP web-programmingGo to page: « previous | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | next »

see also:
slrnpull directory creation problems on…
[OT] Funny Sig (was: Re: Another…
pass tests:
†...Avatars from Moka...†
see also:
How to make your own iPhone Ringtone…
Full Guide: How to convert any DVD and…
Full guide: How to Copy/Rip DVD and…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .