|
Really for the ASP.NET forums, but all you need to do is un-databind it
DataGrid1.DataSource = null;
DataGrid1.DataBind();
"I dont have a life, I have a program."
|
|
|
|
|
Hi:
I have a DataGrid Page say Page1 that shows me the List of orders that have not been billed yet and also a column at the last which is a hyperlink to the page that will help me create the bill for the order.
Now when i click the create-bill hyperlink the page works i can go ahead and create the bill.This is done on a seperate page that opens up say Page2.
But what i alsowant is once the bill is made out and entered into the DB i want this pending bill entry to go out of the DataGrid.That is i want the datagrid on page1 to refresh itself when there is a button click event on the page2 that makes the bill.
Any suggestions on how to do this.Thanks In Advance
Regards
Pradhip.S
Why Need Parking lots in Bars when Drunken Driving is Prohibited
|
|
|
|
|
Also one for the ASP.NET forums !
Pradhip wrote:
But what i alsowant is once the bill is made out and entered into the DB i want this pending bill entry to go out of the DataGrid.That is i want the datagrid on page1 to refresh itself when there is a button click event on the page2 that makes the bill
I assume you are only filling the datagrid when !IsPostBack and using its viewstate for persistance. Now all you need to do is disable the ViewState of the datagrid and fill the datasource/databind on every pageload (not just when !IsPostBack ). The query will be cached most likely so SQL overhead is minimal.
Cheers
"I dont have a life, I have a program."
|
|
|
|
|
I visited a web page and within minutes received a spam mail from them. How could they have picked up my email address when I did not enter it anywhere? How do I disable this (apparent) Internet Explorer "feature"?
|
|
|
|
|
anonymous ftp uses your default email account as password. It's just a matter of javascript tricks to make ftp requests without being seen when loading a web page. And then...
That's bad news but unless you entirely disable Javascript you won't be able to block anything really. Disabling javascript ? you need a freeware, or you can develop your own filtering proxy.
Back to real work : D-24.
|
|
|
|
|
Can u just throw a few light on this topic... getting the email address.... Remember I'm just a beginer here....
|
|
|
|
|
SPS wrote:
getting the email address
I don't think further details are required, I don't want to encourage further spamming development.
Back to real work : D-23.
|
|
|
|
|
I tried to host a new site. I locally tested with IE 6 and hosted the same. But in netscape some doesnt work. The clicking of buttons are not working in netscape, why?? What should I take care for this?? Any enabling... like that??
|
|
|
|
|
SPS wrote:
I locally tested with IE 6 and hosted the same. But in netscape some doesnt work. The clicking of buttons are not working in netscape, why?? What should I take care for this?? Any enabling... like that??
Netscape and Internet Explorer do not render HTML, JavaScript and CSS in the same fashion.
Basically in short the W3C has defined a set of web standards. Netscape and IE then came along and implemented those standards, but often they either got it wrong or decided against the standard. So one piece of standard HTML can be different in the two browsers.
Traditionally we have then had to write two pieces of HTML, one for Netscape and one for IE. Luckily the latest versions of these browsers are much closer to the W3C standard, so one code base can suffice. But if you have to support older browsers the best thing to do is write HTML to the W3C standard but ensure it degrades gracefully for older browsers. Don't expect to get fancy DHTML type things working across all the older browsers, it is a waste of your time.
If you want specific help on this, post the actual code and we can probably tell you what is wrong with in terms of NEtscape
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
Hmmmm.... got a few good message from this forum after a long while. Bye the way, havent yet found a clue for the problem(s) that I am facing. Shall send you the file to you in mail......
|
|
|
|
|
SPS wrote:
Shall send you the file to you in mail......
that would be great
Paul Watson Bluegrass Cape Town, South Africa Ray Cassick wrote: Well I am not female, not gay and I am not Paul Watson
|
|
|
|
|
I've been fiddling with ASP and ADO for maintaining a simple event calendar page, and my head is getting sore from beating it against so many weird walls. The latest is, I'm sure, very simple, but I'm certainly not seeing it.
The database connection works great, and when I enter:
Response.Write objSubj where the database entry for objSubj is "Board of Directors Meeting", displays perfectly as a standalone command. But when I attempt to embed it in HTML, in this case as the value parameter of a form INPUT text box, it returns only the first word of the string, "Board." I also tried using the shortcut notation, =objSubj, in the same location and got the same result. All fields that contain any spaces return only the first word when used in this manner. The text boxes in the form all have lengths greater than the data they're supposed to contain, so truncation doesn't appear to be the problem. What simple idiot thing am I missing here?
"When in danger, fear, or doubt, run in circles, scream and shout!" - Lorelei and Lapis Lazuli Long
|
|
|
|
|
Take a look at your rendered HTML source code and see if it reads something like:
<INPUT VALUE=Board of Directors Meeting>
You need to quote your value parameters. For example,
<INPUT VALUE = "Board of Directors Meeting">
-- Ingram
|
|
|
|
|
Dang! I knew it had to be obvious... the hard parts I rarely have trouble with. Thanks!!!
"When in danger, fear, or doubt, run in circles, scream and shout!" - Lorelei and Lapis Lazuli Long
|
|
|
|
|
Hey!
That's nothing to worry. Just get the value in a quoted string and your problem would be solved. Even in this case, if you have done a view source, you could have seen the entire value would have been fetched except that IE considers only the first to be a valid value for the HTML tag attribute and rest to be 'unknown' attributes and ignores.
Solution: Have Entire thing in quoted string
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
It worked like a charm... good info, thanks!
"When in danger, fear, or doubt, run in circles, scream and shout!" - Lorelei and Lapis Lazuli Long
|
|
|
|
|
Hi,
We have our IIS in our development center behind a firewall and that also runs a Apache Web Server with Proxy enabled. Our IIS can be reached through the ProxyPass directive over the Apache running on the firewall server.
Of late we have noticed that links in the pages that we give using the Virtual Directory Notation in our ASP.NET/ASP applications fail and these links point to Apache's directory structure instead of IIS.
Example:
On IIS:
For URL: http://deepak/deepakapp/test.asp, I give link
/deepakapp/test.asp and it works fine.
When someone from outside visits my IIS through the firewall using the URL:
http://guardianserver/deepak/deepakapp/
the link in the default page shows up as:
/test.asp (and the word /deepak (the ProxyPass directive for my IIS behind the firewall) is ignored.
Any workaround for this?
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
I am looking for MS oriented non-DOTNET Tutorials on Web design
Any links?
Thanks
Paul
|
|
|
|
|
|
Hi all,
Below is a HTML file. It contains VBScript to display a messagebox. Can
anyone see any obvious reason why it doesn't display the messagebox? I've
converted it to Javascript (ie. alert("Hello");) and it works fine. I've
also tried looking though the security settings to see if there was any
VBScript specific settings there and couldn't find any.
Any thoughts/solutions appreciated,
Rob
<title>Untitled
Start
msgbox "Hello"
End
|
|
|
|
|
This problem only occurs on 1 PC out of about 20.
All have VBScript V.5.5.0.5207 installed.
The VBScript code is being ignored in the same way it would if I had inserted the line instead of <Script Language="VBScript">
|
|
|
|
|
In my experience msgboxes like that don't work. What you can do is pass the ASP variable to a javascript variable and then display an alert.
But you say this is for all VBScript only every now and then on certain pc's? Can you response.write that message?
Deploying a web application without understanding security is roughly equivalent to driving a car without seatbelts - down a slippery road, over a monstrous chasm, with no brakes, and the throttle jammed on full. Hacking Exposed - Web Applications. Joel Scambray & Mike Shema
|
|
|
|
|
Sorry, I probably didn't make my additional information very clear. The problem occurs on 1 PC all the time. It also ignores ALL VBScript so response.writes don't work either.
|
|
|
|
|
It could be a virus checker or firewall app filtering or disabling the vbscript
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
It's not going through a firewall but I'll check my virus-checker settings.
|
|
|
|