|
taltal81 wrote: Server.CreateObject("IISSample.PermissionChecker")--
you're doing this in ASP.NET ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
No .Net
Asp.2 i think so.
|
|
|
|
|
OK, then try the web development forum, this is ASP.NET.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
so, you can't help me here?
i'm putting this message on web developer forum to.
|
|
|
|
|
If I could, I would do it in the right forum, rather than encourage you to ask questions in the wrong place. No, I can't, I *hate* ASP, it's beyond me why anyone would even consider using it in this day and age. I hated it then, and I've not used it for years, sorry. My answer was just to direct you to a forum where people who are likely to know the answer, are likely to see your question.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
OK!!!!!!!
Shalom....
Thanks anywere...
|
|
|
|
|
Hi. I am using VS2003
I had a textbox control in template column inside a datagrid.
When i click Edit botton, i want to show an alert message and focus on that textbox.
i am getting an alert message but problem is with the focus.
How can i focus a control inside a datagrid...
Regrads,
Jai Shankar
|
|
|
|
|
Pass the Client Id from the codebehind to javascript function.Create an element using that client Id. and then do
document.getElementById('elementid').focus();
|
|
|
|
|
Find Out Textbox and Set focus
for example
((TextBox)gridView.Rows[0].FindControl("txtId")).SetFocus=true;
beSt RegArd
pAthAn
|
|
|
|
|
Page.SetFocus(DataGrid1.FindControl("ctrlName"));
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
Hi. I am using VS2003.
I hava a DataGrid and inside one Templete Column, I have a TextBox.
How to get the value of that textbox(which is inside the DataGrid) in Javascript.
Regards,
|
|
|
|
|
function getTextValue(control)
{
for (i = 0 ; i<document.frmname.elements.length; i++)
="" {=""
="" if="" (document.frmname.elements[i].name.indexof('textbox1')="">-1)
{
//get the value of textbox
document.frmName.elements[i].text;
}
}
}
I hope this will help u out .......
|
|
|
|
|
Grid is treated like a table
Example:
function fngetvalue()
{
varTbody=document.getElementById('GRID_ID').childNodes[0]
td=varTbody.getElementsByTagName("TD")
tgname=varTbody.getElementsByTagName("INPUT")
for(i=0;i<tgname.length;i++)
{=""
="" if="" (tgname[i].type="='text')
" {
="" tgname[i].value="Text" ;
="" }
="" return="" false;
="" }=""
<div="" class="ForumSig">Best Regards
|
|
|
|
|
Hellow Everybody
ddlCategory (drop down list category) data is coming from database. I want to add Select One.. on the top of my ddlCategory then data will be come from database. How can I do it?
Waiting For Your Reply
Sarfarj Ahmed
|
|
|
|
|
comboName.Items.Insert(0, New ListItem("Select", -1))
|
|
|
|
|
<asp:dropdownlist appenddatabounditems="True" ....="">
<asp:listitem value="-1" selected="True">SELECT LOCATION
Intelligence is measured by common sense not by how many scholarly books you read.
|
|
|
|
|
Insert a new item to the list after doing a Databind of your Database Items.
DropDownList1.Items.Insert(0, New ListItem("Text","Value")
Regards - J O N -
|
|
|
|
|
John Prabhu wrote: DropDownList1.Items.Insert(0, New ListItem("Text","Value")
Missing closing tag ")".
|
|
|
|
|
oops...
DropDownList1.Items.Insert(0, New ListItem("Text","Value"))
Regards - J O N -
|
|
|
|
|
Dear John
Thanks Lot
It does work and Im going to give you maximum point
Thanks Again for Your Help
Sarfarj Ahmed
|
|
|
|
|
You're welcome
Regards - J O N -
|
|
|
|
|
hi may be this will give you much clear Idea, try this....
DropDownList1.Items.Add(New ListItem("--Select-One--", ""))
For iCount = 0 To dataTable.rows.Count - 1
DropDownList1.Items.Add(New ListItem(dt.row(i)(0).tostring(),"")
Next
It might contain some syntax errors as I am writing it without using IDE.
|
|
|
|
|
How To get the machine name?
i need to the machine name of the Client the that is browsing my web site
|
|
|
|
|
you can't.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I think we can use this one .
Page.Request.UserHostName
What do u think?
Happy Programming
-----------------
Abhijit Jana
Noida, India
|
|
|
|