|
hi friend my problem is in mdi form there are some menu and one menu option is login by clicking login the next page login page open it show in mdi form but after clicking ok button which exist in login page we want another page open but it not happened
so please tell me but to do
deepak chandra
|
|
|
|
|
Hello,
A code snipped would help us I think!
Are you call "Show" or "ShowDialog" to open the 'login' page over the menu?
If you use "ShowDialog", you can not open on other Form from that, I guess.
If you open the second Form than with Show, the Dialog Form will close.
All the best,
Martin
|
|
|
|
|
no i haven't used dialog
ok button what will i write ?by which another page open and show in mdi form
deepak chandra
|
|
|
|
|
deepaksringr wrote: hi friend my problem is in mdi form there are some menu and one menu option is login by clicking login the next page login page open it show in mdi form but after clicking ok button which exist in login page we want another page open but it not happened
so please tell me but to do
A little code snippet will be helpful.
Everything has its beauty but not everyone sees it.
|
|
|
|
|
Hi all ,
I need to update the changes made on the dataset to database ,i wrote the following code but its getting updated to database ,please help me somebody
The code like this
Da=new SqlDataAdapter("SELECT * FROM MailsInQueueTest",sqlcon);
SqlCommandBuilder builder = new SqlCommandBuilder(Da);
sqlcon.Open();
Da.Fill(MailDataset);
foreach(DataRow dr in MailDataset.Tables[0].Rows)
{
if((Convert.ToInt16(dr[0]))==1)
{
dr.Delete();
}
}
MailDataset.AcceptChanges();
builder.GetUpdateCommand ();//.GetDeleteCommand();
Da.Update(MailDataset);
Thanks In Advance
Chandra Gupta
|
|
|
|
|
I need to define a treeview with xaml that has a checkbox on each node without binding it to a data source. Can anyone help me ?
Johan Lombaard
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former - Albert Einstein
|
|
|
|
|
Hello,
I was trying to make a Windows Service that monitors a certain condition and starts a Windows Forms application when the condition is met.
I used the
System.Diagnostics.Process.Start(@"c:\app.exe");
but whenever this line runs the application (the Windows Forms application) fails.
I tried the same code to run the application "app.exe" from another Windows Forms applcication and it worked fine?
Can anybody please tell me why is this happening?
|
|
|
|
|
Hi,
if your app has a GUI, it can only run when someone has logged on,
unless you perform an "impersonation". You'll have to look that up,
I don't know any details.
|
|
|
|
|
make sure ur service is desktop interactive i.e go to service(SCM) and right click ur service to see the property under logon tab check allow service to interact with desktop the ur System.Diagnostics.Process.Start(@"c:\app.exe"); will work. interaction can aslo be done programmaticalyy.do u want that also
|
|
|
|
|
Thanks, and yes I'd really like to know how to do it programmatically.
|
|
|
|
|
Hi,
I need a script to convert a video file to flv, with c#.
I don't know how this could be made, is there a FFMPEG sdk or something for c#? Maybe a tutorial?
|
|
|
|
|
|
hi,
there this website which adress is mentioned in the code below, to which I want to send data using POST method but something is not working for me
can anyone help?
string strNewValue;<br />
<br />
string strResponse;<br />
<br />
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://login.americasarmy.com/home");<br />
<br />
request.Method = "POST";<br />
<br />
strNewValue = "?login_form_username=user&login_form_password=haslo";<br />
<br />
request.ContentLength = strNewValue.Length;<br />
<br />
StreamWriter stOut = new StreamWriter(request.GetRequestStream(), System.Text.Encoding.ASCII);<br />
<br />
stOut.Write(strNewValue);<br />
<br />
stOut.Close();<br />
<br />
StreamReader stIn = new StreamReader(request.GetResponse().GetResponseStream());<br />
<br />
strResponse = stIn.ReadToEnd();<br />
<br />
richTextBox1.Text = strResponse;<br />
<br />
stIn.Close();
|
|
|
|
|
Remove the question mark.
---
single minded; short sighted; long gone;
|
|
|
|
|
|
So, what happens? Does the code compile? Does it run? Have you verified that the code actually is executed? Do you get an error message?
---
single minded; short sighted; long gone;
|
|
|
|
|
yes, the program runs but instead of getting a result which would be my profile page it's the page which I listed in the webrequest
|
|
|
|
|
The user name and password that you are providing are not correct.
Perhaps you are using something completely different as user name and password? If the code that you are using differs from the code that you are showing, you should mention it. It's impossible for someone else to see an error in code that you don't show.
If the user name and password contains different characters, they may need to be url encoded:
strNewValue = "login_form_username=" + Server.UrlEncode("user") + "&login_form_password=" + Server.UrlEncode("haslo");
When a form is posted, the value of the button used to post the form is also included in the data. You might need to include the value for the button for the code to react to the posted data.
---
single minded; short sighted; long gone;
|
|
|
|
|
is the Server.UrlEncode part of some namespace ?? Bacause when I added it I get en error
Error 1 The name 'Server' does not exist in the current context
I've addes System.Web; but it didn't help
|
|
|
|
|
It's in the HttpServerUtility class, but that is only available if you have an ASP.NET application.
You can use the HttpUtility.UrlEncode method instead.
---
single minded; short sighted; long gone;
|
|
|
|
|
I've changed it as you suggested but nothing changed
|
|
|
|
|
There are two hidden fields in the form also. Aren't they needed?
---
single minded; short sighted; long gone;
|
|
|
|
|
I've added them as such
strNewValue = "login_form_username=" + HttpUtility.UrlEncode("user") + "&login_form_password=" + HttpUtility.UrlEncode("haslo") + "&from_module=" + HttpUtility.UrlEncode("home") + "&form_name=" + HttpUtility.UrlEncode("login");
and as such
... + "&from_module=home&form_name=login";
but with no result
|
|
|
|
|
Have you tried adding a value for the button, as I suggested earlier?
---
single minded; short sighted; long gone;
|
|
|
|
|
so right now the string value has grown to:
strNewValue = "login_form_username=" + HttpUtility.UrlEncode("user") + "&login_form_password=" + HttpUtility.UrlEncode("haslo") + "&loginBoxSubmit=" + HttpUtility.UrlEncode("Login") + "&from_module=" + HttpUtility.UrlEncode("home") + "&form_name=" + HttpUtility.UrlEncode("login");
but it didn't help
|
|
|
|