|
Hi Sandeep,
Pl can u explain me how can i complete my task?
thanks for ur reply...
|
|
|
|
|
Use timer
System.Timers.Timer()
Gg
|
|
|
|
|
Hello
I have an HTML Table on a textFile, and I need to add this HtmlTable to my page, and reference to it, like dt.rows(0).cells(0).tostring,
I thought of a literalControl, but I failed referencing to mytable
Dim path As String = Server.MapPath("../test.txt")
'test.txt contains
'HTML Table
'""
Dim strContents As String = ""
Dim objReader As StreamReader
objReader = New StreamReader(path)
strContents = objReader.ReadToEnd()
objReader.Close()
Dim
lt As New LiteralControl(strContents)
Panel1.Controls.Add(lt)
Dim t As HtmlTable = Panel1.FindControl("test") ?????
if not t is nothing
Response.write(t.rows(0).cells(0).tostring)
End If
Any Ideas??
|
|
|
|
|
This is not gonna work...
Can you tell the exact requirement, why you need a file with string for Table (with runat="server" tag)??
|
|
|
|
|
I have this table stored as text file, and I want to read its contents and save them to my Db, I want to avoid looping in the string
Thank you
|
|
|
|
|
The string table you are using is not a Server-Side control anymore even though you use runat attribute. You have to have that in the .aspx file or dynamically create the Table Control on the codebehind. Then only you can access the Table using FindControl Function.
|
|
|
|
|
How to create this table from code behind same as the HTML table located on a text file??
Thank you
|
|
|
|
|
|
That was a link how to create HTML table?
wht i want is how to clone HTML table from HTML table in a textFile, and reference it from code behind
Thank you
|
|
|
|
|
Sorry Friend,
I am not able to get your requirement...
|
|
|
|
|
Hello
I have a textFile containing HTML Table as string:
for example:
I need to read from this table and insert the cells values into a DataBase?
any idea how to do this? not hot to insert to DB, how to loop through this table knowing the original tables are much complicated than this simple table
Thank you
|
|
|
|
|
Hi,
The "test" HTMLTable not inside the panel1.
The "test" HTMLTable is a text of literal control.
So You cannot use FindControl().
You should convert The Contens of the file to a Control.
And use Controls.Add
Sherin Iranimose
|
|
|
|
|
Do u have anyIdea how to do so??
Thank you
|
|
|
|
|
Hi BilalShouman,
Instead of reading from file.
Create it runtime
Dim ht As New HtmlTable
Dim hr As New HtmlTableRow
Dim hc As New HtmlTableCell
hc.InnerText = "cell1"
hr.Cells.Add(hc)
hc = New HtmlTableCell
hc.InnerText = "cell2"
hr.Cells.Add(hc)
ht.Rows.Add(hr)
Panel1.Controls.Add(ht)
Sherin Iranimose
|
|
|
|
|
Dear ;
I know how to create an HTML table at runtime?? this is not wht im asking?
wht im asking about is that i need to create HTML Table at run time cloned from an HTML Table located on a text file
Thank you
|
|
|
|
|
I have a COM dll which i need to call its methods from a asp.net page. How do I do this?
Kinldy help........!!!!!!
sharad
|
|
|
|
|
I'm not sure if you can create a reference to a COM dll in your code behind in .NET 2.0, or if you need to call it from your middle tier.
But, in essence, you create a reference to a COM dll, and then .NET generates a class which you create instances of, it handles all the COM stuff for you.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Add a reference of that dll in ur project. import it in ur page by using the Imports(VB) or Using (c#)
and use it.
------------------------------
If u think u can, u can.
If u think u can't, u r right.
|
|
|
|
|
Hi Sreeram,
You are right Sreeram actually what .net will do is it will create a wrapper dll for your COM dll with the name "Interop.(YourCOMdllName).dll " and places this in your bin folder of your application.By that way you can acces all the methods which are there in COM dll.
Regards,
Sandeep Kumar.V
|
|
|
|
|
my COM Dll has only one method - INVOKEMETHOD()
using that I am connection to my telephony server but the connection cud not be established. My telephony server is up.
r.InvokeMethod("TS.Definity![Connect]", rpc)
please suggest....
sharad
|
|
|
|
|
Hi,
I guss your connection string might be wrong for that reason it cud not be extablishing the connection.
Regards,
Sandeep Kumar.V
|
|
|
|
|
Hi All,
I have written a Web Service in C#.
When I try to invoke any method from the Web Service, I get the following error.
System.InvalidOperationException: Unable to generate a temporary class (result=1).
error CS2001: Source file 'E:\WINDOWS\TEMP\_3v5lzd-.0.cs' could not be found
error CS2008: No inputs specified
at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, CompilerParameters parameters, Evidence evidence)
at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, CompilerParameters parameters, Assembly assembly, Hashtable assemblies)
at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
at System.Xml.Serialization.XmlSerializer.FromMappings(XmlMapping[] mappings, Evidence evidence)
at System.Web.Services.Protocols.XmlReturn.GetInitializers(LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.XmlReturnWriter.GetInitializers(LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.MimeFormatter.GetInitializers(Type type, LogicalMethodInfo[] methodInfos)
at System.Web.Services.Protocols.HttpServerType..ctor(Type type)
at System.Web.Services.Protocols.HttpServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
I have already tried the following:
1. Tried running: aspnet_regiis -ga "NT AUTHORITY\NETWORK SERVICE"
2. Tried giving full read/write access to "NETWORK SERVICE" on 'E:\WINDOWS\TEMP'.
Ps: My setup: Windows 2003, IIS 6.0
Please let me know what am I missing here.
Regards,
DJ.
|
|
|
|
|
I'm just starting out with ASP.net, making a web parts intranet.
I'm triyng to get some basic web parts (ascx files) working on a page,
I want them to share a variable, 'StaffID' which one part generates by
looking up the windows login name of the person viewing the page, and
then queries the database to find out the StaffID associated with that
name.
That part then shares it with all the other parts, using a class
called "IMessage", I have set up static connections for each
individual part,
The main part, Jobs_Main.ascx has this code:
<br />
Public ReadOnly Property Message() As String _<br />
Implements IMessage.Message<br />
Get<br />
Return StaffID<br />
End Get<br />
End Property<br />
<br />
<ConnectionProvider("Message", AllowsMultipleConnections:=True)> _<br />
Public Function GetMessage() As IMessage<br />
Return Me<br />
End Function<br />
to assign the StaffID (which is generated on Page_Load - I also tried
Page_Init and this made no difference)
and then the other parts use
<br />
Public _message As IMessage<br />
<br />
<ConnectionConsumer("Message")> _<br />
Sub SetMessage(ByVal message As IMessage)<br />
Me._message = message<br />
End Sub<br />
<br />
in the scripts and then:<br />
If (Not (_message) Is Nothing) Then<br />
StaffID = "" & _message.Message & ""<br />
Else<br />
StaffID = 1<br />
End If<br />
That all works beautifully. If I change the staffID manually on
Jobs_main(in the code) all the others update next refresh. However I
have put in a catalog, and when I close a web part (the part I was
trying was FavouriteLinks.ascx) then add it again, it defaults to the
StaffID of 1...
So I assume it is not getting the _message value, or it thinks the
_message value is 0 for some reason? Does anyone know why this would
be? Could it be that it is loading before the jobs_main web part? If
so how do I make it load afterwards?
|
|
|
|
|
hi all,
i want to detect all the pdf files link which are downloadable on webpage,
i need regular expression for that so that i can detect all the links.
can any one here to help me in that issue, i shall be thankful to my friend.
Regards,
Neo
|
|
|
|
|
Hi Neo,
i think there is no need for a regular xpression here... just take the string and check whether it ends with .pdf. thats it....
mareers
|
|
|
|