|
jigneshp25 wrote:
Dim fiArr As New FileInfo("dir.GetFiles(myFileType)")
What are you doing.. you are placing dir.GetFiles in Quotations... Strange
|
|
|
|
|
Abhishek Sur wrote: What are you doing.. you are placing dir.GetFiles in Quotations... Strange
I think his VS Debugger is not Working
|
|
|
|
|
Yes... Right.
|
|
|
|
|
It's plain that you have absolutely no idea what you're doing. I suggest buying a book, and reading it. Before you post here again, try reading the guide on how to ask intelligent questions, also.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
why you declare 'Dim myFileType As String' twice in your code?
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
digimanus wrote: why you declare 'Dim myFileType As String' twice in your code?
Because he has no idea about what he is doing
|
|
|
|
|
Hi,
everyone i'm working in e-learn website projet with asp.net and i would like to display this code in the end-user.
using System;<br />
using System.Collections.Generic;<br />
using System.Linq;<br />
using System.Text;<br />
<br />
namespace SiteIntranetMasterCCI.Models.Interface<br />
{<br />
interface ICsharp<br />
{<br />
IQueryable<CoursCsharp> ListAll();<br />
CoursCsharp GetCoursCsharp(int id);<br />
void AddCsharp(CoursCsharp csharp);<br />
void DeleteCsharp(CoursCsharp csharp);<br />
}<br />
}
i try a listbox but it is not look well. Someone could help me how can i display the code in page aspx.
Thanks
|
|
|
|
|
Are you asking for a syntax highlighting control ? If so, there's nothing built in, you need to write something for that.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
If it syntax highlighting, you have to write your own program.
Else if you want to display the code as it is just put it inside a string and display
e.g.
string strDisplayCode = "using System;" + Environment.Newline;
strDisplayCode += "using System.Collections.Generic;" + Environment.Newline;
..........
.........
strDisplayCode += "void DeleteCsharp(CoursCsharp csharp);}}";
hope it helps, though your question is not crystal clear
Niladri Biswas
|
|
|
|
|
Thanks for your help. so to display a code like in asp.net there is not a component. I have to write?
|
|
|
|
|
You can use
a) textarea [ textmode = multiline] ,
b)div tag
c) Html Table
d) Span tag
e) Image etc. for that
Search in google for any in built component.
Niladri Biswas
|
|
|
|
|
I am facing a problem with crystal report preview in acrobat from the client's computer.
I have a webproject published on the server and
i am able to access required page from the client
but when i click on the print then i am getting a runtime error.
I tried to access the same project from the server from IIS but there also it gives me an error
"Error in File C:\DOCUME~1\FILE-S~1\ASPNET\LOCALS~1\Temp\AziziaSearchReport {90CA8B07-D69F-4614-87B4-15A6B50B1D3D}.rpt:
The request could not be submitted for background processing. "
The rpt is in the same folder as the project.i have put it in a separate folder in the project.
Acrobat is installed on the server and on the client machine.
The same goes if i try with PrintToPrinter Method.
teh code works fine from the source but trouble starts when i publish it on my server.Teh serve has XP Professional version and IIS installed in it.
Please help
|
|
|
|
|
does your website has the rights to acces that path that is given in the error?
Check for the rights of asp_Net user and of NetworkService- user.
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
Thanks for your immerdiate response
i checked for the users aspnet and network service .
While aspnet was existinf with full control permission .I added network service with full control.Still its giving error.
Do i have to change some thing in machine .config.I am not sure but someone suggested to me.still
Thansk again
|
|
|
|
|
when you set the right there is an extra button with a detailed view which rights are in the full control set. Chech these settings too!
In Word you can only store 2 bytes. That is why I use Writer.
|
|
|
|
|
I have checked and it has full control rights
still not solved
|
|
|
|
|
Hello!
I have a problem with Web Site Administration Tool. I need it to configure my users and roles, but when I run it, it cannot find my MS SQL database, which is strange, because the ConnectionString seems to be fine, because all of my queries in the site are running fine...The message that I get from the Web Site Administration Tool when I click on Security is:
There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.
The following message may help in diagnosing the problem: Unable to connect to SQL Server database.
I ran the asp_regsql.exe which created some tables in my database. Is there anything else that I should do, so that I can use The Web Administration Tool to configure the users?
I appreciate the help!!
|
|
|
|
|
Hi Kogg_G,
I have the same problem and cannot find a solution. Did you find out how to solve your problem?
If you did, I would appreciate you to telling me what to do or where to find some pertinent information.
Thanks.
|
|
|
|
|
Hi All,
I am developing a website in ASP.Net C#.
On click of a button, i am doing several process, such as creating several files, creating reports etc. I want to display this progress to user
For example
If the file1 is creating, the status will have to show
Creation of file1 in progress...
Please let me know how this can be done.
|
|
|
|
|
AJAX, probably. You'd have to make AJAX calls constantly, and show your progress as new messages come back.
Christian Graus
Driven to the arms of OSX by Vista.
Please read this[ ^] if you don't like the answer I gave to your question.
"! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums.
|
|
|
|
|
Use AJAX, place an update panel and keep changing text of a label based on the functionality you are doing.
Example, when executing code for creating file1....put label text as creating file1.
then afterwards when saving in database....put label text as saving data etc.
Regards,
Kapil Thakur
(Where's there is Kapil , there is a way) - thakur.kapil@gmail.com
|
|
|
|
|
I do all that function in click of a button.
the code will be some thing like this
Generatereport();
GenerateFiles();
UpdateDatabase();
I created a scriptmanager and then a updatepanel and then added a label into the update panel.
then i changed the code like this
lbl1.Text="Updating reports";
Generatereport();
lbl1.Text="Updating Files";
GenerateFiles();
lbl1.Text="Updating Database";
UpdateDatabase();
This does not work, the code executes completely and the final label value is displayed.
|
|
|
|
|
I've a some TextFields & a asp button in ajax accordion content pane. It doesn't work when I click button; an error arises onClick: button1_Click in C# code.
error:No overload for 'btnBasicInfo_Click' matches delegate 'System.EventHandler'
asp:Button ID="btnBasicInfo" runat="server" Text="Save" OnClick="btnBasicInfo_Click"
modified on Wednesday, June 3, 2009 1:37 AM
|
|
|
|
|
arif.ict87 wrote: an error arises onClick: button1_Click in C# code.
What is the Error ?
|
|
|
|
|
i have datatable in which 2 row,1st column value is null
that column is datatype is DateTime.
wwhen i tried to add data to database..its gives me error as
Object cannot be cast from DBNull to other types.
i have done following..
foreach (DataRow dtRow in dtTrackingData.Rows)
{
SqlHelper.ExecuteNonQuery
(
myConnectionString
, "SP_NAME"
, iWeekNo
, Convert.ToInt32(dtRow["InvCoID"])
, Convert.ToDateTime(dtRow["LatestReportDateConsensus"])
, Convert.ToDateTime(dtRow["LatestReportDateVirtua"])
,dtFromDate
,dtToDate
,CreatedBy
);
}
i tried to add
if (dtRow["LatestReportDateConsensus"] == System.DBNull.Value)
dtRow["LatestReportDateConsensus"] =null;
still its not work..
how i will add value to datarow if its null
modified on Wednesday, June 3, 2009 1:22 AM
|
|
|
|