|
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.
|
|
|
|
|
VS 2005 doesn't prompt you to save solution files. They are by default located in "Documents and Settings" folder under your user in a folder call Visual Studio Projects, or something like this. IIRC you can change this somewhere in the options.
Cheers,
Mircea
"Pay people peanuts and you get monkeys" - David Ogilvy
|
|
|
|
|
I beg to differ. My vs 2005 does indeed prompt me to save a .sln file if none exists already.
|
|
|
|
|
VS 2005 create the solution file at default place if you have not given address to store go to My documents -> Visual Studio 2005->Projects->check for your project name a folder should be there with your project name
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
Hi there.
I read an article on how to send mails from my ASP.NET C# pages using SmtpMail.Send(). It works great but when I type Arabic characters for example, the receiver only sees "???????????" instead of what I wrote.
How can I solve this problem? If I type these characters in a Yahoo Mail, the receiver sees them correctly.
My page is set to utf-8 with unicode signature.
Please help.
Thanks.
|
|
|
|
|
Try these lines:
message.SubjectEncoding = System.Text.Encoding.GetEncoding("utf-8");
message.BodyEncoding = System.Text.Encoding.GetEncoding("utf-8");
|
|
|
|
|
Thanks buddy! It worked great
|
|
|
|
|
Is there any way of sharing resources from one project to another under the same solution. For instance a web.config file and it's properties or some classes and their methods.
Thanks
|
|
|
|
|
For classes and methods you need to put them into a seperate assembly then add a reference to it in each of the projects. For config files, put settings that are common across all applications in the machine.config rather than the web.config.
|
|
|
|
|
Sam Heller wrote: Is there any way of sharing resources from one project to another under the same solution. For instance a web.config file and it's properties or some classes and their methods.
Yes.
For code, you create class library projects (for the code you wish to share) and then you reference them in other projects. (Right click the project, then Add-->Reference... In the dialog pick from the list in the "Projects" tab)
If you are using .NET 2.0 the visual studio resource editor will create a class wrapper to allow you access to the resources, this can be picked up like any other code.
Default config files (e.g. web.config or app.config) are accessible from any code as they are deployed with the assemblies as a separate file.
|
|
|
|
|
Ok so any classes need to be in a seperate project and then this needs to be reference by the other projects.
But what about the app.config file. I failed to mention that this solution is three seperate web services. At the moment they all have their own app.config file. This as you expect contains almost identical content.
Thanks
|
|
|
|
|
If those web services all run on the same physical machine, then you can put those settings in the machine.config file on that machine to save from having to duplicate the settings in each app.config. Then of course, edit your own machine.config so the same settings apply on your development machine. Perhaps this will help:
http://msdn2.microsoft.com/en-us/library/ms178685.aspx[^]
|
|
|
|
|
Hi there.
I read the article " " to send mails from my ASP.NET C# pages. It works great but when I type Arabic characters for example, the receiver only sees "???????????" instead of what I wrote.
How can I solve this problem? If I type these characters in a Yahoo Mail, the receiver sees them correctly.
My page is set to utf-8 with unicode signature.
Please help.
Thanks.
|
|
|
|
|
Hi,
I have a small problem where I am using a tab strip to display dynamic controls.
When the user presses the save button I have to loop through the tabs and then loop through the controls on each tab to see if their values have been changed - if so write them to the DB.
All of the dynamic controls added implement an interface called IKSSControl.
Is there a way to check that the control on the page is derived from IKSSControl?
Many thanks
Janet
Lady Programmers are a rare breed!
|
|
|
|
|
But_Im_a_Lady wrote: All of the dynamic controls added implement an interface called IKSSControl.
Is there a way to check that the control on the page is derived from IKSSControl?
You could try something like this:
IKSSControl kssControl = myControl as IKSSControl;
if (kssControl != null)
{
}
|
|
|
|