upload multiple image to server from remote server
I have an application which I am building using the Flickr API. From the
API I can get the URL of image files stored on the Flickr servers.
I'm not really sure where to start with this, can someone point me in the
direction of some resource which will help me to get the file using the URL
and save it on the server.
Thanks,
Richard Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511502
Unable to find dll
I have a question that is probably simple to answer for many of you, but just
leaves me baffled.
If I publish a ASP.NET website to my webserver in a new directory, but don't
create a virtual directory for it - I simply attempt to access it from the
default web direcotry say www.myweb.net/myapp/Default.aspx I always get an
error indicating that I need to complie: "Could not load the assembly
'App_Web_3um03wt4'. Make sure that it is compiled before accessing the page."
If I create a virtual directory OR drop the contents of the application to
my default www driectory, everything works as per expected.
Can anyone enlighten me? Thank you. Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511501
How to select row in Repeater when user clicks in any cell?
Hi,
I've got a repeater control, that has a checkbox in the first column, and
then a couple of columns with data after that.
What i want to achieve, is that the checkbox in the first column gets
selected if the user clicks in any cell in that row, WITHOUT a postback! Just
like if he clicked directly in the checkbox.
Any ideas on how to do this? Any links maybe? (If possible without ajax, but
if only possible with ajax i'm interested in suggestions as well. )
Thanks Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511497
Databind a Label (or Literal), proper way?
I'll try to keep this short & sweet and hopefully get the direction I'm
looking for.
I'll drop a SqlDatasource onto a webform. Configure it to use a stored
proc, perhaps have the parameters be QueryString parms or Session variables,
whatever the situation calls for.
The Stored Proc will return one row of data, let's say FirstName & LastName,
John Smith.
I drop a Label (or Literal) onto the webform.
I would like the Label's Text property to be set to FirstName.
What/where is the proper way to hook this up?
In the past, I've had a Page_Load event and if not Postback, I setup a
datareader and read the values from the datareader and populate the
label/literal/textbox controls.
But I was thinking there must be a way to utilize the SqlDatasource object
and do the same thing (thus saving having to write all that SP calling code
in the Page_Load).
Thanks,
Brian Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511496
Cookieless sessions - ISAPI dll failing?
Hi All,
Working in ASP.Net 2.0, session state set to cookieless. We recently
updated the application from a 1.1 project. We've always run with
cookieless sessions. Since the upgrade to 2.0, we keep getting lots of
similar errors. Our error reporting gives us a message like:
Time: [14/03/2008 11:44]
Application Version: [2.0.0014.0]
Message: [The file '/Application/(s(oqe1gv45d4gxfy45ee1ateuh))/
start.aspx' does not exist.]
Source: [System.Web]
TargetSite: [Void CheckVirtualFileExists(System.Web.VirtualPath)]
StackTrace:
BEGIN
at System.Web.UI.Util.CheckVirtualFileExists(VirtualPath
virtualPath)
at
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile)
at
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean
allowCrossApp, Boolean allowBuildInPrecompile)
at
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean
noAssert)
at
System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath
virtualPath, Type requiredBaseType, HttpContext context, Boolean
allowCrossApp, Boolean noAssert)
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext
context, String requestType, VirtualPath virtualPath, String
physicalPath)
at
System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext
context, String requestType, VirtualPath virtualPath, String
physicalPath)
at System.Web.HttpApplication.MapHttpHandler(HttpContext context,
String requestType, VirtualPath path, String pathTranslated, Boolean
useAppConfig)
at
System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously) END
Now, if I go and look at the IIS logs, we can have something like:
2008-03-14 11:44:55 255.255.255.255 GET /Application/themes/main/css/
clientstyles.css - 443 - 0.0.0.0 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+InfoPath.1)
https://our.domain/Application/(S(oqe1gv45d4gxfy45ee1ateuh))/start.aspx?hp=3
200
2008-03-14 11:44:56 255.255.255.255 GET /Application/themes/main/css/
styles.css - 443 - 0.0.0.0 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows
+NT+5.1;+InfoPath.1) https://our.domain/Application/(S(oqe1gv45d4gxfy45ee1ateuh))/start.aspx?hp=3
200
2008-03-14 11:44:56 255.255.255.255 GET /Application/scripts/
Help_Util_Validation.js - 443 - 0.0.0.0 Mozilla/4.0+(compatible;+MSIE
+7.0;+Windows+NT+5.1;+InfoPath.1)
https://our.domain/Application/(S(oqe1gv45d4gxfy45ee1ateuh))/start.aspx?hp=3
200
2008-03-14 11:44:56 255.255.255.255 GET /Application/
(s(oqe1gv45d4gxfy45ee1ateuh))/start.aspx hp=3 443 - 0.0.0.0 - - 302
So it looks like someone, in the middle of their session is suddenly
putting a request through that isn't having the Session ID stripped -
and hence the directory being requested doesn't exist, hence the
ASP.Net error I notice also, in this case, that the User Agent had
disappeared on this request. I don't believe (but will have to go
searching) that this was true in the other cases I've seen, so may not
be an issue.
So what should I look for next? Are there circumstances where the
ISAPI dll would fail to strip the Session ID? Or some other place I
should be looking?
TIA,
Damien Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511494
.NET Framework 2.0 SP1 causes application to fail on references
Hi all,
I have a web application deployed in a Production environment, where
it has happily been running for the past 2 years on the .NET 2.0
framework. However, the operations team recently installed the .NET
2.0 Framework SP 1 on the server, and immediately certain sections of
the web site began failing with the errors "Could not load file or
assembly 'blah' or one of its dependencies. The system cannot find
the file specified".
I am wondering if others have experienced this issue and/or know why
the installation of the patch has started causing my application to
have problems. When we uninstalled the patch the site began working
as normal again - is my web.config file misconfigured with references
I don't need and may not exist on the server (I didn't add these
particular references, the framework did when I compiled), and the
patch now causes the framework to behave differently in validating
references??
Thanks Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511493
Changing a control on a masterpage that uses a second masterpage
I want to change the label of a component that I have on a masterpage but I
cannot get my hands on it
I have a mastepage MP2 that has a button called B2
masterpage MP2 uses masterpage MP1 that has a button called B1
I then have a page called default and in the page load I tryed:
System.Web.UI.WebControls.Button B10 =
(System.Web.UI.WebControls.Button)Master.FindControl("B1");
System.Web.UI.WebControls.Button B20 =
(System.Web.UI.WebControls.Button)Master.FindControl("B2");
However both B10 and B20 is null.
So how do I get my hands on B1 and B2 so I can set there label?
Thanks Torben Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511492
Control is null in Page_PreInit
Hi,
I have some odd behavior in my PreInit.
A control on my page is null at the time of PreInit so I can't give it
the values it needs for it's Init, it is valid by the time of the Init
on the page but that is too late.
So here is the detailed description:
I have a Web Application with a page, Page1.
Page1 has a custom control, MyWizard, added to it which I use to wrap
the standard wizard control.
MyWizard is added statically to Page1.aspx (appears in
Page1.aspx.designer.cs)
I was using MyWizard::Page_Load to dynamically create Controls and add
them to dynamically created WizardSteps.
I hit some problems recently and after reading a bit discovered that
dynamic controls should be added using the Page_Init event.
So I added a Page_PreInit handler to Page1 to set the controls data.
When I try and access MyWizard in Page_PreInit it is null!
I have tried this is a simple test project and the controls are valid
in PreInit so this seems to be non-standard behavior.
I am stuck, I can't use PreInit to initialise my Control but I have to
use it or the dynamic controls don't behave properly.
Has anyone encountered this?
Or have any suggestions on how to track it down further?
Thanks, Vin Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511485
Problems automating inVBA
I'm attempting to automate input to an ASP/AJAX web-page using VBA, however,
I've encountered a couple of problems:
1) when selecting from dropdown A manuallly, dropdown B is populated with a
series of options depending on the option selected in drropdown A. While I
can select from dropdown A in VBA, dropdown B never gets updated. Prsumably
I need to trigger some event on the page, but how do I accomplish this in
VBA?
2) clicking a button creates an "on the fly" dropdown depending on the
contents of a textbox. How do I access this dropdown and select an option?
Apologies if these questions seem naive and beginnerish, but I'm working
well outside my comfort zone.
Cliff. Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511483
The resource object with key 'InvalidUserName' was not found
hey
asp.net 3.5
I'm trying to localize a requiredFieldValidator, but I get this compile
error:
The resource object with key 'InvalidUserName' was not found
The resource 'InvalidUserName' exists in .resx files in this project
Project have 2 .resx files:
WebResources.resx
WebResources.nb-NO.resx
<globalization uiCulture="nb-NO" />
When I created these resource files, I first created the
WebResources.nb-NO.resx and then the WebResources.resx. I'm not sure the
order I created these files should have anything to do with the error. (I'm
a newbie).....
Here is the markup where I try to use the InvalidUserName key:
<asp:RequiredFieldValidator ID="rfvUserName" SetFocusOnError="true"
ErrorMessage='<%$ Resources:Resource, InvalidUserName %>'
ControlToValidate="UserName" Display="Dynamic"
ValidationGroup="PasswordRecovery1" runat="server"
>*</asp:RequiredFieldValidator>
any suggestins? Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511482
Is using UserId guid outside of aspnetdb acceptable?
Hi,
I'd like to take a full advantage of built-in membership services and use
aspnetdb's UserId in my app's database. For example, I'd like to establish
some relationships between membership users from aspnetdb and rows in tables
in my database. My app would be responsible for enforcing the
cross-database 'referential integrity'. Does this sound as a
good/acceptable practice?
Thanks,
Bogdan Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511477
Missing TextChnged event on the page
Here's what I have:
environment: .NET 2.0, ajax extensions.
UserControl and an aspx page where it's used.
UserControl has one Repeater control displaying a grid like data with one
column
displayed in asp:TextBox (ID='txtDelivery') controls. I added event
onTextChange for this control with a handler: 'txtDelivery_Changed' on the
back end.
I have MyTest.aspx page where this UserControl is used.
It's used inside of UpdatePanel tags.
When I debug, I change text in grid provided inside UserControl, it
asynchronously sends to back end to my event handler function
'txtDelivery_Changed'. Values recalculated and rebinding is called.
So far so good. My sample page works in a small sample project.
Now, I moved my UserControl with my tested code from MyTest.aspx into and an
'existing project' on a preexisting web page, and event
'txtDelivery_Changed' is never called now!
What happens in debug is 'Page_Load' is called on text change and process
finishes without ever going to 'txtDelivery_Changed' handler. (In MyTest page
Page_Load is called and then 'txtDelivery_Changed' is called). When I ask for
value Request.Form["__EVENTTARGET"] (in Watch window) it returns proper text
box name (which is a modified name from 'txtDelivery'). So, the server knows
who triggered event, but process never moves to the 'txtDelivery_Changed'
handler!
Notes: This existing project and 'existing' page is rather involved and has
some Ajax already implemented using old way of ICallbackEventHandler. Also
the page has numerous <form tags.
I also added attribute for @Page: EnableEventValidation="false" in order for
my other LinkButton to work in my UpdatePanel on the 'existing' page.
I tried to use in my UserControl:
protected override void Render(HtmlTextWriter writer)
{
Page.ClientScript.RegisterForEventValidation(MyRepeater.ID);
base.Render(writer);
}
with no avail. (it was supposed to make sure the event is registered)
Question: How do I get my event handler 'txtDelivery_Changed' being called?
Thanks,
Oleg Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511476
q; Search engine; Dynamic pages
Search engine; Dynamic pages
I was reading a few articles that search engines do not support dynamic
pages, is there any reference that talks about how we can overcome this
issue? Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511469
QueryString Not Accesible from the Server (Please Respond)
Hi.
I have HTML on my form that was constructed on the server.
The "browser" is a PopUp that was previously fired from another page.
This popup is a standard browser pop-up,
nothing fancy or unique.
There are two forms inside the pop-up:
They both have javascript buttons on them that submit the form. The
submit constructs a querystring that gets sent to the server. When i
look at it on the server, Length is always 0.
What am i doing wrong?
I have tried this using an input button with type=submit also and i
still get length = 0.
One of the two forms is as such:
<form action='view_webinar_free.aspx' name='view_webinar_free'
id='view_webinar_free'><div class='formButtons'><a
href='javascript:submitviewer();' class='textBtnRed
formBtn'><span>View Webinar</span></a></div></form>
Bot forms and enclosing HTML is below:
<div class="mod1Col">
<div class="shbox">
<div class="sh1">
<div class="sh2">
<div class="box">
<!-- BEGIN HEADER -->
<div class="modHeader deepPurpleBG">
<h2>View webinar</h2>
</div>
<!-- END HEADER -->
<!-- BEGIN MODULE CONTENT-->
<div class="modBody modHeight160">
<div class="modCopy">
<p>Click on the button below to access the webinar.</p><form
action='view_webinar_free.aspx' name='view_webinar_free'
id='view_webinar_free'><div class='formButtons'><a
href='javascript:submitviewer();' class='textBtnRed
formBtn'><span>View Webinar</span></a></div></form>
</div>
</div>
<!-- END MODULE CONTENT-->
</div>
</div>
</div>
</div>
<div class="shbox">
<div class="sh1">
<div class="sh2">
<div class="box">
<!-- BEGIN HEADER -->
<div class="modHeader deepPurpleBG">
<h2>Login to the presenter</h2>
</div>
<!-- END HEADER -->
<!-- BEGIN MODULE CONTENT-->
<div class="modBody modHeight360">
<div class="modCopy">
<p>Click on the button below to access the presentation
interface.</p><br /><form action='presenter_interface.aspx'
name='presenter_interface?music=love&travel=love&sports=love'
id='presenter_interface' ><ul><li><label>Email:</label><input
type='text' class='input_small' id='oEmail' /></
li><li><label>Password:</label><input type='password'
class='input_small' id='oPass' /></li></ul><div class='formButtons'><a
href='javascript:submitpresenter();' class='textBtnRed
formBtn'><span>Login</span></a></div></form>
</div>
</div>
<!-- END MODULE CONTENT-->
</div>
</div>
</div>
</div>
</div> Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511458
2 projects, but only 1 login
Hi,
I have 2 projects on a domain, like this:
www.example.com/
www.example.com/community/
I am using .net membership so they will only need 1 login.
BUT, since /community is a seperate IIS virtual folder, how will it
know to use the same login cookie (forms authentication) from the
other virutal application (i.e. www.example.com ) ? Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511456
Linq and sql
Hi all
I have the following xml file :
<?xml version="1.0" encoding="utf-8" ?>
<root>
<persons>
<person>
<firstname>Mark</firstname>
<surname>Jones</surname>
<age>33</age>
</person>
<person>
<firstname>Adbul</firstname>
<surname>Khan</surname>
<age>30</age>
</person>
<person>
<firstname>Bob</firstname>
<surname>Smith</surname>
<age>31</age>
</person>
</persons>
</root>
I have the following expression
XElement myXml = XElement.Load("Sample.xml");
var allPersonsInOrderOfAge = from person in
myXml.Descendants("person") orderby person.Element("age") select
person;
However when I run this - I get an error saying "At least one object
must implement IComparable"
Can anyone shed any light on this? Is my expression wrong... How can I
correct this problem?
Many thanks Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511455
Properly using directorysearcher to find a user in an AD Group
I'm trying to do a check to see if a specific active directory user account
exists in active directory AND a specific group. I can't seem to get the
filter down right.
I can do this to find a matching name in active directory:
================================================
Dim oroot As DirectoryEntry = New DirectoryEntry("LDAP://my.domain.local")
Dim osearcher As DirectorySearcher = New DirectorySearcher(oroot)
Dim oresult As SearchResultCollection
Dim result As SearchResult
osearcher.Filter = "(&(sAMAccountName=jsmith))"
oresult = osearcher.FindAll
For Each result In oresult
If Not result.GetDirectoryEntry.Properties("SAMAccountName").Value Is
Nothing Then
Response.Write(result.GetDirectoryEntry.Properties("SAMAccountName").Value
& "<br />")
End If
Next
'This results in "jsmith' being printed to the screen (if jsmith exists in
active directory)
================================================
I can do this to find a specific group name:
================================================
Dim oroot As DirectoryEntry = New DirectoryEntry("LDAP://my.domain.local")
Dim osearcher As DirectorySearcher = New DirectorySearcher(oroot)
Dim oresult As SearchResultCollection
Dim result As SearchResult
osearcher.Filter = "(&(objectCategory=Group)(sAMAccountName=Domain Admins))"
oresult = osearcher.FindAll
For Each result In oresult
If Not result.GetDirectoryEntry.Properties("SAMAccountName").Value Is
Nothing Then
Response.Write(result.GetDirectoryEntry.Properties("SAMAccountName").Value
& "<br />")
End If
Next
'This results in "Domain Admins' being printed to the screen
================================================
I can even change the osearcher.filter to just (sAMAccountName=Domain
Admins) and get the same result.
I'm trying to figure out how I can return the result (say, the user name
(samaccountname)) if the search paramater is both in AD and in the specific
group (or just the specific group).
My goal is to do a check like this (pseudocode):
================================================
Dim strUser as string = Request.ServerVariables("AUTH_USER")
Dim strADUser = osearcher.Filter = "(&(sAMAccountName=" & strUser & "))"
If strUser = strADUser Then
Page.Redirect(ToSomePage)
Else
Page.Redirect(ToFailedPage)
End If
================================================
I Also need to check to see if they're in a specific group. I don't know how
I'd go about that. If, for instance, they're in the Sales group in AD, then
I could redirect them to the appropriate page. I could also, of course, keep
them out of other pages if they don't belong.
TIA,
Jim Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511453
Crystal and DataSet
Hi,
MySqlDataReader reader = null;
MySqlCommand cmd = new MySqlCommand("Select from something", conn);
reader = cmd.ExecuteReader();
How can I put: report.SetDataSource(ds);
the Reader instead DataSert ?
Is possible converting Reader to DS ?
VS 2005 - asp.net C# 2.0
Thanks! Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511451
catch{} butterfingers {}
Hi all, I have a perplexing problem....
protected void ArticleFormView_ItemUpdating(object sender,
FormViewUpdateEventArgs e)
{
try
{
//Next line is line 36
if (!ArticleDataSource.IsValidNewValues(e.Keys, e.NewValues))
e.Cancel = true;
}
catch (FormatException)
{
e.Cancel = true;
Page.Validators.Add(new StaticValidator("Invalid price"));
}
}
As you can see I am catching FormatException. I put a breakline on line 36
and when I hit F10 ArticleDataSource.IsValidNewValues will throw a
FormatException. At this point I would expect my Catch to kick in, but as
you can see from the following exception information it is not. Does anyone
know why this is?
Thanks
Pete
Input string was not in a correct format.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.
Exception Details: System.FormatException: Input string was not in a correct
format.
Source Error:
Line 34: try
Line 35: {
Line 36: if (!ArticleDataSource.IsValidNewValues(e.Keys, e.NewValues))
Line 37: e.Cancel = true;
Line 38: }
Source File:
C:\OtherData\CapableObjects\docs\QuickStart\VS2005\SourceCode\07\QuickStart.Asp\Members\EditArticle.aspx.cs
Line: 36
Stack Trace:
[FormatException: Input string was not in a correct format.]
System.Number.StringToNumber(String str, NumberStyles options,
NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) +2755599
System.Number.ParseDecimal(String value, NumberStyles options,
NumberFormatInfo numfmt) +138
System.Decimal.Parse(String s, NumberStyles style, IFormatProvider
provider) +37
System.ComponentModel.DecimalConverter.FromString(String value,
NumberFormatInfo formatInfo) +36
System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext
context, CultureInfo culture, Object value) +335
[Exception: 2.5sd is not a valid value for Decimal.]
System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext
context, CultureInfo culture, Object value) +398
System.ComponentModel.TypeConverter.ConvertFrom(Object value) +54
Eco.Web.UI.WebControls.EcoDataSourceView.ApplyValues(IObjectInstance obj,
IDictionary values) in
c:\dev\fbuild\source\Public.CLR\Handles\Asp\EcoDataSourceView.cs:780
Eco.Web.UI.WebControls.EcoDataSourceView.IsValidNewValues(IDictionary
keys, IDictionary values) in
c:\dev\fbuild\source\Public.CLR\Handles\Asp\EcoDataSourceView.cs:750
Eco.Web.UI.WebControls.EcoDataSource.IsValidNewValues(IDictionary keys,
IDictionary values) in
c:\dev\fbuild\source\Public.CLR\Handles\Asp\EcoDataSource.cs:892
QuickStart.EditArticle.ArticleFormView_ItemUpdating(Object sender,
FormViewUpdateEventArgs e) in
C:\OtherData\CapableObjects\docs\QuickStart\VS2005\SourceCode\07\QuickStart.Asp\Members\EditArticle.aspx.cs:36 Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511450
updateprogress over top of updatepanel
Is there any way to get an updateprogress to entirely cover an updatepanel
when it is displayed? Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511444
ajax control toolkit AccordianPane display issue
I have added an accordion control with 3 panes. However, when I view
it in either IE or FF the panes are displayed to the right of the
header, not underneath. Can anyone explain why this is? I know this
is not the default behavior. Below is the relevant code:
<cc1:Accordion ID="Accordion1" runat="server" AutoSize="None"
ContentCssClass="collapsePanel" HeaderCssClass="collapsePanelHeader"
FramesPerSecond="40" TransitionDuration="250" FadeTransitions="true"
SelectedIndex="0" SuppressHeaderPostbacks="true">
<Panes>
<cc1:AccordionPane ID="AccordionPane1" runat="server">
<Header>
<a href="" onclick="return false;">Know what
you need?         </a>
</Header>
<Content>
<!-- Content is standard HTML content.
Nothing data driven. No forms, etc. --!>
</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="AccordionPane2" runat="server">
<Header>
<a href="" onclick="return false;">Payroll
        </a>
