 |
 |
Index ‹ Web Programming ‹ ASP.Net
|
- Previous
- 1
- ASP.Net >> Implemented IEUpdate.js fix, page doesn't finish loadingI have a Flash ActiveX object on my webpage and had that "Click here to
activate this control" message.
I implemented the solution using ieupdate.js and that problem goes away, but
not my page doesn't finish loading. Or at least the blue progress bar on my
status bar seems to get stuck.
Any idea how to unstick this new nuisance?
Thanks,
Ron
- 2
- ASP.Net >> Export Datagrid to ExcelHi,
I have a dataset which I bind to a datagrid on my ASPX.
I then export the datagrid to Excel and stream the file to the user by
setting the MIME Type etc etc.
Response.ContentType = "application/vnd.ms-excel";
Response.AddHeader("content-disposition", "attachment;filename=MyFile.xls");
However, the problem I have is that it streams it as an Excel Worksheet.
When the user clicks on Save they get "Excel WorkSheet" or "HTML Page" as
the File Types.
I need to stream this as a workbook.
Has anyone else had the same problem.
Any advice or help is much appreciated.
Thanks,
C.
- 3
- ASP.Net >> Qustion regarding ASP.NET SQLDATAREADERHi
Below is a code snippet that returns XML from SQL server... than I iterate
to get all records that are appended to a StringBuilder object
/** Pseudo Code **/
SQLReader = SQLCommand.ExecuteReader ();
while ( SQLReader.Read() )
{
StringBuilder.Append ( SQLReader.GetValue ( 0 ) );
}
return StringBuilder;
/** End Pseudo Code **/
Is there a better way to do it? All I need is to dump the result set in to
StringBuilder object...
Any ideas?
Thanks in advanced...
G...
- 4
- Frontpage Programming >> Help with FrontPageI'm working with Frontpage internet development software.
I want to be be able to place the mouse over a word like;
Vacuums and receive a submenu that would say; Eureka,
Hoover, Panasonic and so forth. They I would click my
mouse over the submenu and be hyperlink to that site.
I don't know how to set that up in Frontpage. Is there
anyone out there that can help me.
Thanks,
Ben Demir
- 5
- ASP.Net >> Why is Visual Studio debugging so slow?I wonder if anyone has any tips to improve Visual Studio's debugging
performance? I have a 20 page web app that takes 90 or more seconds to bring
up the logon page after I hit F5. Start without debug (Ctrl-F5) is much
quicker, but of course, I don't have the debugging then.
I am running this on a 2GHz Compaq laptop, with both the server and database
on the same machine. After the first page loads, subsequent pages are
slightly slow on the first load, then are quick thereafter (after being
compiled). The problem is just with the first page coming up.
The slow part is not the build, which is very quick. The delay comes with IE
sitting blank for 30-40 seconds, then it says web site found, and finally
renders the page 30-40 seconds later.
The app is the Front Page type. Would it be quicker as a file share type?
Would it be quicker if I hosted the site on a different server?
I tried to remove from the project all pages that I was not actively working
on but it did not help noticeably.
As an old VB3 programmer, I love .NET but I must say waiting 90 seconds to
fix typos is quite a drag.
- 6
- Frontpage Client >> FrontPage 2002 and Sharepoint AdminI administer a Windows 2000 server, and I'm having what
appears to be a rights issue, but can't find the solution.
With a particular web site on this server, with FP 2002,
when the user tries to administer their site, they are
repeatedly asked for their login.
When they click the link that says "Go to Site
Administration for http://domainname.com", and enter their
username and password, they are then taken to the proper
admin page.
Here, when they click on any of the management links
(ie: "Change anonymous access settings"), they are again
asked for their username/password, and after entering the
correct information, they are repeatedly asked for their
login information, without successfully loading the page -
as if the login fails - even though they have the proper
credentials.
Any help?
- 7
- Frontpage Client >> Navigation Bar and Page Banner PropertiesPlease look at my site: www.heiserautosales.com. The
navigational bar buttons are blank! Plus, the Page
banner is blank! HELP!!!
They used to be there but now they are not.
I've tried reinstalling the server extensions, but that
didn't seem to resolve the issue. I've deleted
everything from the web and then used frontpage to
publish them back but I get the same result.
When I preview the website on my PC the navigational bar
and page banners work fine.
This is the first site that I used the navigational bar
and page banners in frontpage because it looked so easy.
Now, I'm not so sure. Does anyone have a solution?
Thank you!!!
Jason Swain
swainsolutions.com
- 8
- Frontpage Client >> file icons in folder viewWhat is the significance of the different look of icons of html files in
folder view? A little explanation... I started revamping my website and I'm
noticing that pages I've worked on have changed to have a little icon that
looks like an Internet Explorer icon. That is, a page with a "e" on it.
Pages that I've edited in the past all look like a little page with what
looks like an arrow in the upper left corner, pointing to the Northwest
(Redmond? :)).
It's handy because I know what I've worked on recently, but I'm curious if
this is why they're changing and that was the intent? What happens when
they all have changed to an "e" and I start editing again? Will they then
begin to change back to the arrow icon?
- 9
- ASP.Net >> SQL Storage, Enums, Roles and Clean Coding !!!Nope, I dont mean SQL Roles. I am writing an ASP.NET application using forms
authentication.
I have an enum which contains role enumerations :-
Public Enum Roles
User
Administrator
Accounts
Arbitrator
End Enum
I have an SQL Database which is to contain a field or fields which will have
the users roles stored within, A user may have one or more roles. In one of
the applications layers, I will use a function to do checks on the users
role such as
isUserInRole( User.Identity.Name , Roles.Administrator ) As Boolean
The challenge I face is how best to store the results so that I may cleanly
determine the roles which the user has. I dont like the idea of using
multiple columns because it's messy, but so is storing more than one role
type in a field, I would have do something like have comma seperated value
strings, so my users roles could contain values like 0,1,2. I would then
have to search this string or convert it to an array or something.
Is there a 'Clean' way to do this ?
Ideas anyone ?
--
Best Regards
The Inimitable Mr Newbie º¿º
- 10
- Frontpage Client >> Pictures in HTTPS directory Will Not Show UpI am having trouble with pictures in my newsletter. They do not show up and I think it has something to do with all of my pictures being in an https directory
I have never had this problem before we moved to a new server, now all I get are red x's instead of pictures. I use Front page for creating my newsletters, and I had a couple other people attempt to duplicate this using Front Page with the same results
Here's what I have always done in the past. I open my newsletter template, then go to my web site...copy the pictures and verbage I want, then pop back into Front Page and paste it. Now my pictures are just x out....but the verbage shows up
How do I work around this? Do I need to copy my pics to an unsecure directory to make them show up?
- 11
- ASP.Net >> Selectively removing Cache KeyHi all,
I am inserting a key in HttpContext.Cache
Some keys I am caching for multiple days. Out of these once a while I
need to reset cache entry of specific key.
I can do a lot to reset the whole cache, but I wanted to selectively
remove the entry.
Is it possible to do that?
Thanks
Tarun
- 12
- Frontpage Programming >> splash page auto-fit pictureHi,
I'm new to frontpage and am playing around with a few things. I have worked
out that to enable a webpage to auto fit to different browsers and
resolutions I need to create a table and then set the width to 100%. No
worries there.
What I really want to do is create a splash page where the main cell of the
table is occupied by a full size picture. Is there a way to format the cell
to contain the picture, and have the picture autofit along with the table
cell?
So far I have worked out that if I just insert a picture the way I am doing
it, it will not autofit....it just stays the same size at different
resolutions. The other thing I have tried is to set the background with my
picutre, but depending on the picture size, there is overlapping/repetition
when viewed on higher resolutions.
The thing I have done which does seem to work is edit my picture into a jpg
file to fill up the table cell (1223 x 614 pixels) on a screen at the highest
resolution (1280 x 1024). This means that the picture works on the highest
rez, and also looks OK at the lower resolutions (although it does seem to cut
some of the picture out). Is this the way it should be done, or is there
another way which won't cut out any of the picture at lower resolutions?
- 13
- ASP.Net >> How to handle cross-page posting problem?Hello, friends,
I tried to do cross-page posting, i.e., in firstpage.aspx I used
action="secondpage.aspx".
Since I am using asp.net 1.1, so it always goes back to firstpage.aspx
aftern submitting firstpage.aspx.
I then tried in page_load of firstpage.aspx:
if (this.IsPostBack)
{
Server.Transfer("secondpage.aspx");
}
It did go to secondpage.aspx, but all submitted info were lost and could not
be seen in secondpage.aspx.
Any sample source code, reference papers? Help please...
- 14
- ASP.Net >> Record a video file from remote client machine's webcam(from browsHi Friends,
I like to record a video file from remote client machine's webcam(from
browser) to the server machine (where IIS is running).
I could see an example of video recording for windows application in
www.codeproject.com using the directX.
Is it possible to develop the same in asp.net web application...?
Or any good third party vendors to provide those support or components to
integrate video recording...?
Thanks in Advance...
Thanks,
Rajan
--
Thanks & Regards,
Suramya
- 15
- ASP.Net >> Re: permission denied on an asp that's sending mailHi, thanks for the tip. I downloaded and tried the filemon, and it showed
that cdonts.dll and dllhost.exe were being accessed, however they both said
success. I changed the permissions on those files for IUSR and WAM_USR (sp?)
to allow access to it, and it still fails. I found various MS articles about permission
denied and the cdonts.newmail tag, and tried doing all of those. That included putting
IUSR and wam into the administrator group, making them operators in the IIS MMC
etc etc. I've tried everything like this including various blanket admin rights for this and
the aspnet accounts and nothing works. All still says permission denied. Obviously I
changed it all back so my server isn't a ripe banana waiting to be stepped on. :) Any
other ideas? This is really killing our simple website... Thanks very much for your
help on this.
-------------
Check the permissions on the dll that implements CDONTS.NewMail, to ensure
that the credentials that IIS is running under (for ASP code) has permission
to access the object. Permissions issues are just a matter of tracking down
the proper file, and checking how you are trying to authenticate. If you
want to pinpoint where the permissions fail, grab FileMon from
www.sysinternals.com, start logging, refresh the offending page, and then
stop logging. Browse through the file, and then take a peek at where you see
Access Denied - it will almost always show you what file failed, and what
credentials you passed to it when it failed. Much easier than poking about
looking for things, and much safer than just loosening credentials all
around to fix the problem.
--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--
"festivalman" <anonymous@discussions.microsoft.com> wrote in message
news:80D17007-5598-4EAE-91B0-C2780B2A0980@microsoft.com...
> Hi, sorry if this is in the wrong spot. Finding the newsgroups on MS's
> site could have been easier.
> Here's my problem:
> I've got some old asp's that are running our simple web site. In a
> section, there's a contact form
> that collects a few lines of info, and when you hit submit, it takes that
> and sends it to a specified
> email address. It's been working all this time, but recently we just
> bought and implemented
> exchange 2003 on the server and this mail sending contact page suddenly
> stopped working.
> The error page:
>> HTTP 500.100 - Internal Server Error - ASP error
> Error Type:
> Microsoft VBScript runtime (0x800A0046)
> Permission denied
>> I seem to remember that something was wrongly configured in the past which
> I corrected but it's been
> so long that I'm not able to figure it out, even after searching through
> MS's various knowledge base pages.
>> Any help would be greatly appreciated. Here's the code in the asp file
> itself. It's simply sending mail
> through the local server.
>> Body = Body & "Zip Code: " & request("zip") & vbCrLf
> Body = Body & "Comments: " & request("comments") & vbCrLf
>> Dim objMail
>> Set objMail = CreateObject("CDONTS.NewMail")
> objMail.From = request("email")
> objMail.To = "email@address.com"
> objMail.Subject = "A letter!"
> objMail.Body = Body
> objMail.Send
|
| Author |
Message |
opi

