|
Response.Redirect is one of the many ways you could do it. Google knows them all.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
What is this Google you speak of?
led mike
|
|
|
|
|
It is that mythical beast - the 1 with one hundred zeros.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
I have got the solution. We can use ..
{....
.....
Form Form2= new Form2();
this.AddOwnedForm(Form2);
Form2.Show();
}
at the point after where we wants the application gets redirected from Form1 to Form2.
have fun
|
|
|
|
|
hi,
u can do this using 2 methods.
1. just take one Submit button and change the text as "Login".
in the form tag set the action parameter as the page u want to open when the user click on submit button.
2. just u can use Response.Redirect("Page2.aspx") in submit button click
Regards,
Rahithi sharma
|
|
|
|
|
Google also knows the Server.Transfer() method... shhhh... it's a secret that they hide in the documentation[^].
led mike
|
|
|
|
|
led mike wrote: Google also knows the Server.Transfer() method... shhhh... it's a secret that they hide in the documentation[^].
Jedi should not reveal the secret of our success.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi All
when using some Component writen in Dotnet
i succesfully get result while using it from dotnet application ,
but getting the error while using it from a vb6 application.
Cannot perform '<=' operation on System.DateTime and System.String
the component is getting xmlString and return a string
and i using a .tlb file referenced to the vb6 application
the wierd thing is (and i checked it several times on several computers)
that when dotNet Framework ver-1 installed then it work fine
but, when dotnet 2 installed then i get the message : "Cannot perform '<=' operation on System.DateTime and System.String"
what can couse the difference between the senarious.
anyone ?? need a help here...
thanks, guy
|
|
|
|
|
guygo wrote: Cannot perform '<=' operation on System.DateTime and System.String
Well, you're obviously dealing with two different datatypes, I'm guessing you want to convert the string to a datetime.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
well i know ,
but how is it working for framework one and not for framework 2
the dateformat is : yyyy-mm-ddTHH:mm:ss.fff
is this format is a known format for these platforms ?
and to remind i'm using a dotNet dll via vb6 application
guy
|
|
|
|
|
I'm having troubles trying to get my MainMenu component to display in my C# program.
I created my MainMenu object by dragging it from the Windows Form components in the .NET Toolbox onto my main Form. It looks like it is there as it is added in the
"#region Windows Form Designer generated code" area. But when I run the program, the menu items do not display and you cannot click on anything.
Can someone please help me? Thanks in advance.
|
|
|
|
|
Every type of object has the method GetHashCode(). I want to learn what the number return by GetHashCode method use by programmers. And is it releated with hash tables
karanba
|
|
|
|
|
A hash code is used to get a compact value that can be used to efficiently compare large values. A good hash code is created from all data in the value, has an even distribution over the possible hash codes, and shows a large difference in the hash code for a small change in the value.
Hash codes can be used to see if two values are different, which for example is used to compare large files. Even if they only differ by a single bit, their hash codes will be completely different.
Hash codes are used in hashtables to arrange the data so that a key can easily be found using the hash code of the key. To keep the search tree balanced, it's important that the distribution of the hash codes is even.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks very much. I got the subject.
karanba
|
|
|
|
|
I have a user control with a panel on it which I paint rectangles and text on using the following method - Graphics mg = this.CallsPanel.CreateGraphics(); When I minimize or switch back and forth between other application windows, I loose the graphics. I have been trying to figure out which event to wire a re-paint function to but am not having much luck. Or, is there a way to anchor the graphics that have been painted until I invalidate and update the panel?
|
|
|
|
|
tjschilling wrote: Graphics mg = this.CallsPanel.CreateGraphics();
NEVER do this. There is no way to solve the problem you're now having. Draw in your paint event and call Invalidate to force it to occur.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I moved the calls to my re-draw to the paint event for the user control and all is well.
Looks like you gave me what I needed.
Thanks.
|
|
|
|
|
Don't just do the re-draw in the Paint event, do all drawing there. Call the Invalidate method of the control when it needs to be redrawn.
Make sure to use the Graphics object that is supplied in the EventArgs for the event, and not create your own.
The supplied Graphics object is clipped to the area that should be redrawn, if you create a new one it won't be clipped, and you might draw on top of someone elses window.
---
b { font-weight: normal; }
|
|
|
|
|
how to generate a new label for every click event of a send button in panel in a new row in asp.net c#.please see the code below.its working but not creating new label in a new line withfirst label vissible
i am trying to write code for chating application.Please help me as soon as possible..
private void btnSend_Click(object sender, System.EventArgs e)
{
System.Web.UI.WebControls.Label lbl=new Label();
lbl.Text=entr;
Panel1.Controls.Add(lbl);
}
|
|
|
|
|
specify the location of every new label
|
|
|
|
|
thanks for the reply..can u plz tell me more on it in code
|
|
|
|
|
Hi,
/********** Visual Studio 2005, C# .NET 2.0 - Windows Form ***********/
Within my code, I want to hold for certain seconds like Thread.Sleep(2000). But I dont want to block the User Interfaces. Now, I had a choice to use Timer, and When I need to start sleeping, I can call the timer.Start() and use While Loop to check how many seconds passed, if time over then exit the loop, otherwise Application.DoEvents(). But This is a very dirty way and I am looking for an efficient way and I believe there must be some class to do this job. Would you please let me know about that.
Thanks again
Emran.
|
|
|
|
|
bashiwala wrote: I want to hold for certain seconds like Thread.Sleep(2000). But I dont want to block the User Interfaces.
ummmm.... "hold" what?
led mike
|
|
|
|
|
Hello,
Thanks for your reply.
Actually my purpose is not to trigger timed event. Ok, just consider the following code,
private void doNothing_Important()
{
int a = 5;
int b = 6;
int c = a + b;
Thread.Sleep(2000);
b = c - 1;
}
Now, in my that code, I want to wait for 2 seconds before executing the last line but If I use Thread.Sleep(2000), then all user interface controls are blocked. An alternative way to perform this task without blocking is to use a thread or backgroudnworker. I can call the Background worker Asynchronously and make a while loop to check if the thread is completed. like this,
private void doNothing_Important()
{
int a = 5;
int b = 6;
int c = a + b;
backGroundWorker1.runWorkerAsyncrhonous();
while(backGroundWorker1.IsBusy)
Application.DoEvents();
b = c - 1;
}
backGroundWorker1_DoWork(BWEventargs e.....)
{
Thread.Sleep(2000);
}
Now, My question is, IS there any other better short cut way to perform the same sleeping task ?
Regards
emran
|
|
|
|
|
Hi!
If I understand you correctly, you want a certain action to be performed at a certain time, right?
You could do this by creating the timer and setting its Interval property to the time difference between now (DateTime.Now ) and the time you want the action to be performed.
That way you just have to put your action in the timer's Tick event handler and you're done.
Btw. don't forget to stop the timer in the tick event handler, otherwise you could get the action performed more than once.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|