|
Shouldnt that be
Hyperlink.NavigateURL="pageB.aspx?num1=" +para1+ "&num2=" + para2;
If in doubt, do it in multiple lines and watch at the intermediate values as in:
string s="pageB.aspx?num1=" +para1+ "&num2=" + para2;
Console.WriteLine("NavigateURL will be set to: "+s); // or whatever is able to show you a var
Hyperlink.NavigateURL=s;
Luc Pattyn
|
|
|
|
|
acodman wrote: I have 2 pages, pageA that receives two input from a text box and redirects when a button is clicked and sends the two parameters entered to PageB which uses it to search a database. below is my code:
Hyperlink.NavigateURL="pageB.aspx?num1=" +para1 && +"num2="+ para2
Try,
Hyperlink.NavigateURL = String.Format("pageB.aspx?num1={0}&num2={1}", para1, para2);
|
|
|
|
|
Hello guys .
i am developing an application protocol like soap
it is based heavily on xml ,
i need to read a string which contains the xml declaration of the protocol and manipulate that string using built in classes of xml in dotnet studio , can i initialize a class or any method with the string that contains the xml format..
Thanks guys.
Human knowledge belongs to the world.
|
|
|
|
|
|
Hello guys i just testing regular expressions
and i give to the regex class a well formatted pattern
but it always unable to recognize the string whereas i put validated string that contains the regular pattern .
here is my code
<br />
using System.Text.RegularExpression;<br />
.<br />
.<br />
.<br />
.<br />
.<br />
string pattern = "([0-9]+\".\"[0-9]*)";<br />
Regex reg = new Regex(pattern);<br />
if((reg.Match(inputText.Text)).Success)<br />
{<br />
OutputText.Text = "Matched successfully";<br />
}else<br />
{<br />
}<br />
it always enters in the else block in the code whereas the pattern is well formatted and in good structure. is that it ?????
please tell me cause i need to kill my compiler.
Human knowledge belongs to the world.
|
|
|
|
|
the pattern doesn't work at all. Why are you trying to place quotes in the pattern?
([0-9]+\.[0-9]+)
|
|
|
|
|
Thank you ed , Really thank you brother. i had figured that out , thank you
Human knowledge belongs to the world.
|
|
|
|
|
I have Created one Class Libary(DLL) Using C#.net 2005 .
How to use that Dll in C-Lang or C++ (Using LoadLibary).
How to call those functions from C or C++ (6.0 version)
Thanks in Advance
Regards
Vijay
|
|
|
|
|
I did something similar to use some classes in .NET from VC 6. Not exactly like what you are asking, but I think if you do it this way, you will get the result you are looking for:
1) Create a "bridge" .DLL written in C++ .NET that instantiates the classes in your C# library and accesses the members as you want them. Create helper functions, structures, or whatever it is you need that is a 1-1 map to what is in C# that you need.
2) Call this bridge from the VC 6 code as you would any other .DLL. You are using the IJW (it just works) feature of C++ .NET to get your code to work together correctly.
My code used LoadLibrary because I didn't want to force the user to have the .NET framework on their machines (it just had a default behaviour otherwise).
David
|
|
|
|
|
Hi David ,
Really Thanks for you Time to answering my question .
Thanks for telling me a way .
Regards
Vijay
|
|
|
|
|
An alternative to David's approach is to use the CCW (COM callable wrapper). Just add a COM interface to your managed DLL, register it properly and you may use it from your unmanaged application like any other COM object. However, in this approach the installation of the .NET framework is mandatory.
Regards,
Tim
|
|
|
|
|
I have to add to a form a button with left,top,height,width given by the user.
how can I do to put the button on the form, but the surface of each button to be without the surface
of the others button.
I try to locate if the each corner of the new button is in the surface of the each button added on the form, but I think is to complicate. know anyone another method....
|
|
|
|
|
What is so hard? Just keep a tally of the last button's vposition + height and hposition + width, and add other buttons accordingly.
|
|
|
|
|
but I have many buttons to my form...
|
|
|
|
|
So??? I gave you the answer to adding as many buttons as you wish.
|
|
|
|
|
can u write me an example ... please
|
|
|
|
|
|
sorry ... I don't say correctly what I want
I want to send me a message if my button will be in the surface of the other buttons on the form
|
|
|
|
|
Iterate through all the existing buttons on the form, and check the coordinates against exist buttons. If any of the coordinates of the new button fall between the boundaries of another button, you have a positive.
|
|
|
|
|
is not there another way ... I mean I try this and is very much code to write. I think it must be another way to do that
|
|
|
|
|
What is so hard to comprehend? It's not a lot of code. You create a function to check coordinates. You call this function inside a for/foreach loop for each button in form controls property.
I can see this having no more than 10 lines of code.
|
|
|
|
|
that it was my solution before write to this forum .... and now is the same solution, but I think anyway it's to much for a simple check.
I'll do that and after that I'll check for another solution
thanks anyway
|
|
|
|
|
Rectangle r1 = new Rectangle(l1,t1,w1,h1);
Rectangle r2 = new Rectangle(l2,t2,w2,h2);
if (r2.IntersectsWith(r1))
return true;
else
return false;
where l1...h1,l2...h2 are the button x,y,width,height
|
|
|
|
|
public bool verificSuprapunere(int l,int t,int w,int h,Panel p)
{
Rectangle r1 = new Rectangle(l,t,w,h);
bool exista;
exista = false;
int i = 0;
for (i=0; i < p.Controls.Count; i++)
{
if (p.Controls[i].ClientRectangle.IntersectsWith(r1))
exista = true;
}
return exista;
}
|
|
|
|
|
Hi everyone
Can anyone help me out with this...
In a windows application, i have got 2 windows forms. And i wan to link the forms together with a link label in the first form. How do i go about writing the codes?
Thanks in advance
frossie
|
|
|
|