|
Bind an event to the LoggedOut event and do a Response.Redirect.
|
|
|
|
|
Hi friends
can any one help me for getting out of Iframe
in one aspx page i am having iframe
Iframe i am showing some third party url so that i can manage my session
upto this it work fine
my problem is
from this each url shows in Iframe
how can i get out from Iframe
thanks
|
|
|
|
|
It's not exactly clear what you are asking, but if you need code to break a page out of being iframed use this little bit of javascript on the page in the frame:
<SCRIPT type=text/javascript>if (top.location != location) { top.location.href = document.location.href;}</SCRIPT>
Hope that helps.
|
|
|
|
|
System.FormatException: Input string was not in a correct format. at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) at System.Decimal.Parse(String s, IFormatProvider provider) at System.Convert.ToDecimal(String value) at test.Button1_Click(Object sender, EventArgs e) in e:\MyProject\DOTNET2005\HR2005\test.aspx.cs:line 30
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
FormatException in System.Convert.ToDecimal(String value) means:
value does not consist of an optional sign followed by a sequence of digits (zero through nine) and an optional decimal point symbol.
Check if:
- the String to convert has no invalid chars (letters etc.)
- the String has the right delimiter for the used local settings (you can set the Culture with Convert.ToDecimal Method (String, IFormatProvider) ).
Maybe just put the string before converting to the trace so you can see the value used (or set a breakpoint).
Hope that helps
Roland
|
|
|
|
|
hi,
Thank you for your reply
I detetct the problem.
It was,in default my machine support "," instead of "." in decimal values.
How can i slove it???
i upgraded asp.net1.0 application to asp.net2.0.
In my applcation I am using convert.toDecimal function in numerous place.
how i solve it??
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
string a = "12.85";
decimal da = System.Convert.ToDecimal(a, System.Globalization.CultureInfo.InvariantCulture);
string b = "12,85";
decimal db = System.Convert.ToDecimal(b, new System.Globalization.CultureInfo("de-DE"));
hope that helps
Roland
|
|
|
|
|
I have a dropdown list control on my index.aspx. This index.aspx page includes a reference to a custom control (basically a modified gridview) contained within a separate ascx page.
My problem is I need the value from this dropdown list to be passed to the ascx page. This customized gridview needs to query the database based on the value within the dropdown list.
So how can I pass a value from the main page to my custom control on the ascx page?
Thanks.
-Goalie35
|
|
|
|
|
Define a property in your customControl.
Set the value for that property in your index.aspx page (from the drop down list)
Sincerely,
Elina
Life is great!!!
Enjoy every moment of it!
|
|
|
|
|
Hi all!
Sorry for my bad english!
I have one problem.
Now I working with WebInstall project which must install Web-service.
In time when my Web-service is install, installer must write to webConfig some information.
For that I need get physical patch to my IIS folder "http:\localhost\" for eg. C:\Inetpub\wwwroot\., but I don't know how I can do it!
If somebody knows how do this, please help me!
With Best regards!
Zvonimir!
|
|
|
|
|
|
I have a treeView and based on the Node Selected I populate a grid. I have my asyncPostback set to Collaspe and Expand events. The code fires Correctly but the JavaScript attached to the Node doesn't fire. Is there a way around this with out having it post completely back?
|
|
|
|
|
Hi All
I would like to Locked UserID (if user put 3 times worng password). I dont want to use ASP.NET 2.0 Role Management. I have a Table in sql server 2005 which will be collect UserID who put wrong password 3 times. Also how will I know the IP address.
Very Urgent
Thanks
Sarfarj Ahmed
|
|
|
|
|
How about adding a flag in your database table that shows if user has been locked or not and also a counter that shows users attempt to get in successfully.
|
|
|
|
|
how will I know the IP address.
Request.UserHostAddress;
Best Regard
Pathan
---------------------------------------------------
|
|
|
|
|
i want to make "cascade treeview checkboxes" in other words when the checkbox of parent node checked, checkboxes of child nodes checked also
i tried "TreeNodeCheckChanged" event but this event don't make post back just see the checked nodes between postbacks
sorry for elongation
thanks in advance
Regards,
haitham
|
|
|
|
|
hi,
how can we check the input is decimal or not????
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
|
hi all,
i m new to web d3velopment and ASp.net
can anyone please guide me how to transfer data fromone page to another
through Cookies, Session object and url Rewriting.
thnax
Faisal VH.
i m faisal
|
|
|
|
|
Creating session variable to be used later on.
Session.Add("userID","420")
to use this session variable in another page. This is how we can access.
string ID=Session["userID"].ToString();
Response.Redirect"Page2.aspx?firstName=faisal"); //this is how we pass value through URL
string name=Request.QueryString["firstName"].ToString(); //Accessing the value in another page
|
|
|
|
|
hi,
I upgraded my asp.net 1.1 application to asp.net2.0.
After coverting it ,i didnt get any solution file for asp.net2.0.
how i can creat a solution file for this application?
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
As I recall, if there is only one project in the solution then you don't see it in the solution explorer.
|
|
|
|
|
Assumming you are using VS 2005, just do File > Open > Website and using the File System to open the folder that contains your web app. After it is open use Build > Rebuild Solution and prior to the build you should be prompted to select a location to save the .sln file to.
|
|
|
|
|
Hi Brent,
Thank you for your reply.I am using VS2005.I done as u told but it didnt prompt for save .sln file.
In file->open website(no open)->browse the project contain folder and click open.
rebuild it ... but it didnt prompt to save the .sln file.
can you help me??
All I ever wanted is what others have.... CrazySanker
|
|
|
|
|
Ok, then to me it sounds as though there is a .sln file somewhere on your machine, probably it is just not located where you expect it to be. Maybe do a search of your machine for all .sln files using "*.sln" and see if you can find it. Beyond that I am not sure.
|
|
|
|