|
Ok, I already solved my 'problem', and for the benefit of those who want to know what I did here is may javascript:
function ValidateInfo(DropDownID)
{
var form = document.forms[0];
intLength = form.elements.length;
for (var ctr=0; ctr<intlength;> {
var element = form.elements[ctr];
var elementName = element.name;
if (elementName.indexOf(DropDownID) > 0)
{
strGroupID = element.selectedIndex;
if (strGroupID == (element.length - 1))
{
TextEnabled = false;
}
else
{
TextEnabled = true;
}
break;
}
}
for (ctr=0; ctr<intlength;> {
var element = form.elements[ctr];
var elementName = element.name;
if (elementName.indexOf('txtNewGroup') > 0)
{
element.disabled = TextEnabled;
break;
}
}
}
and called it within the page_load function.
|
|
|
|
|
hi
I want to bind my grid but the dataset returned from web service contains lakhs of records. so it takes lots of time to load. Is there any way to distribute the dataset?
or any other solution.
Thanks in advance
|
|
|
|
|
lakhs is not an English word. It means a lot tho, right ?
If you can't change the dataset, then you have a problem. You probably want to cache the data. Ideally, your data source should return paged data, not tons of data you go on to not show b/c of paging in the control.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
How paged data be returned by data source?
I want paging done like Google or codeproject as both are fetching millions of records.
Thanks for the reply.
|
|
|
|
|
Write your data source so you tell it what page number to display and how many records are in a page.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i download the "Sending SMS using .NET through a Web service
By Manoj Kumar C" project but it didnt work.so plz tel me the requirement of project and how to execute that project successfully.
|
|
|
|
|
WOW! You have to ask on that article's discussion board, not here.
|
|
|
|
|
You're an idiot. Sorry.
Did you think that everyone who writes articles and answers here all sits in one big room, spending our life doing your job ? This place exists because of volunteers. The article has a place to ask questions of the author.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi all,
Can any one tell me how can we encrypt a text in c#??
|
|
|
|
|
We usually use the built in cryptography classes ( hint: google cryptography )
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
can u give me a link for examole...???
|
|
|
|
|
|
|
Hi,
I want to restrict the user to login with the same username/password in
more than one system in the same ipaddress. Can anyone give me an idea.
Thanks
|
|
|
|
|
Store in your DB if they are logged in. Of course, you need a timeout mechanism to do this.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
Could you please tell me how to set the timeout mechanism.
Thanks
|
|
|
|
|
Put a column in your database, where you store that a user is logged in, with the date and time of their last activity. If a certain amount of time has elapsed since that time and the time they try to log in again, allow it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
hi,
i have a procedure getendbalance, i am passing list of retailerid's and date as input ,i have to collect endbalance as output and show it in gridview.
what i have tried is,
int Retailer = Convert.ToInt32(dsRet.Tables[0].Rows[0]["retailer_id"].ToString());
OdbcCommand cmdEndBal = new OdbcCommand("{call getendbalance(" + Retailer + ",'13-Jun-2009',@v_End_Balance OUT)}", Conn);
cmdEndBal.CommandType = CommandType.StoredProcedure;
try
{
Conn.Open();
cmdEndBal.Parameters.Add("@param_Retailer_ID", OdbcType.Numeric,22);
cmdEndBal.Parameters[0].Direction = ParameterDirection.Input;
cmdEndBal.Parameters[0].Value = Retailer;
cmdEndBal.Parameters.Add("@param_Date", OdbcType.NVarChar);
cmdEndBal.Parameters[1].Direction = ParameterDirection.Input;
cmdEndBal.Parameters[1].Value = "13-Jun-2009";
cmdEndBal.Parameters.Add("@v_End_Balance", OdbcType.Numeric);
cmdEndBal.Parameters[2].Direction = ParameterDirection.Output;
cmdEndBal.ExecuteNonQuery();
double RetVal = (double)(cmdEndBal.Parameters["@v_End_Balance"].Value);
}
catch
{
}
finally
{
Conn.Close();
}
|
|
|
|
|
Your code is broken.
Praneeth Babu K wrote: call getendbalance(" + Retailer + ",'13-Jun-2009',@v_End_Balance OUT)
You are passing parameters, so why adding it here? You just need the procedure name here.
|
|
|
|
|
i will correct that one,
how to get the out put parameter in varaible or array,
double RetVal = (double)(cmdEndBal.Parameters["@v_End_Balance"].Value);
is this the the write way.
|
|
|
|
|
I have a webpage with an asp:menu. I have menuItems in the menu. What I want to do is call a javascript function when the menuItem is selected but do not see an onselected or any selection event. Is there a way for me to just call a javascript function and not navigate to an url when the item is selected?
Thanks,
Steve
|
|
|
|
|
I guess you need to look at the HTML that is generated, but I'd imagine if you make your 'url' javascript:myfunction()', that would work.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
When I add NavigateURL="javascript:function()" it only shows a page with the javascript source code? Note: this is an asp:menu.
Thanks,
Steve
|
|
|
|
|
O.K. I got it working!
Thanks,
Steve
|
|
|
|
|
Ok, so let the rest of us know the secret...
Regards,
John McPherson
"Sufficiently advanced technology is indistinguishable from magic."
Arthur C. Clark, inventor of the telecommunications satellite
|
|
|
|