|
Name is the test .. which will be displayed in the dropdown .. and id is the value which will be stroed internally...
Kk
|
|
|
|
|
sorry for the mistake...
Name is the text (and not test) .. which will be displayed in the dropdown .. and id is the value which will be stroed internally...
Kk
|
|
|
|
|
hi all,
can any one help me for handling files in asp.please help its urgent
|
|
|
|
|
You import System.IO namespace.. and use File object to handile files and Directory object to handile directory..
Kk
|
|
|
|
|
HI
You have system.IO namespace in dot net using that you can do what you want but What you want to do with file means read/write/append/update/delete ?
|
|
|
|
|
|
Hi,
i have one server side text box, in that textbox we enter to enter the amount but while entering the amount after decimal point it needs to take only two values.But right now it is taking any number of values. Let me know how to do the validation that textbox needs to take only two values after decimal.
Regards
Dayakar D.N
|
|
|
|
|
hi,
take a look at
RegularExpressionValidator Class[^]. Let me know if something isn't clear
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus
|
|
|
|
|
Hi all,
I have created deployment for an application in which I put a folder named Pics. In this folder I put some images. Can anybody tell me when I am deploying it I need this folder to be included in virtual directory which is being created automatically. Means this Pics folder and images in it must be included automatically in the created virtual directoy automatically.
And actually when I was creating the deployment, I have selected the Pics folder too in it. Still it is not being included when I am deploying it in the server machine. Please tell me all the details clearly. Thank you.
Regards,
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
When you add the pictures, in the properties window, do you set them to be included in the project ? I know you need to do that for resources.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
No, may be I might have not tried in that way. I will try and if you can, then provide me step by step process. But do it if you can only. Otherwise give me some more details. Thank you.
Regards.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Hi all
I have a datagrid, which holds item name, item price, and its image(all from SQL Server database), what I need is when the user clicks on the image, I need the (id) for the item to be carried to the new page where I want to show more details about the item (expiry date, ...)
give me a sample code please..
regards
|
|
|
|
|
Hi All,
Can any one help me in the coding of IPN (Instant Payment Notification) for Paypal. I want to update my database with the help of a variable named "custom". I send Order_ID in that variable in the FORM. In IPN Email I found its value is correct as I send. But When I tried to UPdate my Database with the Help of that variable I found that its value is 0. In IPN Page Load Event I tried to get its value with Request.QueryString("custom"), then I tried to Update DB, but its value was 0. Can any one help me. Paypal does not help in ur coding.
Thanks in Advance.
Khan Bangash
|
|
|
|
|
Hi All,
I had to change the color of a dropdownlist's selected item. So i made it an html control "<Select id=ctl name=ctl runat=server>".That was working fine.
But based on this dropdownlist i had to populate another dropdownlist.
I want the items of the second ddl to change based on the selection in the first ddl on the change event.
Can anyone help me out with this?
Thanks in advance.
Regards,
Jeeva
|
|
|
|
|
you can write onchange event for select in javascript
Regards,
Sylvester G
Senior Software Engineer
Xoriant Solutions
|
|
|
|
|
Thanks for the reply.
But, I want to call a server side funtion instead of writing a function in Java script.
Plz help me out.
Regards,
Jeeva
|
|
|
|
|
i have two web pages(login.aspx and account.aspx)i want to secure my account.aspx from unauthorised access.i used forms authentication as modified the web.config as follows:
<authentication mode="Forms">
<forms name="AuthCookie" loginurl="/login.aspx">
in the login button click event the codes are as follows:
if username.text="pradip" and password.text="pkc" then
FormsAuthentication.RedirectFromLoginPage(username.text,false)
else
labelmsg.text="invalid user name or password"
now my problem is that when ever i am directly accesing accout.aspx(without logging in),it is not automatically redirecting to login.aspx..
suoopse i have 10 webforms in my project out of which i want to make 5 web forms secure so that if any unauthorised user wants to access them,they will be automatically redirected to login.aspx ..how can i do this(i think that i have to check the cookie value "AuthCookie" in the page load event of the secure pages..but i dont know how to do it..
if i write request.cookies("AuthCookie").value is nothing then response.redirect("login.aspx").. in the page load events of the secure pages then also it is not redirecting to login.aspx..plz help me out this..its urgent ..
thanks in advance
pradip kishore
|
|
|
|
|
I prefer using Session variables rather than cookies because some users disable cookies of their navigators.
It's so easy to use !!
1. Authenticate event in the login page :
protected void Login1_Authenticate(object sender, AuthenticateEventArgs e)<br />
{<br />
if ((username.text="pradip") && (password.text="pkc" ))<br />
Session["Authenticated"] = "Ok";<br />
}
2. on_Load event of every Secured page :
if (Session["Authenticated"].ToString() != "Ok")<br />
RedirectToLognPage().....
The novice.
|
|
|
|
|
hi novice
thanks for your vital support
do i have to use the forms authentication..or simple i set the cookie after the validation of the user credentials in the login form..? if i dont use the forms authentication,then how i can make the user to sign out while pressing sign out button..
please replay back soon..
thanks in advance
pradip kishore
|
|
|
|
|
In my example I used the authentication form of Visual Studio and its "Authenticate" event.
There's no use of cookies.
The novice.
|
|
|
|
|
from where would i get the authenticate form..is it built in or i have to design one..if built in..will you please tell me how to incorporate it into my project..???
please reply back soon
thanks in advance..
pradip kishore
|
|
|
|
|
i have two web pages(login.aspx and account.aspx)i want to secure my account.aspx from unauthorised access.i used forms authentication as modified the web.config as follows:
<configuration>
<authentication mode="Forms">
<forms name="AuthCookie" loginurl="/login.aspx">
in the login button click event the codes are as follows:
if username.text="pradip" and password.text="pkc" then
FormsAuthentication.RedirectFromLoginPage(username.text,false)
else
labelmsg.text="invalid user name or password"
now my problem is that when ever i am directly accesing accout.aspx(without logging in),it is not automatically redirecting to login.aspx..
suoopse i have 10 webforms in my project out of which i want to make 5 web forms secure so that if any unauthorised user wants to access them,they will be automatically redirected to login.aspx ..how can i do this(i think that i have to check the cookie value "AuthCookie" in the page load event of the secure pages..but i dont know how to do it..
if i write request.cookies("AuthCookie").value is nothing then response.redirect("login.aspx").. in the page load events of the secure pages then also it is not redirecting to login.aspx..plz help me out this..its urgent ..
thanks in advance
pradip kishore
|
|
|
|
|
put all the pages which you wanna have in 'Logged in ' area in configuration section of web.config as follows.
<location path="Home_Account.aspx">
<system.web>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
|
|
|
|
|
hi
thanks for your response
do you mean that i have to add as many location path in the web.config file as the no of secure pages i have...
can you please show me how to write it for 2 web pages(account.aspx,transaction.aspx) in the web.config file
thanks in advance
i m pradip kishore from india,working in vb.net & asp.net
|
|
|
|
|
respected sir
i hav made a datagrid and bind it to database.anyone can update and delete the records with the help of this grid.
now i hav to search the records.
for that i am opening a modal dialog box.and on the basis of search criteria
it shows the records in a grid in modal dialog.Here for the searched records i hav also given the functionality to update and delete.
i hav updated some of the records here.
upto this everything is working fine.
now when i m going to close modal dialog box(either by a back button or using browser) i want to bind the parent's grid by updated records.
i have tried to refresh parent and used this javascript function on
click of the back button.
function Closewindow()
{
opener.location.reload(true);
self.close();
}
but it only refreshes my parent window.
which is not my objective.
any suggetion
Ajay
|
|
|
|