| Sort list via client code only |
|
 |
Index ‹ Web Programming ‹ ASP.Net
|
- Previous
- 1
- ASP.Net >> Change Password Control HelpI added a change password control to my application and when I run the page
that has it, I get an error:
Generating user instances in SQL Server is disabled. Use sp_configure 'user
instances enabled' to generate user instances.
Not sure where to start for this error, because all the code in the
code-behind runs. It seems that when the page is about ready to display, this
error comes up. I saw references to membership stuff in ASP.Net 2.0, but we
are not using that...yet.
- 2
- ASP.Net >> anyone upload code to load balanced servers?I'm wanting to get rid of a hardware load balancer and just use the Windows
2003 software load balancing with 2003 Server Web Edition.
I'm wondering if anyone here uploads ASP.NET code to 2 or more servers that
are load balanced by Windows Server Network Load Balancing (software load
balancing on Windows 2003). If so, or if you're sure of the answer anyway
for windows-based load balancing, here's the questions:
Can you do just one upload that updates code on all the web servers at once?
Do you just specify the NLB IP address?
Can you choose to upload code to just one server first, make sure it doesn't
cause major problems, and then update the other servers one-by-one? Do you
just specify each machine's non-load-balanced IP address?
If you manage the NLB software side of things, do you find it easy and
reliable?
- 3
- ASP.Net >> Default values in a FormViewWhere can I specify a default value for a column when using a FormView?
Specifically, I have a checkbox for a column of bit datatype on my database,
and I'd like to default it to checked for insert of a new row.
Thanks,
Gary
- 4
- ASP.Net >> .NET 2.0: DataList with nested LinkButtonHello,
Please help me in simple problem. I defined DataList, FooterTemplate
with nested asp:LinkButton, and command handler procedure:
<asp:DataList ID="BooksList" runat="server"
OnEditCommand="BooksList_Edit"
OnUpdateCommand="BooksList_Update"
OnCancelCommand="BooksList_Cancel"
OnDeleteCommand="BooksList_Delete">
...
<FooterTemplate>
</tbody>
<tfoot>
<tr align="justify">
<td>
<asp:LinkButton ID="BooksLisAdd"
runat="server" Text="Add" CommandName="Add"
OnCommand="BooksListAdd_Add" />
</td>
</tr>
</tfoot>
</table>
</FooterTemplate>
</asp:DataList>
protected void BooksListAdd_Add(object sender, CommandEventArgs e)
{
...
BooksListAdd.Visible = false; // HERE ERROR: "The
name 'BooksListAdd' does not exist in the current context."
}
Could you explain me please the error and how to solve it?
Thank you very much
/RAM/
- 5
- ASP.Net >> Databinding a Multi Column List?I need to databind a record set from the database into a page.
The output I need is a textbox and a label for every item in the
resultset, but I don't want a long vertical list... instead I want a
table with 3 or 4 columns, with each cell holding a textbox and a
label.
So if I were to bind this to a datagrid, the default view would be a
tall and narrow grid, but what I want is more of a rectangular shape on
the form.
Anyone know if this type of thing is possible?
- 6
- ASP.Net >> Displaying External Web Site via IntranetWe have approximately 90 computer users, but only 13 have internet access,
the rest are not configured to browse the internet. We want to display
certain web sites to all users without reconfiguring their pcs. Is there a
way to have our intranet web server retrieve the external page and then
display the results to the user?
Thanks.
- 7
- ASP.Net >> ASP.NET 2.0 - ViewState not working???I am testing ViewState in a C# ASP.NET site. The following code SHOULD cause
the values of the variables to increase whenever the user pushes the submit
button - but this is not happening; instead the values are getting set back
to their initial values set at page_load. Someone please tell me what I am
doing wrong!
Here is the code:
public partial class _Default : System.Web.UI.Page
{
Int32 Counter;
string StringVar;
double DoubleVar;
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Counter = 1;
StringVar = "Hello";
DoubleVar = 3.5;
ShowCounter.Text = Convert.ToString(Counter);
ShowStringVar.Text = StringVar;
ShowDoubleVar.Text = Convert.ToString(DoubleVar);
}
else
{
Counter = (Int32)ViewState["Counter"];
StringVar = (string)ViewState["StringVar"];
DoubleVar = (double)ViewState["DoubleVar"];
}
}
void Page_PreRender(object Sender, EventArgs e)
{
ViewState["Counter"] = Counter;
ViewState["StringVar"] = StringVar;
ViewState["DoubleVar"] = DoubleVar;
}
void PushMe_Click(Object sender, EventArgs e)
{
Counter = Counter + 1;
StringVar = StringVar + "!";
ShowCounter.Text = Convert.ToString(Counter);
ShowStringVar.Text = StringVar;
ShowDoubleVar.Text = Convert.ToString(DoubleVar);
}
}
- 8
- ASP.Net >> Usage of "Request.UrlReferrer"I've got \\root\folder\Page2.aspx that I want to controll
access to, by establishing a rule that says "previous URL
must be '\\root\folder\Page1.aspx' (which did password
validation). The code snippet below does 1) allow valid
Page_Load if referring URL was 'Page1', and 2) disallows
Page_Load if the *initial* access attempt was PRIOR to
any valid load of 'Page2'...
<code>
// In Page_Load...
// check the prior URL and make sure our access
// came from the correct first page.
//
bool bBadRef = false;
System.Uri referrer = Request.UrlReferrer;
if (referrer == null)
bBadRef = true;
else
{
string csRef = "NONE";
string csRefPath = "NONE";
try
{
csRef = referrer.AbsoluteUri;
csRef = csRef.ToLower();
csRefPath = csRef.Substring(csRef.IndexOf
("folder"));
}
catch (Exception refxc)
{
throw new Exception(csRef);
}
if (csRefPath != "folder/Page1.aspx")
{
bBadRef = true;
}
}
if (bBadRef)
{
this.Response.Close();
return;
}
</code>
PROBLEM: If *after* I accomplish a valid access to Page2
(i.e. via Page1), then browse to a completely different
unrelated web page, I am then able to *directly* plug the
Page2 URL into my browser Address field and validation
does NOT fail! Could this be due to some kind of
caching effect that I'm not taking into account?
I'm rather new to aspx, so consider this a 'newbie'
question! Thanks!
Jim
- 9
- ASP.Net >> How to get a list of only the files on an ftp serverI want to get a list of the files in an FTP folder. I have seen the example
of MSDN using the FtpWebRequest, and it's fairly trivial to execute an NLIST
command, but the trouble is that this includes directories too. I can
specify a pattern like *.* in the uri to exclude directories, but this then
does not return files without extensions and there may be some of those.
If I use LIST instead, I can tell the directories as they get tagged with
<DIR> in the results. i.e.
02-15-07 12:21PM 488 Fred.xml
02-15-07 12:21PM 488 Gary.xml
02-15-07 12:21PM 488 James
03-16-07 10:19AM <DIR> Kathy
03-16-07 11:19AM <DIR> Louise
But I'm not sure that I can rely on the filename always starting at the same
offset from the start of the line which makes parsing the results tricky.
From a google on the web, it looks like there's no defined standard for the
response to a LIST command so I don't want to rely on the layout of this.
I could use both calls and read the directory names from the results of LIST
(whatever followed a <DIR> tag) and then remove these names from the results
of a call to NLIST, but I'm wondering if there's a simpler way.
Cheers,
Bill
- 10
- 11
- IIS >> Can't Get Website's PropertiesI downloaded a new reference file for AD-Aware and used it on my computer. It came up with 76 things and i didn't think to check them all cause i trusted ad-aware not to delete things i needed. Well it deleted some IIS stuff that I needed.
I deleted the backups too, dont ask me why.
I've uninstalled and then re-installed IIS completely. And when i goto inetmgr and try to get properties on the website, nothing happens.
I right click, and hit properties and nothing comes up.
I can't change anything :( what do i do?
- 12
- ASP/Active Server Pages >> Format(string.......etcAnyone able to tell me if there's an alternative to the Format function that
VB has? (it appears ASP doesn't support it)
I'm basically (and believe me, I know how stupid this is going to sound)
trying to find a way of getting a file/folder's size to show in something
other than bytes (i.e. KB or MB, depending on what size it is).
I've tried modifying some of my VB functions to ASP compatable, but it
doesn't seem to like them.
E.G. in VB, I use;
something = Format((Fldr.Size / 1024), "#0.00") & " KB"
or
Format((Fldr.Size / 1024) / 1024, "##0.00") & " MB"
Neither of the above seem to work as below;
Response.Write Format((Fldr.Size / 1024) / 1024, "##0.00") & " MB"
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
- 13
- IIS >> A tool to open and view a metabase file?Apologies if this has been answered before, I did do a search but I had no
luck in finding an answer.
Is there a utility out there which would allow me to take a backup copy of
the metabase from one computer, and open it on another computer to examine
the settings and configuration of IIS?
I tried the metabase editor from microsoft, but I could not find a recent
version. The copy I found (v2.2) is buggy and had problems running on my XP
pro. Anyway, I don't think Metabase Editor is going to really do what I
described above.
If anyone knows of a tool that I could use, I would appreciate hearing from
you.
Thanks alot in advance.
- 14
- ASP.Net >> Server.MapPath FileNotFound problemHello, I have a problem with Server.MapPath founding file
I have huge project in virtual directory "Proj" located in
"My Documents/Proj" and all my project files are there.
Now I need to use a "picture.png" located in "Proj/pictures" directory.
Code is:
Image img= Bitmap.FromFile(Server.MapPath("pictures/picture.png"));
... and problem is that my application crashes and in Exception Details
is see that picture is looked for in
"c:\inetpub\wwwroot\pictures\picture.png" ,
instead in "Proj/pictures"
I tried several version of path, ie: (../pict.., ..\pictures\pic.,
\pictures, @(\pictures.. )
and nothing worked !
Anyone see any solution please ??
Thanks;
- 15
- Frontpage Client >> interactive picture uploadMy web designer said that this couldn't be done...but I can't believe it. I am a hat maker and I want my website to be more interactive with my customers. I love using FP and will probably never use all of its functions but there must be a way to let my clients upload a picture of themselves and then drag one of my hats to their picture so they can virtually 'try on' one of my hats to see how it would look on them. I've already had them send me pictures and I have put the hat on them and sent it back. I would love for them to be able to do this on my site. Can this be done? Is it possible without being a Fortune 500 company? I am a competant amateur when it comes to graphics but I would rather make hats than learn any complex coding. I also have a very cooperative and cool hosting company but I don't know what I need to ask them. Can anyone help me?
|
| Author |
Message |
rgoyan

|
ASP.Net >> Sort list via client code only
H
I have to display a sortable list of columns(a table or so) - by click on the title of a column the column would be to criteria to sort by
I know datagrid is very conveniant, but I want to save the round trip to the server
Is there other way to use ASP.NET server controls(maybe the datagrid itself) to have an easy databound from one hand and client sort from second
May be a technique that tranform a XSL on datagrid result
For now all I could think of is to send XML to the cliend using response.write like with traditinal asp, and transor
a different xsl via the client DOM
I would be glad to here better suggestion to save the round trip
If there aren't , I would be glad to be noted on a good article that explains how to implement the XML/XSL technique
thank
Web Programming102
|
| |
|
| |
 |
| |
 |
Index ‹ Web Programming ‹ ASP.Net |
- Next
- 1
- 2
- ASP/Active Server Pages >> Importing XML into Access 2000Hi
Can someone please point in the right direction.
I have an XML file that gets updated every 4 hours on a web server.
I can check the XML modification time in ASP and compare to the
databse.
If it is newer, I need some ASP code to then import the XML into
Access.
Been trawling the net for an answer for a while - no joy
thanks
ven
- 3
- ASP.Net >> Firefox and Javascript location problemI've been working on making my ASP.NET web apps compatible with Firefox (the
uplevel configs for web.config are a real help).
However, one really weird thing is a GotoAnchor() function I have (server
side), which injects javascript along the lines of:
location = '#buttons';
I use this so that, following postback, I can just back down to the relevant
part of the page.
It works fine in IE, but not in Firefox! Furthermore, I seem to loose other
Javascript injected following it (it's not simply malfunctioning, it's not
rendered by .NET!).
Any ideas why this is happening? Maybe a second postpack?
I can work around it by only emitting the javascript with IE - it's not the
end of the world. But a way to get similar functionality on Firefox would be
great.
Thanks,
John
- 4
- 5
- IIS >> Password protection for web pages ???I want to set up several sub web pages on my server to only allow
members in. How do I configure my server to allow that ? The OS is
Windows 2000 Advanced Server. I am using IIS to host my page.
Thank you in advance.
- 6
- ASP.Net >> Disabling validation in an user control.Is there a specific method to disable field validators in a user
control.from within a parent page or does it require an ad hoc
approach? The page attribute ValidateRequest does not seem to be
available in user controls. TIA for any inputs.
- 7
- Frontpage Programming >> How do I access FrontPage from IE6 "File" drop downI can access the web site to edit it from my desktop computer by clicking on
"File", then "Edit with Microsoft FrontPage", however I do not see "Edit..."
when I attempt to access the same site from my notebook. I can edit OK, if I
first open FrontPage, then open the web site. What changes do I need to make
to see and access the "Edit..." from the browser. (operting system: Windows
XP Home, FrontPage 2003, IE 6.0 w/sp2, both computers)
- 8
- IIS >> how do i host my web application on iis 5.0hi,
i have developed a web application.
testes on local network , its working fine.
now i want to host it on web,
with application and database on our server.
i have the follwing details,
internal IP Address,
External IP Address,
Gateway Address,
Windows 2000 adv.Server OS,
and my web application
do i need any more softwares.
please help me host it on the web.
i would be more thankful if step by step procedure is given.
thanks in advance.
REGARDS,
MADHUSUDHAN
- 9
- Frontpage Client >> is a custom form handler what I needHI - I'm looking for a way to make a page with a form on it so that when you submit with a predefined correct answer, you go to a "correct" page, or to an "incorrect" page if your form input does not match.
I'm doing this to add a layer of security to a personal website so that only people who know me can access certain pages. I thought I try to do this by reffering to a page with a few questions in a form on it.
When they click sumbit, I'd like for the server to check to see if the answers match up to the correct values. If they match up, I'd send them to another page in a subdirectory. If the are incorrect, they would be sent to a "sorry, but..." kind of page.
Anyone have any thoughts if a form and custom form handler is the easiest way to handlel this? I have a web site hosted by a comercial web hosting company.
thanks much,
- 10
- ASP.Net >> How do you save a (C#) DateTime into a SQL Server datetime column?Hi,
I have a table in a SQL Server 2005 database that has a column of type
"datetime". From a C# program I need to insert todays date into this
column like so:
gridAdapter.InsertNewGridID( Convert.ToDateTime(DateTime.Today) );
I keep on getting an error: "Implicit conversion from data type
sql_variant to int is not allowed. Use the CONVERT function to run this
query."
How is this done?
Thanks in advance.
Steve
- 11
- 12
- Frontpage Client >> Not Read: Message in errorI am experiencing a problem in Outlook/Exchange when a 'Not read - message
deleted without being read' return receipt response is getting generated from
a Inbox that is being processed by a program that reads emails using CDO, and
moves the email to another folder and marks it as unread. This results in the
'deleted without being read' message going back to the email sender. The
Inbox is also monitored by several users through Outlook. Since the message
is actually never deleted, we should not be getting this message returned.
Anyone else experience this and have any solution?
- 13
- 14
- ASP.Net >> Runtime error while running web application on remote machineHi,
After deploymnet web application on web server I can access page on local
machine and login fine but when I'm trying to access web site from remote
machine I can see login page, but when I'm trying to login with correct
credentials it give me error:
Server Error in '/PDVMgr' Application.
----------------------------------------------------------------------------
----
Runtime Error
Description: An application error occurred on the server. The current custom
error settings for this application prevent the details of the application
error from being viewed remotely (for security reasons). It could, however,
be viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable
on remote machines, please create a <customErrors> tag within a "web.config"
configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute
set to "Off".
ANY SUGGESTIONS AND CONCERNS???????
Thanks
Marina
- 15
- Frontpage Client >> Transparent BackgroundI have several include files on my hompage. I'm changing my hompage to
include a background graphic and I'd like it to show through the include
files.
So, how do I make the background of a file transparent? I can see how to
select colors for it, but how can I make it transparent?
Thanks
|
|
|