|
Posted: Wed Jan 05 12:52:29 CST 2005 |
Top |
ASP.Net >> Samrt Client ?'s
Ok i created a winform and compiled it.
Ran it fine, it comes up and shows the form.
I create a wbepage and put the following link on it.
<html>
<body MS_POSITIONING="GridLayout">
<a href="winformtest.exe">Call executable</a>
</body>
</html>
When I run this in IE it keeps coming up with w dilaog to run the debugger.
How do I get it to run the form ?
Please help
Deasun
--
Deasun
Home Site: www.tirnaog.com
Check out: The Code Vault in my forums section.
Web Programming314
|
| |
|
| |
 |
Scott

|
Posted: Wed Jan 05 12:52:29 CST 2005 |
Top |
ASP.Net >> Samrt Client ?'s
Perhaps you are getting a security exception. What happens if you let the
debugger launch?
--
Scott
http://www.OdeToCode.com/blogs/scott/
> Ok i created a winform and compiled it.
> Ran it fine, it comes up and shows the form.
> I create a wbepage and put the following link on it.
> <html>
> <body MS_POSITIONING="GridLayout">
> <a href="winformtest.exe">Call executable</a>
> </body>
> </html>
> When I run this in IE it keeps coming up with w dilaog to run the
> debugger.
>
> How do I get it to run the form ?
>
> Please help
> Deasun
|
| |
|
| |
 |
