|
|
Hi Friends
I want to search the some text in a file and insert some words next line of that searched text,Im using Streamwriter class but its append.How I can do this ?.Do u have any idea
|
|
|
|
|
Please Check your Signature Area, it unnecessary takes to much place
just and information
|
|
|
|
|
Hi
I saw your article..But Im asking about filehandling concept.
Is it possible to insert(Not Append) a text in to file ?
Cheers..!
Vijay s
|
|
|
|
|
The article in the above post is in their signature and therefore nothing to do with an answer to your question
|
|
|
|
|
Hi all,
I have a calendar in my page and below of it is Webgrid. When i click on the calendar, calendar is not fully visible. part of the calendar is hiding by grid.
How to show the calendar fully?
Thanks in advance.
|
|
|
|
|
use table. and put caledar in one row and Grid in another row
<table>
<tr>
<td>
your caledar Control
</td>
<tr>
<tr>
<td>
your grid view
</td>
<tr>
</tr></tr></table>
Best Regards
-----------------
Abhijit Jana
Check Out My Latest Article
Java.NET : Integration of Java and .NET[^]
"Success is Journey it's not a destination"
|
|
|
|
|
Can you send design code..
|
|
|
|
|
Does anyone know why the validator doesnt prevent postback when hitting enter on textbox twice?
I just have this controls in my form:
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="RequiredFieldValidator" SetFocusOnError="True" ></asp:RequiredFieldValidator><br />
<asp:Button ID="Button1" runat="server" Text="Button" />
Ive also tryed putting this inside a panel:
<asp:Panel ID="Panel1" runat="server" DefaultButton="Button1">
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox><br />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
ErrorMessage="RequiredFieldValidator" SetFocusOnError="True" ></asp:RequiredFieldValidator><br />
<asp:Button ID="Button1" runat="server" Text="Button" /></asp:Panel>
When i hit enter inside textbox, the validator appears, but if i hit enter again, the page is posted back
Does anyone know why?
Thanks in advance
Alexei Rodriguez
|
|
|
|
|
With me it does work like it should.
A workaround , just to make sure the user passed validation, is to put the following in the button event handler:
if (!Page.IsValid)
return;
|
|
|
|
|
Hi
In windows services, we can program a thread which invokes itself after time to time.
In ASP.net application, how can we implement similar solution? Please advice.
Thanks
Pankaj
|
|
|
|
|
Write a service. ASP.NET can't do that, because of how it works.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I am trying to iisreset a remote machine programtcailly.I used the following code:
CODE I:
ServiceController controller = new ServiceController();
controller.machineName = "<remote machine="" name="">";
controller.serviceName= "IISADMIN";
if (controllet.Status ==ServiceCOntrollerStatus.Running)
{
Controller.Stop();
Controller.Start();
}
The probelm with Code I is it stops the service but does not start it.
CODE II:
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.Process.Start("cmd.exe", "iisreset remotemachine");
procee.close();
The issue with CODE II is that the current code is executed from a sql server where iis service does not exist. So the command executes without any error but does not do anything.
How can I resolve this issue.
Hema
|
|
|
|
|
Member 3449442 wrote: How can I resolve this issue.
Well if you want our help you might consider posting code that compiles. The reason for this is that it makes your statement seem like a lie:
Member 3449442 wrote: I used the following code:
Member 3449442 wrote: The probelm with Code I is it stops the service but does not start it.
led mike
|
|
|
|
|
Try this
ServiceController controllerIISADMIN = new ServiceController();
controllerIISADMIN.ServiceName = "IISADMIN";
ServiceController controllerW3SVC = new ServiceController();
controllerW3SVC.ServiceName = "W3SVC";
if (controllerW3SVC.Status == ServiceControllerStatus.Running)
{
controllerIISADMIN.Stop();
controllerIISADMIN.Refresh();
System.TimeSpan timeout = TimeSpan.FromSeconds(60000);
controllerIISADMIN.WaitForStatus(ServiceControllerStatus.Stopped, timeout);
if (controllerIISADMIN.Status == ServiceControllerStatus.Stopped)
{
controllerW3SVC.Start();
controllerW3SVC.Refresh();
controllerIISADMIN.Refresh();
}
}
Also make sure IIS Console is not open when you run the above code.
|
|
|
|
|
Hi,
please i need to read an Image from sql server and Display it in Image control.
Note that this is a single Image control.
Mohammad Al Hoss
|
|
|
|
|
If you want to show more than the image, you need a HTTP Handler, which takes the Id of the image on the URL and spits back the image bytes. There have to be articles on CP about this.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello,
I was trying to copy something from the windows assembly to my desired location.
I have done this before and it worked fine. For example, I've done this:
c:\windows\assembly\gac_msil\ xcopy microsoft.reportviewer.processingObjectModel c:\temp /i /h /s /r /y
Now, Im trying to use this:
c:\windows\assembly\ xcopy CrystalDecisions.ReportAppServer.ClientDoc c:\temp /i /h /s /r /y
And it says 'c:\windows\assembly\' is not recognized as an internal or external....bla bla bla
Anybody knows whats wrong with this?
Thanks.
Ekjon
|
|
|
|
|
Ekjon wrote: Anybody knows whats wrong with this?
I know nothing about this but looking at your post I see:
Ekjon wrote: c:\windows\assembly\gac_msil\ xcopy microsoft.reportviewer.processingObjectModel c:\temp /i /h /s /r /y
Ekjon wrote: c:\windows\assembly\ xcopy CrystalDecisions.ReportAppServer.ClientDoc c:\temp /i /h /s /r /y
led mike
|
|
|
|
|
If it works for "c:\windows\assembly\gac_msil\", then it should work for
"c:\windows\assembly\" as well - isn't it?
But thanks for ur attempt.
EKjon
|
|
|
|
|
Ekjon wrote: If it works for "c:\windows\assembly\gac_msil\", then it should work for
"c:\windows\assembly\" as well - isn't it?
hehe that's a rhetorical question yes?
led mike
|
|
|
|
|
In the past I used an add-in that gave me an open opposite (c++ .h <--> .cpp) feature.
Does something similar exist for asp.net (.aspx <--> aspx.cs or .asmx <--> .asmx.cs)?
Todd Smith
|
|
|
|
|
Todd Smith wrote: Does something similar exist for asp.net (.aspx <--> aspx.cs or .asmx <--> .asmx.cs)?
Yes. Menu items "View Code" and "View Designer" in VS2005
led mike
|
|
|
|
|
I was hoping to bind a key to toggle between them. I guess I'll have to write a macro.
Todd Smith
|
|
|
|
|
Todd Smith wrote: I guess I'll have to write a macro.
Why, is there something wrong with F7 and Shift F7?
led mike
|
|
|
|