|
Hi,
I have a datagrid that insert data. One column is for user name and it
was being done manually. I mean the user has been inserting the name
manually. I want to Cahnge it so that when a user loggs in the name
automatically rights his name is that possible if yes how can I do
this?
|
|
|
|
|
When the user logs into the application, you could store their user name in a Session variable. This means you can use that variable anywhere in your application (in your case, in your DataGrid).
|
|
|
|
|
Hi,
I want to translate Bool from VB into c#. What could it be?
Thanks
|
|
|
|
|
i am storing date to database. i am taking that date value and storing that value to a textbox.but in textbox date and time is displaying .i want date only.as a string i am passing that value to the textbox .how i can format datevalue?
|
|
|
|
|
dim dateSTR as string
dateSTR = [DateFromDatabase].Now.ToString("MM/dd/yyyy")
if database field is datetime.
Thanks,
Sun Rays
|
|
|
|
|
Or you can change the query like this
select convert(varchar(20),yourdatefield,106)
|
|
|
|
|
I am exporting my report to excel file. some of the fields have large text and the rows of the excel sheet over lap. is there any way to set the row width / heigh while exporting etc.
thanks.
|
|
|
|
|
hi
i want to declare width and height for webform.
or how to resize the webform
Gayatri
|
|
|
|
|
window.open("test.aspx","POPUP","height=500, width=700,status= no, resizable= yes, scrollbars=yes, toolbar=no,location=no,menubar=no,left=200,top=250,directories=no ");
Thanks,
Sun Rays
|
|
|
|
|
if you got the answer of ur problem then please tell me.
Mohinder Singh
|
|
|
|
|
Hello
How can i find square of number in javascript ?
I mean 10 * 10 = 100
|
|
|
|
|
u can write function as below.
function squareOfNumber(no)
{
return no * no;
}
Thanks,
Sun Rays
|
|
|
|
|
Good afternoon!!
After login , I dont want user to go back to the login page again through browser's back button.
User wil go to the Login page only after logout.
Please suggest some solution.
Thank You.
yog
hui gfgh kgdgrt njjn hjgkn
|
|
|
|
|
hi,
your page1.aspx will be your login page.
after login you will redirect your page1.aspx on page2.aspx
use below code on page2.aspx
window.history.go(+1);
Thanks,
Sun Rays
|
|
|
|
|
The problem will when to call this function
So the best way is to call another i.e open a aaplication in new window with toolless or way you want and close the current one call it from default page which will start your aaplication in new window
function open_PopupWindow()
{
window.open('Login.apsx','null',"height=500, width=600,status=yes,toolbar=yes, menubar=yes,location=no");
}
Thanks and Regards
Sandeep
If you want something you never had,
do something you have never done!
|
|
|
|
|
when u will click on Back button of IE it will not allow to go back to login page..
Thanks,
Sun Rays
|
|
|
|
|
Hi all,
I have a enum in a user control UC1.
I want to access that enum in another user control UC2..
How to do that in ASP.NET/C#?
THANKS IN ADVANCE,
CST
|
|
|
|
|
It's not good practice to have one control depdendent on another. You would be better to take the enum to another class within your application and have both controls reference that class.
|
|
|
|
|
Hi all,
I would like to know how to call a function from a control in aspx page..
Thanks,
CST
|
|
|
|
|
from where u want to call function ??
please describe..
Thanks,
Sun Rays
|
|
|
|
|
Hi,
like i have a function LoadItems()
I tried to call it as:
<uc1:menu id="Menu1" runat="server" menutoload="<%#LoadItems() %>">
But it is giving error..
Thanks,
CST
|
|
|
|
|
if u need to call the function on button click..
<asp:button id="test" onclick="LoadItems">
Thanks,
Sun Rays
|
|
|
|
|
i want popup window like small form.
then how can i resize the webform.
Gayatri
Gayatri
|
|
|
|
|
use js function window.open(...)
I cannot remember exactly the parameters...but you can search this to specify the size of window
<< >>
|
|
|
|
|
Hi all
i am new in asp.net and
i want to resize my webform.
pls help me
Gayatri
Gayatri
|
|
|
|