|
hkchauhan wrote: var email = emailtext.value;
How about
var email = document.getElementById("emailtext").value;
?
|
|
|
|
|
again it is not working in mozilla
var search = location.search;
search = search.replace(/\?/,'');
var searchAttributes = search.split('&');
for(var no=0;no<searchattributes.length;no++)
{
="" var="" items="searchAttributes[no].split('=');
" eval("var="" "+items[0]+"=""+items[1]+"" ;");
=""
="" }
="" con="items[1];
" if(con="="true")
" myerror.style.display="" ;
="" }
if(con="="errorA")
" myerror1.style.display="" if="" (con="="false")
"
i="" am="" passing="" value="" in="" querystring="" i.e.="" true="" &="" errora=""
<div="" class="ForumSig">hiiiiii
|
|
|
|
|
instead of
myerror
try
document.getElementById("myerror")
|
|
|
|
|
hkchauhan wrote: var search = location.search;
search = search.replace(/\?/,'');
var searchAttributes = search.split('&');
for(var no=0;no
{
var items = searchAttributes[no].split('=');
eval("var "+items[0]+" = '"+items[1]+"';");
Noooooooooooooooooooooooooooooooo!
Your code is totally open for code injection. Anyone can add anything to the querystring, and your code will run it.
---
single minded; short sighted; long gone;
|
|
|
|
|
Dear Friends,
This is Sudhakar working as web developer in SiliconPlains and Automated workflow. I need to develop a treeveiw control as webcontrol with drag and drop functionality, the drag and drop functionality is between the treeview control and any html control. In windows forms I know how to do it but as a webcontrol I am facing problems. Please help me out in this issue. Languages either by C# or VB.net
Thanks and Regards,
sudhakar venati,
Mob: 0 984 55 989 71.
|
|
|
|
|
|
Dear Deepak,
First of all thanks alot for your interest at my problem, I have gone through your reply, but I think this is not what I have asked, there is no drag and drop functionality in that treeview, any I will try to utilize that information to build a treeview with drag and drop functionality.
Once again thanks for your reply.
Thanks and Regards,
sudhakar venati,
Mob: 0 984 55 989 71.
|
|
|
|
|
hi all.
how to connect crystal report with asp?
Thanks
Haresh Bogani
|
|
|
|
|
|
Hi to all
I would like to declare a html div object in the code behind of my aspx page, I knwo that the declaration of a image is HTMLImage image = new Image but what is the code for a div.
Thanx in advance.
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
With div as runat="server", you can use
HtmlGenericControl for DIV.
|
|
|
|
|
Seems to work, thank you
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
in your html code..
<div id="myDiv" runat="server">anything</div>
then you can access this div through its id
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
I tend to use a Panel - they're rendered as DIVs anyway
Panel p = new Panel();
"Knock me down, I'll get straight back up again, I'll come back stronger than a powered up pacman"
(Lilly Allen / Kaiser Chiefs)
|
|
|
|
|
Yes I know that,
But I would like to declare a div object in the code behind, not something that is initialised in the aspx code.
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
You can do with in create one td with runat='server' and id. Using that id add div as string to that.
In code behind add as,
mytd.innethtml = "....... "
You can try this.
Be simple and Be sample.
|
|
|
|
|
ramskr wrote: mytd
He was actually asking what type to declare mytd in the codebehind. Simplying further,
protected ?????? mytd;
What does ?????? stand for? In your case (example), it should be HtmlTableCell .
If it is DIV, it should be HtmlGenericControl .
|
|
|
|
|
I wanted to know what are the different types of testing which can be performed for a website testing.
Also which tools can be used for each type of testing.
Can anyone please help
|
|
|
|
|
|
Hi,
I am working on a simple web application. The goal is to emulate a (very)simple file explorer. So, given a directory path on the server machine, the app displays all child files. I am using a WebUI.DataGrid control to displays the files and some related information (full path, size, creation date...). Moreover the app allows to sort the files according to their names or their size and a click on a file name is supposed to take you to the page representing that file.
However I am having some trouble with the sorting. To sort the datagrid, I first retrieve the DataTable which it is bound to and then pass it to a DataView object. Then, I call the DataView.Sort property then I bind back that dataview to my DataGrid object. Although, VISUALLY, the files are really sorted, the links they point to is just the same as when they were not sorted. So for instance, clicking a directory named "Eclipse" actually takes you to the directory "Code" which was occupying the same row before the sorting.
Is there a way to solve that inconsistency of the DataGrid control?
Thank you very much by advance.
Cheers,
Cherif
----
Navigator - Your best alternative to Windows Explorer
|
|
|
|
|
Does PostBack and DataBinding interfering with each other?
|
|
|
|
|
Hi,
Thanks a lot for replying. However, I am no .Net Web development expert. How can I tell whether Postback and DataBinding are interefering with each other or not?
Thanks.
Allad
----
Navigator - Your best alternative to Windows Explorer
|
|
|
|
|
After postback, check for IsPostback to ensure that the grid is resurrected from its ViewState instead of duplicate databinding. The flow should also be checked so that it goes to event handlers appropriately.
|
|
|
|
|
Thanks so much. It was really a duplicate databinding issue. Now I am checking the IsPostBack property prior to binding any values.
Cheers,
Allad
----
Navigator - Your best alternative to Windows Explorer
|
|
|
|
|
I am trying to display an image. Depending, though, on a test of the QueryString you'll get one of two images. This is what I've come up with so far.
<pre>
<% if Request.QueryString("section") = "statebooks" then
Response.Write(<img src="redesign/images/index_27a.jpg" width="685" height="47" alt ="">)
elseif Request.QueryString("section") = "directory" then
Response.Write(<img src="redesign/images/index_27a.jpg" width="685" height="47" alt ="">)
else
Response.Write(<img src="redesign/images/index_27.jpg" width="685" height="47" alt ="">)
end if
%>
</pre>
Am I even close? Any help would be much appreciated.
Thank you.
sduffield
|
|
|
|