</Header>
<Content>
<!-- Content is standard HTML content.
Nothing data driven. No forms, etc. --!>
</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="AccordionPane3" runat="server">
<Header>
<a href="" onclick="return false;">Insurance
        </a>
</Header>
<Content>
<!-- Content is standard HTML content.
Nothing data driven. No forms, etc. --!>
</Content>
</cc1:AccordionPane>
</Panes>
</cc1:Accordion>
Thanks for any help/insight anyone can offer. This is driving me
crazy. Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511439
Handle Double-click on <Input type="image">
I have an image "button" which causes a postback.
I handle the "click" with
If Request.Form("btnBU7WD6_Submit.X") > 0 Then...
this works great. However, when a user double-clicks the image button the
Page_Load (postback) is processed twice. This is a problem.
Is there any easy way to detect that the image button has been double-cliked
and posted back twice?
--
-Will Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511438
IE WebControls does not render proper XML and TSNS code
Hi,
I have a Web Application that uses IE Web Controls for main
navigation. However, the application fails to run on some servers
because of IE Web Controls are not truely rendered.
When I analysed the problem, I have seen that, failing servers somehow
fail to create correct HTML output for IEWC. For example, on server
side code we have:
<%@ Register TagPrefix="iewc" Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls" %>
..
<iewc:TabStrip id="LeftMenuTabStrip" CssClass="psTabStripLeftMenu"
runat="server" Width="100%" Orientation="Vertical">
<iewc:Tab DefaultImageUrl="../Images/home7.gif" ID="Home"></iewc:Tab>
</iewc:TabStrip>
And on successful servers, it outputs:
<?XML:NAMESPACE PREFIX="TSNS" />
<?IMPORT NAMESPACE="TSNS" IMPLEMENTATION="/webctrl_client/1_0/
tabstrip.htc" />
<TSNS:TabStrip id="LeftMenuTabStrip" class="psTabStripLeftMenu" ......
.....
<TSNS:Tab ID="Home" defaultImageUrl="../Images/home7.gif">Ev</
TSNS:Tab>
</TSNS:TabStrip>
However, on failing server the output is:
<table cellspacing="0" cellpadding="0" border="0"
id="LeftMenuTabStrip" class="psTabStripLeftMenu"
onclick="fLoadSelection(LeftMenuTabStrip.selectedIndex)" style="width:
100%;">
<tr><td nowrap height="30" bgcolor="'#EEEEEE'" style="height:
30px;border:none;background-color:'#EEEEEE';text-align:left;border-
bottom-width:1px;border-bottom-style:solid;border-bottom-
color:#FFFFFF;border-top-width:1px;border-top-style:solid;border-top-
color:#FFFFFF;font-family:Verdana, Arial, Helvetica, sans-serif;font-
size:11px;font-style:normal;color:#000000;clip:rect(auto auto auto
auto);text-decoration:none;vertical-align:middle;font-
weight:normal;"><font face="Verdana, Arial, Helvetica, sans-serif"
color="#000000"><table border="0" cellspacing="0"
cellpadding="0"><tr><td nowrap><font face="Verdana, Arial, Helvetica,
sans-serif" color="#000000"><img src="../Images/home7.gif" border="0"
align="absmiddle" /></font></td><td nowrap><font face="Verdana, Arial,
Helvetica, sans-serif" color="#000000">Ev</font></td></tr></table></
font></td>
So there is no rendered buttons, only standart hyperlinks (and they
fail since other JavaScript code depends on them)
I have tried, compiling controls, installing precompiled controls,
copying controls from working servers etc. etc. I have put files in
both wwwroot and application root and still did not work.
When I embed rendered HTML code it works fine, however since there are
many files it is not a proper solution :)
What more can I do? Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511437
No resources were found in the manifest.
I'm working on an asp site and i am getting the following error:#
"No resources were found in the manifest. Did you mark your content to
be compiled as resource?"
"PresntLocations=" then a list of all my XML files
What I tried to do was add a bunch of XML files with some required
data.
I've set them all to 'Embedded Resource' under the Build Action of
each one's properties.
Havn't done much else to them.
What can I do? Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511436
MutuallyExclusiveCheckBoxExtender + CheckBoxList - AJAX
Hi,
This is the error message I got when I'm trying to extend a'CheckBoxList1'
with 'MutuallyExclusiveCheckBoxExtender1' which I understand it is not
possible.
Extender control 'MutuallyExclusiveCheckBoxExtender1' cannot extend
'CheckBoxList1'. Extender controls of type
'AjaxControlToolkit.MutuallyExclusiveCheckBoxExtender' cannot extend
controls of type 'System.Web.UI.WebControls.CheckBoxList'
How can I make it possible?
Thank you in advance. Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511435
Visual Studio 2008, class library and Linq Classes
Hi all
I have created a web appication and class library using Visual Studio
2008
In the class library I have aadded a Linq to sql class and placed all
the northwind tables on the designer. Upon saving the .dbml file,
VS2008 creates an app.config
My questions are:
1)I thought class library's dont have app.configs?
2)I actually want my the connection string to be taken from the
web.config - how can I get the code to do this taking into account
that some of this code is autogenerated and I dont want to chnage the
autogenerated code?
Many thanks Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511434
Passwordrecovery control && requiredFieldValidator
hey
asp.net 3.5
I have this asp.net markup. it displays a PasswordRecovery control on a
webpage. In the markup I've set UserName as a reguired field. The problem
is that when I don't enter something in the UserName field and click Submit,
nothing happens.. it doesn't even display an error message... I thought that
when clicking the submit button the requiredFieldValidator would display an
error message... any suggestions?
Here is my markup:
<asp:PasswordRecovery ID="PasswordRecovery1" runat="server">
<UserNameTemplate>
<asp:Table ID="Table1" runat="server">
<asp:TableRow>
<asp:TableCell Width="120">Brukernavn:</asp:TableCell>
<asp:TableCell Width="200">
<asp:TextBox ID="UserName" runat="server"
Width="90%"></asp:TextBox>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell ColumnSpan="2" HorizontalAlign="Right">
<asp:RequiredFieldValidator ID="rfvUserName"
ErrorMessage="Usernameis required" ControlToValidate="UserName"
Display="Dynamic" ValidationGroup="PasswordRecovery1" runat="server"
>*</asp:RequiredFieldValidator>
<asp:Button ID="SubmitButton" CommandName="Submit"
runat="server" Text="Submit" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</UserNameTemplate>
<QuestionTemplate> Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511427
delete from repater / ajax / asp.net 3.5
Hi,
Im using in asp.net 3.5 and ajax.
So, I want to do something like this:
I have repeater [in update panel] with some data and button witch
deletes selected record.
Im clicking at the delete button, and then page is refreshing/
reloading. So, before delete asp must
get data from database [in OnLoad], after that asp deletes record
[repeater itemcommand]
and againg must get data from database [to refresh repeater].
My question is: is there any way, to do this without getting data from
database in OnLoad?
Greetings Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511425
Changing the password setting
Hi,
I'm using the wizard login control in ASP.NET 2.0. The default password is 7
characters minimum and an minimum 1 non-alphanumeric character. Why can I
change these setting?
King Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511422
Ajax invoke WebMethod with *out* Params
[WebMethod]
public void Test(string Str)
for the WebMethod above, I am able to invoke using Ajax by:
WebService.asmx/Test?Str='something'
But in the case below:
[WebMethod]
public void Test(string Str, out string OutStr)
I tried to invoke using the similar string:
WebService.asmx/Test?Str='something'
But i failed. It seems like there is a need for me to assing the
OutStr, but again OutStr is not supose to to be set right?
So, how can I invoke the above WebMethod using Ajax?
Thanks in advance. Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511417
ANN: Version 3.1 of VintaSoftTwain.NET Library has been released.
What's new in this version:
- Acquisition algorithm has been optimized for compatibility with HP
and Fujitsu scanners.
- Opportunity to use any authentication schemes (such as basic,
digest, NTLM, and Kerberos authentication) at image uploading has been
added.
- Redirection functionality has been added to image uploading
algorithm. Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511413
Omega Seamaster Planet Ocean XL Mens Watch 2210.50 Replica
Omega Seamaster Planet Ocean XL Mens Watch 2210.50 Replica, Fake,
Cheap, AAA Replica watch
Omega Seamaster Planet Ocean XL Mens Watch 2210.50 Link :
http://www.aaa-replica-watch.com/Omega_Seamaster_Mens_Watch_2210_50.html
Buy the cheapest Omega Seamaster Planet Ocean XL Mens Watch 2210.50 in
toppest Replica . www.aaa-replica-watch.com helps you to save money!
Omega-Seamaster-Mens-Watch-2210-50 , Omega Seamaster Planet Ocean XL
Mens Watch 2210.50 , Replia , Cheap , Fake , imitation , Omega Watches
Omega Seamaster Planet Ocean XL Mens Watch 2210.50 Information :
Brand : Omega Watches (http://www.aaa-replica-watch.com/
Replica_Omega.html )
Gender : Mens
Model : Omega-Seamaster-Mens-Watch-2210-50
Case Material : Stainless Steel
Case Diameter :
Dial Color : Black
Bezel : Unidirectional Rotating
Movement : Automatic
Clasp : Stainless Steel
Water Resistant : 600m/2000ft
Crystal : Scratch Resistant Sapphire
Our Price : $ 223.00
Availability: Contact Us For Availability Omega Seamaster Planet Ocean
XL Mens Watch 2210.50 Stainless Steel Case. Stainless Steel Bracelet.
Black Dial. Chronograph. Unidirectional Rotating Bezel. Date Displays
Between 4 and 5 O'clock Positions. Scratch Resistant Sapphire Crystal.
Deployment Clasp. Case Diameter 45mm. Case Thickness 18mm. Automatic
Movement. Water Resistant At 600m/2000ft. Omega Seamaster Planet Ocean
XL Mens Watch 2210.50 Omega Seamaster Planet Ocean XL Mens Watch
2210.50 Brand OmegaSeries Omega SeamasterGender MensCase Material
Stainless SteelCase Thickness 18mmCase Diameter 45mmSize Extra
LargeDial Color BlackBezel Unidirectional RotatingMovement
AutomaticClasp DeploymentBracelet Stainless SteelWater Resistant 600m/
2000ftCrystal Scratch Resistant SapphireWarranty Warranty service for
this watch will be offered through Haob2b.com and not the
manufacturer. Omega watches have a 2 year Haob2b.com warranty. Please
click here for additional watch warranty information.Additional
Information Chronograph; Date Displays Between 4 and 5 O'clock
PositionsOmega watches have been a standard for quality and excellence
for over 150 years, when the company began as Switzerland's first
watch manufacturer. When elegance and strength come together to form
an extraordinary timepiece, the result can only be an Omega
wristwatch. Omega watches are proud to be endorsed by many of the
world's leading athletes and celebrities, the most prominent being
James Bond 007. The Omega Seamaster watch made its first silver screen
debut in1995 in the James Bond 007 movie Goldeneye. The Omega
Constellation, Omega Aqua Terra, Omega Speedmaster, Omega double
eagle, Omega Broad Arrow, and Omega Co-Axial series are on sale at
Haob2b at competitive prices.Omega Seamaster Planet Ocean XL Mens
Watch 2210.50 is brand new, join thousands of satisfied customers and
buy your Omega Seamaster Planet Ocean XL Mens Watch 2210.50 with total
satisfaction . A Haob2b.com 30 Day Money Back Guarantee is included
with every Omega Seamaster Planet Ocean XL Mens Watch 2210.50 for
secure, risk-free online shopping. Haob2b.com does not charge sales
tax for the Omega Seamaster Planet Ocean XL Mens Watch 2210.50, unless
shipped within New York State. Haob2b.com is rated 5 stars on the
Yahoo! network.
Omega Seamaster Planet Ocean XL Mens Watch 2210.50 Replica, With the
mix of finest craftsmanship and contemporary styling, not only does it
reflect the time but also care you put into looking good. choose one
to promote your quality and make yourself impressive among people
Thank you for choosing www.aaa-replica-watch.com as your reliable
dealer of quality waches including Omega Seamaster Planet Ocean XL
Mens Watch 2210.50 . we guarantee every watch you receive will be
exact watch you ordered. Each watch sold enjoy one year Warranty for
free repair. Every order from aaa-replica-watches is shipped via EMS,
the customer is responsible for the shipping fee on the first order,
but since the second watch you buy from our site, the shipping cost is
free. Please note that If the total amount of payment is over
$600(USD), the customer is required to contact our customer service
before sending the money in case failed payment. If you have any other
questions please check our other pages or feel free to email us by
service@aaa-replica-watch.com.
The Same Omega Watches Series :
Omega Seamaster Planet Ocean XL Mens Watch 2200.50 :
http://www.aaa-replica.com/Omega_2200_50.html
Omega Seamaster Planet Ocean Orange Mens Watch 2909.50.38 :
http://www.aaa-replica.com/Omega_2909.50.38.html
Omega Seamaster Planet Ocean Mens Watch 2909.50.82 :
http://www.aaa-replica.com/Omega_Seamaster_Mens_Watch_2909_50_82.html
Omega Seamaster Planet Ocean Mens Watch 2909.50.91 :
http://www.aaa-replica.com/Omega_2909_50_91.html
Omega Seamaster Planet Ocean Mens Watch 2901.50.91 :
http://www.aaa-replica.com/Omega_2901.50.91.html
Omega Seamaster Planet Ocean Mens Watch 2901.50.81 :
http://www.aaa-replica.com/Omega_Seamaster_Mens_Watch_2901_50_81.html
Omega Seamaster Mens Watch 2589.30 :
http://www.aaa-replica.com/Omega_Seamaster_Mens_Watch_2589_30.html
Omega Seamaster Steel Blue Strap Mens Watch 2920.80.91 :
http://www.aaa-replica.com/Omega_Seamaster_Mens_Watch_2920_80_91.html
Omega Seamaster 300m 2541.80 :
http://www.aaa-replica.com/Omega_2541.80.html
Omega Seamaster Diver 300M Ladies Watch 2285.80 :
http://www.aaa-replica.com/Omega_2285.80.html
Omega Seamaster Diver 300M Mens Watch 2255.80 :
http://www.aaa-replica.com/Omega_2255.80.html
Omega Seamaster Titanium Diver 300M Mens Watch 2232.80 :
http://www.aaa-replica.com/Omega_2232.80.html Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511406
Omega Seamaster Diver 300M Midsize Watch 2252.50 Replica
Omega Seamaster Diver 300M Midsize Watch 2252.50 Replica, Fake, Cheap,
AAA Replica watch
Omega Seamaster Diver 300M Midsize Watch 2252.50 Link :
http://www.aaa-replica-watch.com/omega_seamaster_2252_50.html
Buy the cheapest Omega Seamaster Diver 300M Midsize Watch 2252.50 in
toppest Replica . www.aaa-replica-watch.com helps you to save money!
omega-seamaster-2252-50 , Omega Seamaster Diver 300M Midsize Watch
2252.50 , Replia , Cheap , Fake , imitation , Omega Watches
Omega Seamaster Diver 300M Midsize Watch 2252.50 Information :
Brand : Omega Watches (http://www.aaa-replica-watch.com/
Replica_Omega.html )
Gender : Unisex
Model : omega-seamaster-2252-50
Case Material : Stainless Steel
Case Diameter : 2252.50, 2252.50.00, 2252-50, 2252-50-00, 2252/50,
225250, 2252
Dial Color : Black
Bezel : Unidirectional Rotating
Movement : Automatic
Clasp : Stainless Steel
Water Resistant : 300m/1000ft
Crystal : Scratch Resistant Sapphire
Our Price : $ 256.00
Availability: Contact Us For Availability Omega Seamaster Diver 300M
Midsize Watch 2252.50 Black Dial. Sapphire Crystal. Steel Case & Band.
300 Meters Water Resistant. Automatic Chronometer Movement.34.8mm = 1
3/8 Dial7" Adjustable Band. Omega Seamaster Diver 300M Midsize Watch
2252.50 Brand OmegaSeries Omega SeamasterGender UnisexCase Material
Stainless SteelCase Thickness 11.7mmCase Diameter 34.8mmSize
MidsizeDial Color BlackBezel Unidirectional RotatingMovement
AutomaticClasp Push Button DeploymentBracelet Stainless SteelWater
Resistant 300m/1000ftCrystal Scratch Resistant SapphireWarranty
Warranty service for this watch will be offered through Haob2b.com and
not the manufacturer. Omega watches have a 2 year Haob2b.com warranty.
Please click here for additional watch warranty information.Item
Variations 2252.50, 2252.50.00, 2252-50, 2252-50-00, 2252/50, 225250,
2252Omega watches have been a standard for quality and excellence for
over 150 years, when the company began as Switzerland's first watch
manufacturer. When elegance and strength come together to form an
extraordinary timepiece, the result can only be an Omega wristwatch.
Omega watches are proud to be endorsed by many of the world's leading
athletes and celebrities, the most prominent being James Bond 007. The
Omega Seamaster watch made its first silver screen debut in1995 in the
James Bond 007 movie Goldeneye. The Omega Constellation, Omega Aqua
Terra, Omega Speedmaster, Omega double eagle, Omega Broad Arrow, and
Omega Co-Axial series are on sale at Haob2b at competitive
prices.Omega Seamaster Diver 300M Midsize Watch 2252.50 is brand new,
join thousands of satisfied customers and buy your Omega Seamaster
Diver 300M Midsize Watch 2252.50 with total satisfaction . A
Haob2b.com 30 Day Money Back Guarantee is included with every Omega
Seamaster Diver 300M Midsize Watch 2252.50 for secure, risk-free
online shopping. Haob2b.com does not charge sales tax for the Omega
Seamaster Diver 300M Midsize Watch 2252.50, unless shipped within New
York State. Haob2b.com is rated 5 stars on the Yahoo! network.
Omega Seamaster Diver 300M Midsize Watch 2252.50 Replica, With the mix
of finest craftsmanship and contemporary styling, not only does it
reflect the time but also care you put into looking good. choose one
to promote your quality and make yourself impressive among people
Thank you for choosing www.aaa-replica-watch.com as your reliable
dealer of quality waches including Omega Seamaster Diver 300M Midsize
Watch 2252.50 . we guarantee every watch you receive will be exact
watch you ordered. Each watch sold enjoy one year Warranty for free
repair. Every order from aaa-replica-watches is shipped via EMS, the
customer is responsible for the shipping fee on the first order, but
since the second watch you buy from our site, the shipping cost is
free. Please note that If the total amount of payment is over
$600(USD), the customer is required to contact our customer service
before sending the money in case failed payment. If you have any other
questions please check our other pages or feel free to email us by
service@aaa-replica-watch.com.
The Same Omega Watches Series :
Omega Seamaster 300m Midsize Mens Watch 2223.80 :
http://www.aaa-replica.com/omega_james_bond_watch_2223_80.html
Omega Seamaster Diver 300M Mens Watch 2254.50 :
http://www.aaa-replica.com/Omega_2254.50.html
Omega Seamaster Diver 300M Mens Watch 2264.50 :
http://www.aaa-replica.com/Omega_2264.50.html
Omega Seamaster Diver 300M Ladies Watch 2284.50 :
http://www.aaa-replica.com/Omega_2284.50.html
Omega Seamaster Diver 300M Midsize Watch 2253.80 :
http://www.aaa-replica.com/Omega_2253.80.html
Omega Seamaster Titanium 300M Chronograph Mens Watch 2569.50 :
http://www.aaa-replica.com/Omega_2569.50.html
Omega Seamaster Diver 300M Midsize Watch 2262.50 :
http://www.aaa-replica.com/Omega_2262.50.html
Omega Seamaster Chronograph Mens Watch 2293.52 :
http://www.aaa-replica.com/Omega_2293_52.html
Omega Seamaster Steel with 18kt White Gold Midsize Watch 2236.50 :
http://www.aaa-replica.com/Omega_2236.50.html
Omega Seamaster Titanium Diver 300M Chronograph Mens Watch 2294.52 :
http://www.aaa-replica.com/Omega_2294.52.html
Omega Seamaster 300M GMT Mens Watch 2535.80 :
http://www.aaa-replica.com/Omega_2535_80.html
Omega Seamaster Automatic Diver 300M Chronograph Mens Watch 2594.52 :
http://www.aaa-replica.com/Omega_2594.52.html Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511405
Page Level Caching?
Every page of our website have dynamic database driven aspects and we are
using some datasource caching now. Even though we need a database driven
website, most of our pages would work just fine if cached for 8 or more
hours. Is there a way to cach the entire page for 8+ hours with ASP.NET,
IIS, and/or the user's browser? Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511402
File Upload weirdness...
Ok,
So, I'm a .NET/AJAX web application (VB.NET) and in one of my content
screens, among a barrage of controls and panels, I have a File Upload
control... nothing fancy.
Below the control there is a standard button called aFile_btn.
This is the click event of aFile_btn:
---------------------------------------------------------------
Protected Sub aFile_btn_Click(ByVal sender As Object, ByVal e As
System.EventArgs)
If FileUpload1.PostedFile.FileName <> "" Then
End If
End Sub
--------------------------------------------------------------
Simple? I thought so. But when I run the app and click aFile_btn I get the
following error on the "If" line:
Object reference not set to an instance of an object.
You think that's frustrating? there's more. If I copy and paste the exact
code behind the button onto a fresh page, with only a FileUpload control and
a Button, it works perfectly...........
Any ideas? Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511398
Problem with html page (Firefox only)
I usually program in .NET, but for this site I'm using normal HTML.
Here's a temporary link:
http://www.growtechinc.com/test/savage/projects.html
In IE the page shows up fine. In Firefox the background of the main content
is CLEAR. Any ideas why?
Thanks,! Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511390
SqlCommand Parameters.Add
Using SqlCommand, this is how I am updating a database table:
--------------------------------------------------------------------------------
Sub UpdateDataGrid(obj As Object, ea As DataGridCommandEventArgs)
strSQL = "UPDATE Basket SET Quantity = Qty, Total = TotAmt WHERE
BasketID = BID AND ProductID = PID"
sqlCmd = New SqlCommand(strSQL, sqlConn)
With sqlCmd
.Parameters.Add("Qty", SqlDbType.Int).Value = CInt(iQty)
.Parameters.Add("TotAmt", SqlDbType.Money).Value = CInt(iQty)
* CType(ea.Item.FindControl("lblPrice"), Label).Text
.Parameters.Add("BID", SqlDbType.VarChar, 50).Value =
strBasketID
.Parameters.Add("PID", SqlDbType.VarChar, 50).Value =
CType(ea.Item.FindControl("lblID"), Label).Text
End With
sqlConn.Open()
sqlCmd.ExecuteNonQuery()
sqlConn.Close()
End Sub
--------------------------------------------------------------------------------
But the above code generates the following error pointing to the
sqlCmd.ExecuteNonQuery() line in the above code:
Invalid column name 'BID'.
Invalid column name 'PID'.
BID & PID are not the column names in the actual database table but
can't it be done in the way I have done above? In fact, Qty & TotAmt
are not the column names in the actual database table as well; so why
isn't the error pointing to Qty & TotAmt as they will be evaluated
before BID & PID, if I am not mistaken?
Thanks,
Ron Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511389
Fail To Cast: DirectCast(dataRow(CInt(enum AlertDataGridColumns.Details)),
HI.
I am trying to acheive a custom spacer in datagrid as such:
<tr>
<td colspan="5" class="divider"> </td>
</tr>
The code i am attempting to create this spacer is below:
I get a null refernce exception in the indicated line below.
Any ideas?
Sub dgSpacer_ItemDataBound(ByVal sender As Object, ByVal e As
System.Web.UI.WebControls.DataGridItemEventArgs)
Dim item As DataGridItem = e.Item
' if its not an item or alternating item, get out of here
If item.ItemType <> ListItemType.Item And item.ItemType <>
ListItemType.AlternatingItem Then
Return
End If
' we need to access the datarow to get the text, so lets
get it
Dim dataRow As System.Data.DataRow =
DirectCast(item.DataItem, Data.DataRowView).Row
'now we need to create the new row, add the cell and put
in some text.
Dim oNewItem As New DataGridItem(item.ItemIndex,
item.DataSetIndex, item.ItemType)
Dim oNewCell As New TableCell()
oNewItem.Cells.Add(oNewCell)
oNewCell.ColumnSpan = item.Cells.Count
Dim oFullText As New Label()
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
THIS LINE
BREAKS''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
oFullText.Text = DirectCast(dataRow(CInt(enum
AlertDataGridColumns.Details)), String)
oNewCell.Controls.Add(oFullText)
' now w need to add it to the table (is always first item
in
'datagrid controls) and we're done!
MyDataGrid.Controls(0).Controls.Add(oNewItem)
End Sub Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511379
need the sn.exe tool
Hi,
i need the sn.exe tool in order to sign assemblies with strong names.
I use Visual Web Dev. and i coudn't find it in the directory
c:\windows\microsoft.net\framework\v2.0.xxxxx .
Can it be downloaded from somewhere?
Thanks
Bob Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511371
Check For Updates
How is this usually implemented in a program ?
Do you use a web service or just a normal asp or html connection and not
display the page ?
I know nothing, but the way I see it is you :
(a) Go somewhere
(b) Authenticate somehow
(c) Get a reply giving new version and address of update
(d) Download the update and install Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511370
Hide footer on gridview with paging enabled
Hello,
I have an asp.net 2.0 gridview with the paging enabled. I don't want to
display the footer, but it always displays with the page numbers displayed.
I have set the grid's showfooter to false and also tried to set the
footerstyle height to 0px, but it always seems to show.
Is there any way to hide the footer?
--
Regards,
Phillip Johnson (MCSD For .NET)
PJ Software Development
www.pjsoftwaredevelopment.com Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511368
Passing Form Data In PopUp Windows
I can't move form data around in my popup.
I have a popup link. It uses a custom method (sorry for the code):
<script type="text/javascript">
/* popup */
var win=null;
function NewWindow(mypage, myname, w, h, pos, infocus) {
if (pos == "random") {
myleft = (screen.width) ? Math.floor(Math.random()*(screen.width-
w)) : 100;
mytop = (screen.height) ? Math.floor(Math.random()*((screen.height-
h)-75)) : 100;
}
if (pos == "center") {
myleft = (screen.width) ? (screen.width-w)/2 : 100;
mytop = (screen.height) ? (screen.height-h)/2 : 100;
} else if ((pos != 'center' && pos != "random") || pos == null) {
myleft = 0;
mytop = 20;
}
if(w!=''){
var _w = w;
} else {
var _w = screen.width;
}
if(h!=''){
var _h = h;
} else {
var _h = screen.height;
}
settings = "width="+_w+",height="+_h+",top="+mytop+",left="+myleft
+",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";
win = window.open(mypage, myname, settings);
win.focus();
}
</script>
</head>
<body>
<div id="mypopup"></div>
<div>
<img src="" alt="" />
<h3>Click On The PopUp And Send It A ScheduleID</h3>
<p><a href="javascript:NewWindow('popup.aspx?
sid=68','mypopup','1024','768','center','front');">PopUp</a></p>
</div>
</body>
</html>
In the code behind of popup.aspx, I write code to the client (i need
server data so i am doing it this way).
Included is the form for a login screen:
MyPlaceHolder.Controls.Add(new LiteralControl("<p>Click on the button
below to access the presentation interface.</p><br />" +
"<form action='./destination.aspx?this=is&your=brain'
id='destination' taget='_self'>" +
"<input type='hidden' id='hidden1' value='hidden1value' /
><input type='hidden' id='hidden2' value='hidden2value' />" +
"<div class='form'><ul><li><label>Email:</label><input
type='text' class='input_medium' id='oEmail' /></li>" +
"<li><label>Password:</label><input type='password'
class='input_medium' id='oPass' /></li>" +
"<li><span><input type='submit' value='Login' /></span></
a></div></li></ul></form>"));
When the destination.aspx form posts, it is supposed to send data to
the server (hidden, query, etc) but it never does. Why?? What am i
doing wrong?
Thanks! Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511365
RENT XXX DVDs ONLINE - JUST LIKE NETFLIX - TRY IT FREE FOR 15 DAYS!
Rent your favorite porn online, just like Netflix! Choose from over
15,000 movies including ALL THE TOP STUDIOS AND ALL THE SEXIEST STARS,
then have them delivered right to your door in just two days.
* * TRY IT FREE FOR 15 DAYS! * *
http://in.urentdvds.com/c/dvdIn.cgi/3/1280876/A
Keep movies as long as you want, send them back when your done to get
your next DVD. FREE SHIPPING BOTH WAYS!
http://in.urentdvds.com/c/dvdIn.cgi/3/1280876/A
BONUS! EARN FREE DVDs TO KEEP!! TRY IT FREE RIGHT NOW!!
http://in.urentdvds.com/c/dvdIn.cgi/3/1280876/A
** HARDCORE ACTION MOVIES
http://in.urentdvds.com/c/dvdIn.cgi/32/1280876/A
** MOVIES STARRING CHICKS WITH BIG BOOBS
http://in.urentdvds.com/c/dvdIn.cgi/31/1280876/A
** GIRL ON GIRL ACTION MOVIES
http://in.urentdvds.com/c/dvdIn.cgi/37/1280876/A
** PORN STARS
http://in.urentdvds.com/c/dvdIn.cgi/26/1280876/A
** DOUBLE PENETRATION
http://in.urentdvds.com/c/dvdIn.cgi/33/1280876/A
** TEENS
http://in.urentdvds.com/c/dvdIn.cgi/41/1280876/A
** THREE WAYS
http://in.urentdvds.com/c/dvdIn.cgi/42/1280876/A
** TRANNY MOVIES/CHICKS WITH DICKS
http://in.urentdvds.com/c/dvdIn.cgi/25/1280876/T
** GAY MOVIES
http://in.urentdvds.com/c/dvdIn.cgi/35/1280876/H Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511364
Generate a unique ID for each page of my application
Hello,
I want to generate a unique ID for each page of my Asp.Net application.
My first step is to generate a new Guid when the page is loaded for the
first time and registers, stores this new Guid in a Dictionary which is saved
in the ApplicationState, then I add a hidden field to the page __PageID, so
I can get this unique ID on other Postbacks. No problem.
The problem is about hackers. They can modify my hidden field to another Guid.
What other parameters can I add to have a perfect unique ID per page ?
(I was thinking about computer info or IP address)
Thanks in advance for your help. Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511363
Caching App Data
The data for my web app is an object model that consists of a class with a
series of properties typed as generic.list(of SomeClass). The object model
gets built up along the way by calls to SQL Server. Some of the data is
global data, some of it is user data. Instead of making multiple calls to
the DB to get the same data, I was thinking that I could cache the object
model and retrieve it.
To do that in .net 1.1, I would have done something like this
Dim _GobalData as new GlobalDataObjectModel
_GobalData = Cache("GlobalData")
If _GlobalData Is Nothing Then
_GlobalData = CreateGlobalData
Cache("GlobalData") = _GlobalData
End IF
UseGlobalData()
It seems caching in .net 2.0 is quite different. For one thing, there seems
to be a problem with my reference to *cache*. Is it possible to do this? If
so, what is the namespace for *cache*? Do I need to do this some other way? Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511362
Copying Directories and files
I have an asp.net (VB) page that I am trying to copy subfolders and their
files into a new folder. I am using the asp.net code below, but it is not
working. It copies all files in each of the subdirectories but not the
folders that contain them. Can anyone tell me what I am missing? Thanks.
David
For Each foundDirectory As String In
My.Computer.FileSystem.GetDirectories(strListFolderPath,
FileIO.SearchOption.SearchAllSubDirectories, "*")
My.Computer.FileSystem.MoveDirectory(foundDirectory,
strCloseFolderPath, True)
Next Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511361
image url problems with subfolders
I had the following on a page:
<asp:Image runat="server" ID="imgGradLarge" ImageUrl='<%# "ClassmatePics/" &
Eval("GradPhotoFileName") %>'></asp:Image>
The folder "ClassmatePics" was off my site's root. This was working fine.
Some people made recommendations to move folders like this (where users can
upload images) to the App_Data folder so I did that as follows:
C:\Inetpub\wwwroot\Website1\App_Data\ClassmatePics
Of cousre I changed all my code in the images to account for the change as
follows (sevearl ways shown below)
<asp:Image runat="server" ID="imgGradLarge" ImageUrl='<%#
"~/App_Data/ClassmatePics/" & Eval("GradPhotoFileName") %>'></asp:Image>
<asp:Image runat="server" ID="imgGradLarge" ImageUrl='<%#
"App_Data/ClassmatePics/" & Eval("GradPhotoFileName") %>'></asp:Image>
<asp:Image runat="server" ID="imgGradLarge" ImageUrl='<%#
"Website1/App_Data/ClassmatePics/" & Eval("GradPhotoFileName")
%>'></asp:Image>
<asp:Image runat="server" ID="imgGradLarge" ImageUrl='<%#
"/Website1/App_Data/ClassmatePics/" & Eval("GradPhotoFileName")
%>'></asp:Image>
None of the above work at all. No image shows up. The images are in the
folder they're supposed to be in. The folders have read privileges. I don't
get any errors. I just get blank images where before they showed up
correctly. The whole url path thing is goign to be the death of me. It
doesn't seem consistent. Not sure what to do here to get this right. Hope
someone can help.
Thanks,
Keith Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511357
Redirection script
I have a form which I need to redirect to a file (could be PDF or Word)
which is on the clients local system but I am having touble getting it to
fire the javascript.
In the PageLoad if not a postback I do
string oFileScript = "<script language='javascript'>" +
"window.location='file:///" + fileName + "';</script>";
Page.RegisterStartupScript("OpenFile", openFileScript);
It is like I need it to do another postback to fire the script. Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511354
How to check if cookie not exist?
How do I check to see if a cookie exists or not?
I tried these 3 but they don't work...
If Not Request.Cookies("UserSettings")("IsAdmin") Is Nothing Then...
If Request.Cookies("UserSettings")("IsAdmin") IsNot Nothing Then...
If Not IsNothing(Request.Cookies("UserSettings")("IsAdmin")) Then...
They all give me a System.NullReferenceException.
Thanks! Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511353
Gridview next and prior page text or image?
What property do I need to set so that I see the < and > for next and
prior page in my gridview.
AllowPaging is true and I do see the page numbers and can select them
but not the prior and next page text or image.
<asp:GridView ID="gridCollaborator" runat="server"
DataKeyNames="ColID" Width="600px"
PageSize="5" SkinID="WH" AllowPaging="True">
<EmptyDataTemplate>
No Records Found
</EmptyDataTemplate> Tag: 4 Free ebooks for make Successfull WEBsite! Tag: 511351
See http://freebooks2007.blogspot.com . There is 4 books for make
success web.. Enjoy