|
if you are using athird party grid control then u ill be having lot of grid properties...though if ,net native controls then u should write ud function to achive..these things...
|
|
|
|
|
Try this:
this.GridView1.Rows[1].Cells[2].Text
Parwej Ahamad
g.parwez@gmail.com
|
|
|
|
|
|
SUDHAKAR PALLAM wrote: code to retrieve particular cell value from datagrid.I mean 2nd row 3rd column etc.,
Datagrid, 2nd row, 3rd Column
DataGrid.Items(1).Cells(2).Text
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
Hi!
I have a serious problem with a web application i'm working on. I use forms authentication to authenticate users, but the problem is that when the user is not logged in the site has no style until the user gets logged in. When he logs out the style dissapears again. I have used some css for styling, but i'm really lost with here.
Any help is well appreciated!
|
|
|
|
|
Zoliq wrote: I use forms authentication to authenticate users, but the problem is that when the user is not logged in the site has no style until the user gets logged in. When he logs out the style dissapears again. I have used some css for styling, but i'm really lost with here.
Problem is with the authentication or with the CSS styles?
Linking your Web Page to the CSS Style Sheet...
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
It seems that you may have denied the access to your images folder[hope your css file is in images folder] for all anonymous users. You can provide access by adding the following in web.config
<configuration>
<location path="Images">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
</configuration>
*jaans
|
|
|
|
|
Thanks, J@@NS!
That was the problem you mentioned. Thank you very much! I'm new to ASP and i get lost very often, but i think that's the life of a programmer. BY!
|
|
|
|
|
hi all,
i m running .net application version 1.1 on web server, in this application i have create a user control in which i made login form , in this form when user login , his username value assign to a session variable,n in web config i session setting is as follow:
<sessionstate mode="InProc" stateconnectionstring="tcpip=127.0.0.1:42424" sqlconnectionstring="data source=127.0.0.1;UID=userid;PWD=password"
cookieless="false" timeout="10000">
this is running correctly on my local host but whn i put this on web server within 5 minutes session outs, i dont understand the problem, plz help me its very urgent.
thanks.
|
|
|
|
|
|
hi,
i did that which u suggest me but now session time out very fastly.within in 2 min only.
in web config i have set time out 10000.plz reply if u have solution.
thanks .
|
|
|
|
|
ok i m sending a link:
www.raisarplazaithub.com, this site is under construction.
ok first login with userid=abc,password=abc and then click on classified link and then place ur ad n thrn place ad after this a widow will open n now fill all entries, u will see at the mean time session will time out and page directecto home page.
plz follow these step ,
after this if u find the problem then plz n plz reply me.
thanks.
|
|
|
|
|
Hi Plz Tell me some good sites to know abt GCA(Global Assembly Cache)...,
I need that with example codes...,
So it will easy to know whats going on in that...,
Thanks,
Regards,
Magi
|
|
|
|
|
Magh_M wrote: GCA
GAC
Magh_M wrote: Hi Plz Tell me some good sites
Googling is allways the best for this[^]
Magh_M wrote: I need that with example codes...,
To share an assembly within a web application we add the assembly in the \bin folder. If we need to share between mulitple ASP.NET web application then we can install it in the (GAC)Global Assembly Cache.
Regards J O H N
"Even eagles need a push." David McNally
|
|
|
|
|
http://www.dnzone.com/ShowDetail.asp?NewsId=698
i think this will be help full for u
desire is different from burning desire
|
|
|
|
|
Hi all,
Can any one help me ,How to prepare a chat application?in .Net Applications
Any article if u have please send it to me.Whether Remoting concepts r useful.i dont know how to use remoting in .Net applications.
Thanks in advance
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
ASp.NET is not really the best way to write a chat app, unless you use AJAX a lot. I'd say a windows app makes more sense.
The core issue is, you need a central server so you can find IP addresses of people you want to chat to.
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 )
|
|
|
|
|
ya Thank u,
but how can we know the IP Address of the users.
and i think we need to configure the SMTP Server also
Please suggest me in a Proper way?
Thanks fr u r reply
Regards..
fttyhtrhyfytrytrysetyetytesystryrty
|
|
|
|
|
yadlaprasad wrote: but how can we know the IP Address of the users.
Like I said. A central server, which all clients log in to. That logs all the IP addresses of people who are online and handles connecting them to each other.
yadlaprasad wrote: and i think we need to configure the SMTP Server also
How bizarre....
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 )
|
|
|
|
|
HI,
I am kalyan working as S/Engineer .. from Last 6months .
I got one problem in my current project. am Going to display numbers to hyper links so for that am binding data to grid view with these dataFiels like im using prospect id and wrongno id and and wrong number and addresstype so here im getting few wrong numbers(numbers) with same prospect id adn addrestype so that i want bind in same hyperlink .one another one or with comma saparator so please help me how to do that.. please give reply as soon as possible
kalyan
|
|
|
|
|
i have created menu using asp.net,it is working fine with all the Browser except safari,plz help me on this,it is urgent..............
Thx in advance,
Nirmala
|
|
|
|
|
Hi All,
I need to bulid a tree using Recursion. I am having a datatable named dt with all parents, childs and grand child. I need to build a string depending on parent child and grand child. dt has the following records:
ChildID Desc ParentID
------------------------------------------------------------------------
266498 Parent 1 NULL
266500 Child 1 266498
266522 Child 2 266498
266546 Child 3 266498
266501 Grand Child 1 266500
266502 Grand Child 2 266500
266503 Grand Child 3 266500
266511 Grand Child 1 266522
266512 Grand Child 2 266522
266513 Grand Child 3 266522
266514 Grand Child 4 266522
------------------------------------------------------------------------
Here the string which I need to build:
var iItem266498=m_wsGridCtrl.InsItem(null, 'Parent 1');
var iItem266500=m_wsGridCtrl.InsItem(iItem266498,'Child 1');
m_wsGridCtrl.InsItem(iItem266500,'Grand Child 1');
m_wsGridCtrl.InsItem(iItem266500,'Grand Child 2');
m_wsGridCtrl.InsItem(iItem266500,'Grand Child 3');
var iItem266522=m_wsGridCtrl.InsItem(iItem266498,'Child 2');
m_wsGridCtrl.InsItem(iItem266522,'Grand Child 1');
m_wsGridCtrl.InsItem(iItem266522,'Grand Child 2');
m_wsGridCtrl.InsItem(iItem266522,'Grand Child 3');
m_wsGridCtrl.InsItem(iItem266522,'Grand Child 4');
m_wsGridCtrl.InsItem(iItem266522,'Grand Child 5');
m_wsGridCtrl.InsItem(iItem266522,'Grand Child 6');
m_wsGridCtrl.InsItem(iItem266498,'Child 3');
So I worte a recursive function, following is the code:
private void GetValues()
{
foundParent = dt.Select("ParentID Is null");
if (foundParent.GetUpperBound(0) > 0)
{
for (Int32 intRowCnt = 0; intRowCnt <= foundParent.GetUpperBound(0); intRowCnt++)
{
foundChild = dt.Select("ParentID=" + foundParent[intRowCnt]["ChildID"]);
if (foundChild.GetUpperBound(0) > 0)
{
strDBScript.Append("var iItem" + foundParent[intRowCnt][0] + "=");
}
strDBScript.Append("m_wsGridCtrl.InsItem(null, '");
for (intColCnt = 0; intColCnt <= dt.Columns.Count - 1; intColCnt++)
{
if (intColCnt == 0 || intColCnt == 2)
{
}
else
{
strDBScript.Append(foundParent[intRowCnt][intColCnt] + ";");
}
}
strDBScript.Append("');");
AddChildNodes(Int32.Parse(foundParent[intRowCnt][0].ToString()));
}
}
}
private void AddChildNodes(Int32 parentID)
{
DataRow[] foundParent = dt.Select("ParentID=" + parentID);
if (foundParent.GetUpperBound(0) > 0)
{
for (Int32 intRowCnt = 0; intRowCnt <= foundParent.GetUpperBound(0); intRowCnt++)
{
strDBScript.Append("m_wsGridCtrl.InsItem(iItem" + parentID + ",'");
for (Int32 intColCnt = 0; intColCnt <= dt.Columns.Count - 1; intColCnt++)
{
if (intColCnt == 0 || intColCnt == 2)
{
}
else
{
strDBScript.Append(foundParent[intRowCnt][intColCnt] + ";");
}
}
strDBScript.Append("');");
foundChild = dt.Select("ParentID=" + foundParent[intRowCnt]["ChildID"]);
if (foundChild.GetUpperBound(0) > 0)
{
strDBScript.Append("var iItem" + foundParent[intRowCnt][0] + "=");
}
if (ChildNodeExists(Int32.Parse(foundParent[intRowCnt][0].ToString())))
{
AddChildNodes(Int32.Parse(foundParent[intRowCnt][0].ToString()));
}
}
}
}
private bool ChildNodeExists(Int32 parentID)
{
foundChild = dt.Select("ParentID=" + parentID);
if (foundChild.GetUpperBound(0) > 0)
{
return true;
}
else
{
return false;
}
}
My problem is that my string is not building in proper way. Please help me how do I do this....
Thanks in advance...
|
|
|
|
|
hello every body
i wanna use java script calender .i try this code
/* --- Swazz Javascript Calendar ---
/* --- v 1.0 3rd November 2006
By Oliver Bryant
http://calendar.swazz.org */
function getObj(objID)
{
if (document.getElementById) {return document.getElementById(objID);}
else if (document.all) {return document.all[objID];}
else if (document.layers) {return document.layers[objID];}
}
function checkClick(e) {
e?evt=e:evt=event;
CSE=evt.target?evt.target:evt.srcElement;
if (getObj('fc'))
if (!isChild(CSE,getObj('fc')))
getObj('fc').style.display='none';
}
function isChild(s,d) {
while(s) {
if (s==d)
return true;
s=s.parentNode;
}
return false;
}
function Left(obj)
{
var curleft = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}
else if (obj.x)
curleft += obj.x;
return curleft;
}
function Top(obj)
{
var curtop = 0;
if (obj.offsetParent)
{
while (obj.offsetParent)
{
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}
else if (obj.y)
curtop += obj.y;
return curtop;
}
document.write('');
document.write('');
document.write('');
for(var kk=1;kk<=6;kk++) {
document.write('');
for(var tt=1;tt<=7;tt++) {
num=7 * (kk-1) - (-tt);
document.write('');
}
document.write('');
}
document.write('');
document.all?document.attachEvent('onclick',checkClick):document.addEventListener('click',checkClick,false);
// Calendar script
var now = new Date;
var sccm=now.getMonth();
var sccy=now.getFullYear();
var ccm=now.getMonth();
var ccy=now.getFullYear();
var updobj;
function lcs(ielem) {
updobj=ielem;
getObj('fc').style.left=Left(ielem);
getObj('fc').style.top=Top(ielem)+ielem.offsetHeight;
getObj('fc').style.display='';
// First check date is valid
curdt=ielem.value;
curdtarr=curdt.split('/');
isdt=true;
for(var k=0;k<curdtarr.length;k++) {
="" if="" (isnan(curdtarr[k]))
="" isdt="false;
" }
="" (isdt&(curdtarr.length="=3))" ccm="curdtarr[1]-1;
" ccy="curdtarr[2];
" prepcalendar(curdtarr[0],curdtarr[1]-1,curdtarr[2]);
=""
}
function="" evttgt(e)
{
="" var="" el;
="" if(e.target)el="e.target;
" else="" if(e.srcelement)el="e.srcElement;
" if(el.nodetype="=3)el=el.parentNode;" defeat="" safari="" bug
="" return="" el;
}
function="" evtobj(e){if(!e)e="window.event;return" e;}
function="" cs_over(e)="" evttgt(evtobj(e)).style.background="#FFCC66" ;
}
function="" cs_out(e)="" cs_click(e)="" updobj.value="calvalarr[evtTgt(EvtObj(e)).id.substring(1,evtTgt(EvtObj(e)).id.length)];
" getobj('fc').style.display="none" ;
=""
}
var="" mn="new" array('jan','feb','mar','apr','may','jun','jul','aug','sep','oct','nov','dec');
var="" mnn="new" array('31','28','31','30','31','30','31','31','30','31','30','31');
var="" mnl="new" array('31','29','31','30','31','30','31','31','30','31','30','31');
var="" calvalarr="new" array(42);
function="" f_cps(obj)="" obj.style.background="#C4D3EA" obj.style.font="10px Arial" obj.style.color="#333333" obj.style.textalign="center" obj.style.textdecoration="none" obj.style.border="1px solid #6487AE" obj.style.cursor="pointer" ;
}
function="" f_cpps(obj)="" f_hds(obj)="" ;
}
="" day="" selected
function="" prepcalendar(hd,cm,cy)="" now="new" date();
="" sd="now.getDate();
" td="new" td.setdate(1);
="" td.setfullyear(cy);
="" td.setmonth(cm);
="" cd="td.getDay();
" getobj('mns').innerhtml="mn[cm]+" '="" +="" cy;
="" marr="((cy%4)==0)?mnl:mnn;
" for(var="" d="1;d<=42;d++)" f_cps(getobj('v'+parseint(d)));
="" ((d="">= (cd -(-1))) && (d<=cd-(-marr[cm]))) {
dip=((d-cd < sd)&&(cm==sccm)&&(cy==sccy));
htd=((hd!='')&&(d-cd==hd));
if (dip)
f_cpps(getObj('v'+parseInt(d)));
else if (htd)
f_hds(getObj('v'+parseInt(d)));
else
f_cps(getObj('v'+parseInt(d)));
getObj('v'+parseInt(d)).onmouseover=(dip)?null:cs_over;
getObj('v'+parseInt(d)).onmouseout=(dip)?null:cs_out;
getObj('v'+parseInt(d)).onclick=(dip)?null:cs_click;
getObj('v'+parseInt(d)).innerHTML=d-cd;
calvalarr[d]=''+(d-cd)+'/'+(cm-(-1))+'/'+cy;
}
else {
getObj('v'+d).innerHTML=' ';
getObj('v'+parseInt(d)).onmouseover=null;
getObj('v'+parseInt(d)).onmouseout=null;
getObj('v'+parseInt(d)).style.cursor='default';
}
}
}
//var selObj = document.getElementById("selObjID");
//selObj.style.visibility = "hidden";
prepcalendar('',ccm,ccy);
//getObj('fc'+cc).style.visibility='hidden';
function caddm() {
marr=((ccy%4)==0)?mnl:mnn;
ccm+=1;
if (ccm>=12) {
ccm=0;
ccy++;
}
cdayf();
prepcalendar('',ccm,ccy);
}
function csubm() {
marr=((ccy%4)==0)?mnl:mnn;
ccm-=1;
if (ccm<0) {
ccm=11;
ccy--;
}
cdayf();
prepcalendar('',ccm,ccy);
}
function cdayf() {
if ((ccy>sccy)|((ccy==sccy)&&(ccm>=sccm)))
return;
else {
ccy=sccy;
ccm=sccm;
cfd=scfd;
}
}
but it will show back to the tools.how to bring it front .
Mohan t working for N.I.C
|
|
|
|
|
You could try asking hte author, but the fact is a lot of javascripted controls have this issue, I don't know if it's solvable.
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 )
|
|
|
|
|
Hi all I am developing on application for Online Antakshari. I record the voice perfeactly. Now I want to compare the original file with new one means registration time voice and singing voice is it the same voice or not ok.
for this I want to developed first sound equalizer so it will be easy in flash to compare both file. And if u have any solution for developing sound equalizer in dotnet pls tell me. To generate sound equalizer in flash I have to convert wav(Sound) file in either xml format or txt format, So if u have any idea or code to convert wav file to xml or txt format tell me and if u have any idea about sound equalizer then also tell me
Thanks.
'Don't reply stupid answer, actually I got before this.
|
|
|
|
|