|
i'm using visula studio 2005, web application
i'm retriving a data from the database and viewing it in textboxes.
i had one password field, and when i set the textmode property of the textbox to password mode no data displayed. i checked that the field has data and when i set the textmode property of the textbox to singleline it appears.
|
|
|
|
|
|
Hi guys
Hope someone will be able to help. I am using C# in Visual Studio 2005. Our client wants to add a Gridview to an ASP.NET application, but the tricky part that I cant figure out is: He wants the header row to stay static when the user scroll down the page. The GridView control for windows allows you to freeze the header row, but not the ASP.NET GridView control. Pleeeeeease help!!!
|
|
|
|
|
I think it is possible with Ajax.
Did you try with Ajax.
Regards,
Satips.
|
|
|
|
|
Thanx a million for the reply. No, I haven't tried ajax yet. Not farmiliar with it, but will do some research.
Regards,
Elizma
|
|
|
|
|
hi
try this link a code project article
http://www.codeproject.com/useritems/FreezeHeader.asp
|
|
|
|
|
Thank you so much!!! It works beautifully!!!
Very Greatful Programmer,
Elizma
|
|
|
|
|
i want to generate a unique primary key, something similar to the auto increment feature, but i do not want it to be auto increment.
The reasoning for this is: this table will have rows deleted by the hundreds every day, and maybe even thousands in a few years (I hope!), All the while having more rows replace the ones that were erased. Is there a way to have mysql create a unique key that is just randomly generated?
Thanks in advance!
|
|
|
|
|
Why do you think that an auto icrementing key would be a problem?
If you create 10000 new records each day, it will take more than 500 years until it reaches it's maximum value. If that seems too little, just use a 64 bit integer as key, and you can create a billion records every day for 25 million years.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi to All,
Hoow Can I access Pay pal return values.
I did find that the PayPal Sandbox works OK to do some testing without a real account. It took a little bit to understand what all I needed to create.
I am still not sure how to get the amount parameter sent back via a querystring or if that is not possible, how to read in the POST info that should be posted.
It's very urgent
Thank you
-- modified at 7:21 Saturday 14th April, 2007
|
|
|
|
|
|
hi friends
I have need javascript to enter only numerics value in textbox on text change events not on Submit button events.
Plz give me some link
Thanks in adavance
Pathan
GOD HELP THOSE WHO HELP THEMSELVES
|
|
|
|
|
Server Side -
protected void Page_Load(object sender, EventArgs e)
{
TextBox1.Attributes.Add("onkeydown", "return checkvalid()");// Call Javascrip
}
Client Side -
function checkvalid()
{
var sTxt = event.srcElement.value;
var i = event.keyCode;
//alert(i);
if((i<47 || i>58) && i!=8 && i!=16 && i!=20)
{
alert("Not allowed");
event.srcElement.value="";
return false;
}
}
But remind when you are adding attributes to this control requirefield validator will not work.
Regards,
Mayank Parmar
Senior Software Engineer
Amba Tech
Gandhinagar, India
|
|
|
|
|
You can check for event.keyCode on onKeyUp eventhandler. If it is not number, you can NULL it.
|
|
|
|
|
Hi there,
I am using .NET 2.0 with C#.
I have a website project. I also have a master page in the root directory called Website.master. In the “code behind” of this master file I have the following namespace MyNamespace.Master. When I view the object browser I don’t see this namespace there. Why is this?? Visual Studio only seems to add the namespaces that are in the Bin and App_Code folders. I don’t know if I’m not viewing it correctly, but I can not see it there.
Please can some one help me?
Regards
ma se
|
|
|
|
|
Hi everybody
The formview modechange events are not fired, when i try to change the modes to insert,edit,readonly.
Thanks in advance
|
|
|
|
|
Hi in sqlserver stored procedure i am doing some calculations...,
See the below procedure:
select a.empid,b.empName,c.Whrs,c.srg,case when srg=0 then @Outsunday else @Insunday end as days,c.Bassalary,
(Bassalary/(days*Whrs)) as onehour,
sum(AppWHours) as TWhrs,Sum(AppOtHours) as TOThrs
from tblMonthHourDetails a,tblemployeemaster b,tblsalarydetails c where
a.empid=b.empid and a.empid=c.empid and
b.projectid=@projectid and datepart(mm,[SDate])=@months and datepart(yy,[SDate])=@Years group by a.empid,b.empName,c.Whrs,c.srg,c.Bassalary
In that above procedure using case condition i am getting one column "days" like...,
That days value i want to use to calculate for onehour column,
if i give there days(highlighted in above procedure) value its telling error msg like invalid column days like...,
but i want to use that value there how to use...,
Plz any one solve my probs.....,
Magi
|
|
|
|
|
Please don't spam the site. The SQL forum is the right place for this ( although I have answered it in the C# forum )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 Gurus,
How can I format 50000 integer to this format 50,000?
I tried using string.format("{0:#,#}", variable) but the result always come with a decimal value 50,000.00
Thanks
dom
|
|
|
|
|
I think it's string.format("0:f2") ( for two points after the decimal )
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
int i=50000;
i=i.ToString("##,###");
Please try this...
|
|
|
|
|
Hi,
The format is
String.Format("{0:#,###}", 50000)
Regards,
Raghu
|
|
|
|
|
Thanks Raghu this one nail it!
you rock!
|
|
|
|
|
This might be a stupid question, but I'm not sure how to search for this info because I don't know the terminology for what this is called, but this is what I want to do.
Say I have the following value in a database text field:
"Hello <%# user.name %>, today is <%# date.today() %> and you are logged into <%# MyCustomObj.AppName %>!"
Now I want to take that text, insert it into a user control, custom control, or object of some soft, and then have ASP.Net evaluate it as if it was written in the page (or user control) content and evaluated during DataBind().
I want the end result to be something like:
"Hello ceeez, today is Friday April 13, 2007 and you are logged into SuperSite!"
________
Actual code or a link to full example would be the most helpful, but any help with proper terminology of what this is called or the technology necessary would be great.
Thank you so much in advance!!!
Cesar
|
|
|
|
|
I have a table tbUsers and I selected a row now it has three fields. I want value of first field in txtbox1, second field value in textbox2 and third field value in textbox3. where textbox1, textbox2 and textbox3 are the textboxes in my ASP page.
How can I do that.
Thanks,
|
|
|
|