|
Hi all,
I need to show the total of a column in datagridview. Actually I am not getting the event, as we have Item DataBound Event in ASP.NET, is there any event in VB.NET also?
Please help me.
Thanks in advance.
|
|
|
|
|
Hi,
This is from Chandrakanth.
I am using Sitemap Conrtrol in my Project.
My Problem is....
Actually in my form i have One DropDownList.In that i am binding RoleNames Like "AccountOperation","HealthCPU" .
And I have one DataGrid Control. In that i am populating Screen Names.Screen Names like "MasterSCREEN","Report Screen" "Upload SCREEN" .
Here User Have To Select RoleName From DropDown and then , User Have to Select SCREEN NAME From DataGrid Control.Here after by Clicking "SUBMIT" button SITEMAP control should Generate Menu what ever selected by USer.
For Example ROLENAME is "ACCOUNT OPERATION" AND SCREEN NAME is "MASTER SCREEN","REPORT SCREEN". Then SITEMAP control should generate MENU like
MASTERSCREEN AND REPORTSCREEN.
How can i go for that.
Can any one give me reply for this.
Thanks in Advance..
With regards
Chandrakanth
Chandrakanth
|
|
|
|
|
Hai,
I am using a datagrid which contains CheckBox in each row. And During Runtime How can i get all the selected rows without using the Loop structure.
VanithaVasu
|
|
|
|
|
tell me exactly what was u r scenario & looking for ?
GV Ramana
|
|
|
|
|
hai,
refer below code...
CheckBox chkbox = new CheckBox();
foreach(DataGridItem item in gridsearch.Items )
{
chkbox=(CheckBox)item.FindControl("chkbox");
if(chkbox.Checked)
{
print some value - Response.Write(item.Cells[2].Text);
}
} regards,
vidyasankar N
Think Big
|
|
|
|
|
I Know this method too...
I want to know the thing is Is there anyother method to find the selected rows without using the for loop. I ask this question because i was asked for this question in an interview.
So If anybody know please let me know the solution.
VanithaVasu
|
|
|
|
|
please any one tell me how to read Http XML document attribute values using javascript...pleaseeeeeeeeeeeeeee...
its urgent...
Pradeep Reddy
|
|
|
|
|
Reddy,
try with this
script language="javascript" type="text/javascript"><br />
<br />
var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); <br />
<br />
function loadXML(xmlFile) <br />
<br />
{ <br />
<br />
xmlDoc.async="false";<br />
<br />
xmlDoc.load(xmlFile); <br />
<br />
xmlObj=xmlDoc.documentElement;<br />
<br />
var v = xmlObj.childNodes(0).getAttribute("id");<br />
<br />
window.alert(v);<br />
<br />
<br />
}<br />
<br />
</script><br />
add this code between anchor tags href="javascript:loadXML('xml_file.xml');">open a local XML File
GV Ramana
|
|
|
|
|
Thank u...
Pradeep Reddy
|
|
|
|
|
hai all,
i have send mail using asp.net in my project... most of the mail stored in the BULK in yahoo... So how to avoid this one using asp.net....
Regards,
vidyasankar N
pain gives gain
|
|
|
|
|
Hello All,
i am haveing two fields username and password in database if any want enter more than two times wrong password how to lock the user.
kindly guide me....
Vijay
|
|
|
|
|
Add a counter field in table if each time increase the counter when enter wrong password and check if counter is greate than 2 then show the messages.
default count shoud be 0.
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
One way would be to update another field on that table with the count of attempted logins since the last successful one. If greater than a certain number, then don't permit any further attempts.
|
|
|
|
|
Hi
Can anybody tell me how to get ip address if computer in asp.
i am trying following but it gives me default ip address 127.0.0.1.
Where i am going wrong Please guide me?
<%<br />
Dim UserIPAddress<br />
UserIPAddress = Request.ServerVariables("REMOTE_ADDR")<br />
response.write "ip address is." & UserIPAddress<br />
<br />
%>
Thanks.
rahul
|
|
|
|
|
Hi,
try this code
LNCs = Null<br />
Set LNCs = WMI.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration<br />
WHERE IPEnabled = True")<br />
<br />
' Check if Network Card Found<br />
If IsNull(LNCs) = False Then<br />
<br />
' Loop Through Network Cards<br />
For Each LNC In LNCs<br />
<br />
' Loop Through IP Addresses<br />
For IPA = 0 To UBound(LNC)<br />
<br />
WScript.Echo "IP = " + LNC.IPAddress(IPA)<br />
WScript.Echo "SN = " + LNC.SubNet(IPA)<br />
Next<br />
Next<br />
End If<br />
GV Ramana
|
|
|
|
|
Hi
i tried the code it gives following error.Can u tell me why this
error was coming.
Error Type:
Microsoft VBScript compilation (0x800A0409)
Unterminated string constant
/add.asp, line 10, column 73
Set LNCs = WMI.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration
Thanks.
Rahul
|
|
|
|
|
try with this
Set objFarm = CreateObject("MetaFrameCOM.MetaFrameFarm")<br />
objFarm.Initialize(1)<br />
<br />
For Each objSession In objFarm.Sessions<br />
WScript.Echo "User name : " & objSession.UserName<br />
WScript.Echo "IP Address: " & objSession.ClientAddress<br />
Next
or
ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")<br />
if ipaddress = "" then<br />
ipaddress = Request.ServerVariables("REMOTE_ADDR")<br />
end if
GV Ramana
|
|
|
|
|
Hi
Thanks for your reply but it also giving following error.
Error Type:
Microsoft VBScript runtime (0x800A01AD)
ActiveX component can't create object: 'MetaFrameCOM.MetaFrameFarm'
/add.asp, line 9
Thanks.
Rahul
|
|
|
|
|
|
Hi
Thanks for your lot of help i tried all those but i don't know
why i am getting default ip address.127.0.0.1
Thanks.
Rahul
|
|
|
|
|
Hi
Thanks i got the solution.
Rahul.
df
|
|
|
|
|
How to use .mdf file in asp.
Actually i am having a project which is already using some other source and now i want to use .mdf file and bring about the changes but i dont know how to do
plz do hlp me out
Martand
|
|
|
|
|
Mri1a wrote: How to use .mdf file in asp.
Do you want to use ASP with SQL Server ? Bcoz MDF is a SQL Server Database file.
If yes, then try google it, I believe there are thousands of articles available. If you have any problem using them...we are here to help you out. But atleast take an initiative
Mubashir
Software Architect
Storan Technologies Inc, USA
Every job is a self portrait of the person who did it.
|
|
|
|
|
I am developing a small application using ASP.NET 2.0. I have used Microsoft Excel 11.0 Object Library to create a excel chart. The OS is Windows XP and I have installed Microsoft Office 2003 SP2 in my system.This is running fine in my system when i am running the project in debug and release mode. But when i deployed in local server it threw me an error saying
"Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error:
80080005.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. "
I did some changes by adding the following line in web.config
"<identity impersonate="true" username="username" password="password">
After adding this i am not getting the above error, but the application is not instanciating excel application.
Please give me the solution, how i will be able to instanciate the excel application from IIS 6.0
|
|
|
|
|
Hi i am using textbox in datagrid ,so i need to add that textbox value in that datagrid and put in to label , so these working fine in IE 6 but if i run this in IE 7 and mozila the values are not adding ..
function TotalBudgetAmount()
{
var intCount=2;
var txtBudgetAmount= document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount");//here txtBudgetAmount come as null in IE 7 but in IE6 its working so problem in this line
var TotalAmount=0;
while (txtBudgetAmount != null)
{
if (parseFloat(txtBudgetAmount.value))
TotalAmount = TotalAmount + parseFloat(txtBudgetAmount.value)
intCount += 1;
var txtBudgetAmount=document.getElementById("dgridBudgetAllocationDetails__ctl"+intCount+"_txtCurrentBudgetAmount");
}
these are that lines please c this code and reply thank u
Reg
nantha
|
|
|
|