Deasun

|
Posted: Wed Jan 05 14:19:02 CST 2005 |
Top |
ASP.Net >> Samrt Client ?'s
It goes into the debugger but there is no code to step thru!
"Scott Allen" wrote:
> Perhaps you are getting a security exception. What happens if you let the
> debugger launch?
>
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
>
> > Ok i created a winform and compiled it.
> > Ran it fine, it comes up and shows the form.
> > I create a wbepage and put the following link on it.
> > <html>
> > <body MS_POSITIONING="GridLayout">
> > <a href="winformtest.exe">Call executable</a>
> > </body>
> > </html>
> > When I run this in IE it keeps coming up with w dilaog to run the
> > debugger.
> >
> > How do I get it to run the form ?
> >
> > Please help
> > Deasun
>
>
>
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ ASP.Net |
- Next
- 1
- Frontpage Client >> site search gets error 404 looking for /_derived/nortbot.htmI'm trying to put a site search page on my site. I have
tried using the search template and also the search web
component. When you click on the "Search" button, it
gives you the error page 404 object not found. The
address bar says <my site>/_derived/nortbot.htm
Nothing in the knowledgebase, other bots and frontpage
extensions work. Tried recalculating hyperlinks,
nothing. Can't get squat from MS. I found a description
on the web of a bug in Frontpage 98 that matches
perfectly -- except that the fix doesn't work.
Any suggestions would be appreciated.
--Milo
- 2
- Frontpage Client >> FP2003 - Create Share Point Team Services Web Locally?I like FP'03 so far. I thought that I would toy with the Share Point
Services templates to get a taste for them, however, when I attempt to
create a Share Point Services web, I get the error "This web site must be
created on a server that is running SharePoint Services from Microsoft.
Please choose another location." (where the present location I have chosen
is on my local hard drive).
Can I not design locally and then publish to a server that is running
SharePoint Services?
Also, when I click to create this site under New Web Site, the Web Site
Templates screen comes up, but when I click the tab labeled SharePoint
Services, there are no (zero...notta) templates showing. Is this normal, or
did something fail to install?
Thanks in advance for any help!
Greg
- 3
- 4
- Frontpage Client >> Uploading web pagesi have tried to upload a web page/s remote server from within the Microsoft
Frontpage program. I've followed the directions and keep gett ing the message
'permission denied'. I also have noticed that all my files are shown as
unmatched. Please can anyone help me to get my web page up an running. Thanks
- 5
- ASP.Net >> How to dynamically change the style sheet based on browser typeIn a VS2005 ASP.NET project, I'm trying to find a way to change which css
file is linked in based on the browser type. I'd like to use one css file
for IE browsers, and a different one for all other browsers. I'm using a
MasterPage. I added a Literal control to the Head section of the
MasterPage, and then in the Page_Load event I set its Text property to set
up the desired link, like this:
StyleSheetLiteral.Text = "<link rel=\"stylesheet\" type=\"text/css\"
href=\"/inc/content_ie.css\">";
This works, but the VS2005 IDE reports it as an error, with message
"Unrecognized tag prefix or device filter 'asp'." Plus I can't help
thinking that there must be a better way.
I also tried setting the Page.StyleSheetTheme property in the Page_Load
event, but this gives a System.InvalidOperation exception when the page
loads. The documentation for Page.StyleSheetTheme says that it must be set
before the page's Init event completes, but I can't figure out how to access
that event in the MasterPage.
Any ideas on the best way to accomplish setting the style sheet dynamically?
Thanks in advance,
--Rob Roberts
- 6
- ASP.Net >> Using TimeSpan or Elapsed e.t.c. MethodsHi,
I'm having a problem to measure the time between two events
Dim StrStart As DateTime = DateTime.Now.ToString("h:mm:ss.fff")
... do some stuff ...
Dim StrEnd As DateTime = DateTime.Now.ToString("h:mm:ss.fff")
Dim Total As TimeSpan
Total = TmeSpan(StrEnd, StrStart) ' doesn't work
StrTotal = Total.ToString()
lblOut.Text = "Start: " & StrStart & " End: " & StrEnd
Any suggestions to the code or any ideas?
TIA
Kenneth P
- 7
- ASP/Active Server Pages >> RecordSet not returning RowsHi All,
The following query returns one row when run in Query Analyzer:
DECLARE @IntCnt AS integer
SET @IntCnt = 0
SELECT @IntCnt = @IntCnt + COUNT(DISTINCT
B.ServiceID)
FROM dbo.TblServices A INNER JOIN
dbo.TblOccurences B
ON A.ServiceID = B.ServiceID
WHERE ({ fn LCASE(A.Prim_Sec) } =
'primary') AND (B.[Sort Date] > GETDATE()) AND (A.Assessment = 1)
GROUP BY B.ServiceID
SELECT
'Assessment' AS Whatever, @IntCnt AS Totals
How ever, if I run the same query in Enterprise Manager, or within an
ASP script, no rows are returned.
Any ideas?
Thanks,
Simon.
- 8
- ASP.Net >> How to databind a dropdownlist in a datagridHi all
I want to databind a dropdownlist in a datagrid:
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
//SqlConnection con = new SqlConnection
SqlDataAdapter da2 = new SqlDataAdapter("select * from categories",con);
DataSet ds = new DataSet();
ds = new DataSet();
da2.Fill(ds);
DataGrid2.DataSource=ds;
DataGrid2.DataBind();
}
private void DataGrid2_ItemDataBound(object sender,
System.Web.UI.WebControls.DataGridItemEventArgs e)
{
if(e.Item.ItemType == ListItemType.AlternatingItem ||
e.Item.ItemType == ListItemType.Item)
{
SqlDataAdapter da2 = new SqlDataAdapter("select city from employees",con);
DataSet ds = new DataSet();
ds = new DataSet();
da2.Fill(ds);
DropDownList list = (DropDownList)e.Item.FindControl("ddl");
list.DataSource = ds;
list.DataBind();
}
}
Page:
<HTML>
<HEAD>
<title>WebForm1</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<asp:DataGrid id="DataGrid2" style="Z-INDEX: 101; LEFT: 64px; POSITION:
absolute; TOP: 40px" runat="server"
Height="224px" Width="392px">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<asp:DropDownList ID="ddl" Runat="server"></asp:DropDownList>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>
</form>
</body>
</HTML>
How can it be done?
Ch Jimmy
- 9
- ASP.Net >> Timer QuestionHi
In ASP.net (c#) I want to be able to send a request to a user i.e. flag a
status (lets say for example you have a
job allocated to you) and then if they have not acknowledged the job within
a set period of time i.e. 1 hour
that job is then reallocated to someone else. I guess i would add a row to
my DB table with a time stamp and then
1 hour later reallocate the job
I am using MySQL so timed triggers may not be a possibility, would this be
done as a windows service
where every n secs i scan the table comparing the time with the server time
and search for records with
the time equal to +1 hour?
Any suggestions would be gratefully appreciated
--
Thanks
Richard
- 10
- ASP.Net >> impersonationIn an aspx page I have a datagrid populated by an oledbDataAdaptor and
dataset from a Microsoft Access database.
When the line <identity impersonate="true" /> is placed in the web.config ,
I am able to populate and view the datagrid. I am also able to add a new
record to the datagrid by using:
this.dateSett11.Table1.Rows.InsertAt(dr, 9999999);
DataAdaptDA.Update(dateSett11);
When I remove the line <identity impersonate="true" /> from web.config , I
can populate and view the datagrid but when I try to add a record, I get the
error:
The Microsoft Jet database engine cannot open the file
'C:\Inetpub\wwwroot\testo\DatsDB.mdb'. It is already opened exclusively by
another user, or you need permission to view its data.
This posting may show my limited understanding of permissions,
never-the-less I would like to find out what I must do to be able to write
to the dataset without using impersonation. Where do I set or change the
premissions ?
Thanks in advance for your help,
Jim
- 11
- ASP.Net >> Problem with getting onclick event from nested datagridHi all
I have a datagrid with nested datagrid. How do I get event from dgNested
button?
I used example from
http://www.dotnet247.com/247reference/a.aspx?u=http://www.standardio.org/article.aspx?id=155
<asp:datagrid id="dgMaster" runat="server" AutoGenerateColumns="False">
<columns>
...
<asp:datagrid id="dgNested" runat="server"
AutoGenerateColumns="False" OnItemDataBound="itemEvent"
OnItemCommand="itemCommandEvent" EnableViewState="False">
<columns>
...
<asp:templateColumn><FooterTemplate><Asp:Button text="update"
Runat="Server" ID="updateAll"
CommandName="ud"</asp:button></asp:FooterTemplate></asp:templateColumn>
</columns>
...
</asp:datagrid>
...
</asp:datagrid>
Codebehind:
Public Sub itemEvent(byVal Source As Object, ByVal e as DataGridItemEvent)
'This works
End Sub
Public Sub itemCommandEvent(byVal Source As Object, ByVal e as
DataGridCommandEvent)
'This does not work
End Sub
- 12
- IIS >> ASP IIS refresh IssueI have one ASP web application. in that when ever i do something on the page
and submit it it wont refresh the page (though it is going to server) I have
to 'F5' then only it refresh the page----This is happenning only at client
site but on server it is working fine
In IIS , i enabled the content expiration immed
Do not cache asp pages
And one more thing when i clear the cache from client and then Do something
it works fine but next again the same problem
Plz help me
NIshant
- 13
- IIS >> Web TransferI've searched all over and can't locate a doc file on
transfering my 10 web sites to my new server. Both
servers are Win 2003 running IIS 6, the only problem I
have is that the old server started smoking this morning.
Hence it dosen't come on any more. THe HD's are fine. I
can read them in the new server. I just need to transfer
all of my settings form it.
Any Suggestions?
TIA Robert
- 14
- ASP.Net >> WebForms......Is there any website which exclusively discuss about WebForms like
http://www.windowsforms.net/
Thanks,
nish
- 15
- IIS >> localhost OK but <computername> not OKHello,
I can reach pages and virtual directories with http://localhost/... but not
with http://<computername>/... or http://IP/... where IP is my local LAN's
IP for <computername>. Fails in different ways depending on browser (IE
gives 403.9 error, FireFox -"Conection refused on <computername>. Also
cannot reach http://<computername>/... from other computers on my LAN. Used
to be able to do this but haven't needed to try for awhile. In the meantime
have loaded all sorts of things VS 2005 beta2, WindowsXP updates, etc.
Running WindowsXP with IIS 5.1. Have tried all kinds of things - security
settings, Firewall, host headers. TELNET fails even to connect. File
sharing, pinging work fine.
Thanks for any help.
Peter
|
|
|