|
hi
This is a problem i came across while developing a project. My problem is to get the total of a datagrid column in a data grid control in ASP.Net with VB code.
If anybody can help me with finding this piece of code i ll be much greatfull
|
|
|
|
|
There are a couple of ways to do this common thing:
+ You can populate the total value based on the datasource bound to the control.
+ You can populate this value using the ItemDataBound event of the datagrid control.
You can find the sample code from the site[^].
|
|
|
|
|
Sir,
I am deleting the record in the datagrid but before deleting the row i want to send the request like 'are u sure u want to delete the record' .I mean i want two buttons Ok and cancel if ok is pressed it deletes the row otherwise row will not be deleted and for that i don't want to use another web form and want java script tools .Can i use these things in vb code behind file . Please help how to solve this problem.
Thanks
|
|
|
|
|
Hi,
IMO,You just simply use the js statement window.confirm(...) ...
<< >>
|
|
|
|
|
Use this java script,
if ( ! confirm( 'Do you want to delete primay contact'))
OR
If you want to do on the server side only then go through this link,
http://www.codeproject.com/aspnet/NingLiangSimpleControl.asp
Ram
|
|
|
|
|
hi all,
how to use the ajax with asp.net 2.0.what step should be follow to when i select a dropdown list (autopostback property is true) then whole page is getting refresh. please give me some idea how to use ajax .
thanks in advance
thanks n Regards,
Srinandan
-- modified at 9:20 Monday 4th September, 2006
|
|
|
|
|
it's completely clear that the page get refreshed as you set autopostback is true, why dont you try to set it to false???
<< >>
|
|
|
|
|
Have you looked at some sample code of an Ajax library or Atlas available out there? This is a common example that I can easily find in lots of the Ajax-style libraries.
|
|
|
|
|
I get this error:
Server object, ASP 0177 (0x800401F3)
Invalid class string
on this line
session("msg") = ""
set aspObj = server.CreateObject("asp.dataaccess")
session("UserName") = Request.Form("username")
|
|
|
|
|
Boboza wrote: session("msg") = ""
set aspObj = server.CreateObject("asp.dataaccess")
session("UserName") = Request.Form("username")
The bolded part above is the "class string" and this is invalid. In order to use Server.CreateObject in classic ASP a com dll had to be registered on the webserver using regsvr32 utility.
|
|
|
|
|
hi J4amieC,
where can i get this com dll?
|
|
|
|
|
I've no idea! Where did you get the snippet of code from?
|
|
|
|
|
Hi All,
I have created datagrid with hyperlink column and it work fine.My problem is, i want to pass 3 parameters at the same time from the hyperlink column to another page.can anybody help me with this?
Thanks!
Pradeep Reddy
|
|
|
|
|
You can pass the parameters using querystring. Append the parameters to the querystring and then retieive them in the targeted page.
Best Regards,
Apurva Kaushal
|
|
|
|
|
thank u...
Pradeep Reddy
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
in url field iam passing-----moviename&time1&screenname
in url format string iam passing ------avlseats.aspx?a={0}&b={1}&c={2}
this is giving error. plz tell me how to solve this problem.
Pradeep Reddy
|
|
|
|
|
You need to concatanate the string values into the URL. Something like this:
"avlseats.aspx?a=" + "valueOfa" + "&b=" + "valueOfb" + "&c=" + "ValueOfc" ;
Best Regards,
Apurva Kaushal
|
|
|
|
|
if u pass something into url field then only the urlformatstring is getting activated. what should i pass in to url field?
Pradeep Reddy
|
|
|
|
|
all the string values you can pass in the querystring.
Best Regards,
Apurva Kaushal
|
|
|
|
|
I’m using asp.net 2.I create a site map and a menu control to display the hierarchy of the site. I need to put a label on the master page that shows the name of the content page.
How can I do this?
Thanks
|
|
|
|
|
You need to create a ContentPlaceHolder and Put a Label control in it. You can modify that Label in your web Pages dynamically, thet uses this MasterPage.
Regards,
Jay
|
|
|
|
|
Hi!
I need to Export an external(.xls) file into a table in oracle using ASP.net for my final year project. Is this possible? If Yes, Then please explain How?
|
|
|
|
|
Simplest method would be to treat the XLS as a datasource, get a dataset (or recordset) back, then squirt it at ORA...Google has examples
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
try this code below, get the data from the oracle database to a datatable, then write the data in a html format on the page.
dtTable = Methodtogetdatatable(); //from the oracle database
string strHTML = "";
//string strStr = common.c_EMPTY;
foreach(DataColumn col in dtTable.Columns)
{
strHTML += "";
//strStr += col.ColumnName + "|";
//Response.Write(col.ColumnName + "\t");
}
strHTML += "";
foreach(DataRow row in dtTable.Rows)
{
strHTML += "";
int intCnt = 0;
foreach(DataColumn col in dtTable.Columns)
{
if ((intCnt % 2) == 0)
strHTML += "";
else
strHTML += "";
intCnt++;
//strStr += row[col.ColumnName].ToString() + "|";
//Response.Write(row[col.ColumnName].ToString() + "\t");
}
strHTML += "";
}
WriteText(strHTML);" + col.ColumnName + " | " + row[col.ColumnName].ToString() + " | " + row[col.ColumnName].ToString() + " |
|
|
|
|