|
Hi,
I have a data grid with check boxes by which we can select the rows in the grid. I want to get the data in the selected row. How can i achieve this.
Thanks,
Jaikrishna
|
|
|
|
|
This is a good source[^] for information related to datagrids, you can look there.
daniero
|
|
|
|
|
Hi,
I'm struggling with the split function of ASP. I'm using Dreamweavers ASP, Javascript.
The string looks like this:
+ 'test=1L1S1=INSERT INTO SHIFTDEFINITION (SHIFT,DATACOLUMN,DATAVALUE,DATATYPE,FIELDDESCRIPTION,LINENO,SEQNO,COMPANY) VALUES ('ABC' + , + 'NTSTART' + , + '15:30' + , + 't' + , + 'Start Time', + 1,1, + 'ASP')L1S2=INSERT INTO SHIFTDEFINITION (SHIFT,DATACOLUMN,DATAVALUE,DATATYPE,FIELDDESCRIPTION,LINENO,SEQNO,COMPANY) VALUES ('ABC' + , + 'NTEND' + , + '16:30' + , + 't' + , + 'End Time', + 1,2, + 'ASP')L1S3=INSERT INTO SHIFTDEFINITION (SHIFT,DATACOLUMN,DATAVALUE,DATATYPE,FIELDDESCRIPTION,LINENO,SEQNO,COMPANY) VALUES ('ABC' + , + 'CHANGEDBY' + , + 'RICHARDB' + , + 'S' + , + 'Changed By', + 1,3, + 'ASP')
As you can see there is sql in the string. The L1S1 stands for LineNo 1 and SeqNo 1 and so on, because I'm building the HTML dynamically. There is a variable called id which runs though a loop and builds the id example. var id = ("L"+x+"S"+y);
I get the string from a hidden field in the HTML called "hide". The hidden field was populated with a javascript function that reads the sql out of a cookie passed on from another page.
Then I use the split function to extract the sql from the string to execute it.
And this is what I have tried so far with no success:
<%
var WordArray= new Array(11);
var THESQLString = new Array(11);
THESQLString = Request.Form("hide");
// with loops in this statement
WordArray[y] = THESQLString[y].split(id);
All I receive is an error saying: Object Expected or WordArray[y] is null or not an object
The en result must look something like this (for each Lines SeqNo):
INSERT INTO SHIFTDEFINITION (SHIFT,DATACOLUMN,DATAVALUE,DATATYPE,FIELDDESCRIPTION,LINENO,SEQNO,COMPANY) VALUES ('ABC' + , + 'CHANGEDBY' + , + 'RICHARDB' + , + 'S' + , + 'Changed By', + 1,3, + 'ASP')
Thanx alot if someone can Help me
Richard a.k.a Programm3r
|
|
|
|
|
sir,
i want to display the pictures in new window with its original size. I am using Datalist in which pictures are in small size i want to display these photos 0n mouse click in its original size in new window
please help me
|
|
|
|
|
If you know the location (http://www.codeproject.com/images/standard/logobottom.gif for example) then you can set following code in the event:
Response.Write("<script language='javascript'>window.open(http://www.codeproject.com/images/standard/logobottom.gif);</script>");
As you see, i'm in fact writing some javascript code on my page which is going to open a new window, as the url of that window i set the image url. You can now also set some javascript attributes if you want.
Greetings,
KrIstOfK
|
|
|
|
|
i insert unicode format data from asp.net to mysql 4.1 with utf-8 encoding on the odbc 3.51 & v5 driver
but
it is insert "?????" in entity of table
Mohammad Kazem Sattari
|
|
|
|
|
Hello!
I want to make a DropDownList Server Control with the drop list with a specific width!
Can anyone give me any ideeas?
Eusebiu
|
|
|
|
|
1. In the HTML code:
<asp:dropdownlist id="ddlClient" Runat="server" width="200"></asp:dropdownlist>
2. Or drag and drop your dropdownlist on your asp.net form and set the property with to 200
3. In code behind:
ddlDropDownList.Width = new Unit(200);
Greetings,
KrIstOfK
|
|
|
|
|
I don`t think I made myself clear.
I want the DropDrownList Control to have 100px and the list 200px;
Eusebiu
|
|
|
|
|
How can import/transfer data from excel to Access database using asp.net
|
|
|
|
|
Hello I have a Parent page and inside that parent page i have a child page
in the child page i check if a request.querystring value = not empty and if it is empty
then i have to response.redirect the whole page is parent page to the start up page.
if i use response.redirect it just load the start up page in the child iframe section.
Need help.
Help in need is the help indeed
|
|
|
|
|
You can't use a redirect to change the parent page. When the request comes to the server, it's already decided where the page will be displayed.
Return a page that contains a Javascript that changes the location of the parent window.
---
b { font-weight: normal; }
|
|
|
|
|
that is a good little idea.
Thanks Mr Guffa.
I will try that.
Regards
Help in need is the help indeed
|
|
|
|
|
how to display the live time in web form.
i want to display time continuously..
so help me for code....
Dipan Patel.
|
|
|
|
|
If you want to show the time the page is rendered on the server: DateTime.Now; (in C#)
If you want to show the time passing second by second on the webpage you'll have to go javascript or something like that.
|
|
|
|
|
i want it in vb.net or send me javascript for it becoz i cant find it...
Dipan Patel.
|
|
|
|
|
|
I know that JavaScript lets us add:
ondragenter, ondragover, ondragleave, ondrop
events to normal HTML table td tags. This lets us do highlighting of
table cells/rows, and capture drag & drop events. So to handle
ondrop we can use JavaScript:
this.OnDrop = function(obj) {
obj.parentElement.style.backgroundColor = "white";
var strData = window.event.dataTransfer.getData("text");
this.InsertRow(obj.parentElement.rowIndex, strData);
window.event.cancelBubble = true;
}
The obj is the object that was dropped onto. So obj.parentElement is
the tr element, etc. Does all tr elements implicitly have a rowIndex
member which contains the row number of the table?
What am wondering is how can one add the ondrop="" attribute to a
table which was generated from a DataGrid? If it is not possible
adding JavaScript/DOM attributes to DataGrid's generated tables, then
is there any way to capture these window.events and knowing exactly
which DataGrid table row/cell it was dragged onto?
I was told to look for "DataGrid Overviews" at 4guysfromrolla.com but
could not find anything about it. Not even google.com could help. Is
there no drag and dropping support for ASP.NET datasource tables?
|
|
|
|
|
Can u guide me to do a bulk update into more than one table from getting a single xml ine the form of attribute centric and element centric mapping, Tell the procedure to create the stored procedure itself, now i am having XML as a string to update a table
Reply with Source Pls
Thanks
-
|
|
|
|
|
Hi all,
I want to Subtract 1 day more to assigned date to date variable...
dim dd as date =today
dd=dd-1
But it gives error.
'- operation is not for date'
Please Give some solution....
-- modified at 5:53 Tuesday 9th May, 2006
|
|
|
|
|
try
dd.AddDays(1);
-- modified at 5:39 Tuesday 9th May, 2006
got to say this works in C#, but should be something similar in vb
|
|
|
|
|
Thanks,
But what is procedure if I want to Subtract 1 day from date.
I hope you know this also........
|
|
|
|
|
sounds stupid but it true works:
dd.AddDays(-1);
greetings,
KrIstOfK
|
|
|
|
|
Thanks...Thanks...Thanks a lot to KRISTOK amd APURVA
This is great to meet such inteligent friend.I Will have something more to share with you and I hope you will capable to solve those issues also.
Really Nice.
Thanks And Regards,
Nagraj
-- modified at 6:14 Tuesday 9th May, 2006
|
|
|
|
|
Hi Nagraj,
You can use the same function to subtract the days. Just you have to pass the negative values. For example -1 to subtract one day.
Hope this will solve your problem.
Best Regards,
Apurva Kaushal
|
|
|
|
|