|
You kan use the VisualBasic component.
using VB = Microsoft.VisualBasic;
namespace My.Tools
{
public class NumericTools
{
public static int ReturnNumericValue(string strText)
{
if(VB.Information.IsNumeric(strText))
{
return int.Parse(strText);
}
else
{
return 0;
}
}
}
}
And remeber to add refferens to the Microsoft.VisualBasic.dll
Hope it helps
Thomas
-- modified at 10:18 Monday 1st October, 2007
|
|
|
|
|
|
I am a newbie to the ASP world. So with that being said, is it possible to output an asp variable in html tags?...i.e.
<%string intranet_name = "My Variable";%>
<title><%=intranet_name%>
|
|
|
|
|
Hi,
I am having two file in some other system. So if i copy and paste that both files in my local system and set the .htm file a desktop wallpaper. In that case it's coming fine, but if i'll not copy and paste these two files in local system and accessing just the file path, then in that case When i am trying to set that .htm file as desktop wallpaper that time, i am Getting Some Error Like "Access is denied to file: http://199.63.23.57/Share/WebService.htc".
So please help me and give me some needful suggestion to solve to comeup with this problem.
Reg,
Narayan Choudhary
|
|
|
|
|
Hi Friends
Description of Problem.
A --- User 1
B --- User 2
I have IE 7.0 installed in system.
When A logins the web application (tab no.1 ) a unique session id is created, let it be "555555" and when B logins the same web application using his id in the same browser but different tab (tab no.2) a unique session id is created "666666", but when user A start accessing the screens after login of user B, his session id "555555" is replaced by new session id "666666" (session id in tab no.1 is replaced by session id in tab no.2). So at last in both the tabs you will find screens of User B.
May any one of you explain why this is happening. And also the solution of the above.
Abhishek
Mumbai, India
|
|
|
|
|
All the windows (tabs) in an instance of IE belong to the same client session. To have separate client sessions, you have to start separate instances of the browser.
The server sessions use a cookie to identify the client, and the cooke is stored in the client session. If you want to use separate server sessions in the same client session, you have to use cookieless sessions.
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks Guffa
Is there any alternate solution for it? as you cannot force (or ask) clients to start new window.
Abhishek
Mumbai, India
|
|
|
|
|
abhishek.mumbai wrote: Is there any alternate solution for it?
None other than the alternate solution I mentioned.
---
single minded; short sighted; long gone;
|
|
|
|
|
Can we edit data in the Repeater control? If yes, how???????
Neeraj Rawat
|
|
|
|
|
Check this link:
http://www.codersource.net/asp_net_repeater_databind.html
|
|
|
|
|
Hi All,
I have to freeze TreeGrid. My problem is that I am having a datatable (parent child relationship)from which I am creating TreeGrid using Javascript and html table. Now I have to freeze the first 2 columns and first row of this TreeGrid.
For freezing GridView I am using http://www.codeproject.com/script/articles/list_articles.asp?userid=1654009 this article.
As this class uses GridView control and I am using datatable, i need to make the change but I am not getting how do I start with it.
Please help me...
Thanks in advance.....
|
|
|
|
|
Hi,
I need help.
I have created a class "myClass.cs" and I have a default.aspx page.
When I add the following code to to codebehind it works.
TextBox myTextBox = new TextBox();
pl_Holder.Control.Add(myTextBox);
Obviously I added a Placeholder to the HTML page. This code, when I press a button displays the textbox dynamically.
My problem is that I have specified this code in a seperate .cs file and want to execute it. When executing I get an error pl_Holder is not in the current context. I know I should instanciate it but when I do nothing displays on the form.
Can someone please tell me how can I use a control from an .aspx file in a seperate .cs file.
Thank you!
Illegal Operation
Making Computer Software Talk
|
|
|
|
|
Illegal Operation wrote: I know I should instanciate it but when I do nothing displays on the form.
Of course not. Your form contains a placeholder. Your other class creates a NEW placeholder, which is NOT on your form. So, this can't possibly work.
What you're doing is a bad idea, you shouldn't be seperating code out from the page that defines the UI. But, the way to do it, is to pass your actual placeholder instance that you want to add a control to, into the class. A better idea is to have a class generate the control, and put it in the placeholder within your aspx.cs file.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Along with "definite", "separate" just has to be the other most commonly mis-spelled word in the English language... aargh!
|
|
|
|
|
Are you stalking me ? :P
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Just never miss a chance to get one up on a C++ coder! Us VB lot, we have to get our own back somehow!
|
|
|
|
|
Fred_Smith wrote: Us VB lot, we have to get our own back somehow!
Yes, you have so little.... :P
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
|
how to add folders and sub folders to a treeview with out their complete path.
|
|
|
|
|
Sorry, you need to explain it better than that. If you don't know exactly where to put it, you just have eto choose a spot at random, but I don't know if that helps, your queston doesn't make enough sense.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
m working with .net.if i go for a sub folder in a treeview then iam getting the fullpath from the beginnig like d:\parentfolder\childfolder like this .but if click on parent folder i should get only child folder like
childfolder but not complete folder.
|
|
|
|
|
Try In Google..U can find out the code in Google
|
|
|
|
|
Hi Guys i am facing a problem that memory size of our worker process keeps on growing and our web iste becomes slow , what could be the possible reasons, please reply ASAP,
regards,
|
|
|
|
|
A memory leak. Poorly written code. Hard to say more without seeing code.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
King Shez wrote: please reply ASAP
Might because of memrory leak ?
are you using any COM component or 3 party tool ?
Are you creating many objects in your application ?
There are many reasons for this :->
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... "
|
|
|
|