|
Hi,
i had to run the code in local server after copying it from a shared folder.i am not able to access it at all the error message i am getting is web access failed as the default web access is shared mode.How to change the mode.or other error message is required components are not loaded in the local server.Please help bcoz seriously i am not able to continue with my work
Sowmya
|
|
|
|
|
HI
Try to open with .sln file
OR
try with creating a Virtual Dir. for u r copyed folder
Keerthi
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Hi,
i tried by creating a virtual directory but i got the same error
sowmya
|
|
|
|
|
HI
Ok
try this just create a new solution and Add Existing Items(Copy folder
Files)
But it shd work open with .sln or Virtual dir
Keerthi
asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf
|
|
|
|
|
Hey I thought it was possible to place an asp textbox inside a table but i cannot seem to get it to work.
Is it possible and if so can any one point me in the direction?
Thanks
Dan
|
|
|
|
|
Yes, it's possible to place a textbox inside a table, you simply add a html table[^] (not the server table[^] control) to the web page, add the tr, td stuff to the table and finally add the textbox. You basically use the server table control to add dynamic controls in code-behind.
|
|
|
|
|
eg.
I think therefore I am
--~--~---------~--~----~------------~-------~--~----~
My Blog and Website:
http://www.cnblogs.com/pinzui/
http://www.pinzui.cn
http://jnlinux.org
--~--~---------~--~----~------------~-------~--~----~
|
|
|
|
|
Hi,
In my code I would like to update my gridview with a client callback to the server (update, insert and delete).
Client callback just returns a string, how would I use that to say insert a new row, update a row? Can I use data source control from javascript?
Thanks
Ben
|
|
|
|
|
Hi there. Have you tried using the GridView control with the Microsoft Ajax[^]?
|
|
|
|
|
sorry I'm using asp.net 2.0
|
|
|
|
|
i think there is no conflict between asp.net 2.0 and asp.net ajax . using asp.net ajax could done this work perfect.
I think therefore I am
--~--~---------~--~----~------------~-------~--~----~
My Blog and Website:
http://www.cnblogs.com/pinzui/
http://www.pinzui.cn
http://jnlinux.org
--~--~---------~--~----~------------~-------~--~----~
|
|
|
|
|
I am using Visual Studio 2005 / .Net 2.0 / WinXP SP2 / IIS 5.x on Win 2000 server w/ SP3
It works fine on unsecured/public servers
I am writing a browser hosted image viewing application/control for viewing waaay oversized images (usually ~4000X4000 at 300dpi) that should work in both browser pages, secured or not, and in applications. It has the ability to scale/rotate/move the image around as well as the ability to email/fax one or more loaded images. When the user allows full unrestricted trust, it can interact with Outlook to email images. When the trust is below that, it uses SMTP to direct send the email with attachments.
The component works fine on all servers on which I have tested, including all email options, except when run from a secure (https) site.
On an https/secure site, when I set the policy below full trust, and I attempt to email, it uses SMTP as it should. However, when it tries to create the SmtpClient object (obj = SmtpClient(<host>)), I get the following exception during the call:
System.Xml.XmlException: '>' is an unexpected token. The expected token is '"' or '''. Line 2, position 63.
Originally, it complained the error was coming from a file called "iexplore.exe.config", however this file does not exist anywhere. I followed MS MSDN configuration suggestion and added a configuration link to the ASP.NET page and creating a "config" for my application. Now I am still getting the same error, but from the apps' config file, which only has an empty "configuration" tag at this point. I cannot seem to find anything else useful online about this (most google searches give me mostly useless unrelated junk).
If it helps, here is the exact error message I get:
--------------------------------------------
Configuration system failed to initialize
System.Configuration.ConfigurationErrorsException: '>' is an unexpected token. The expected token is '"' or '''. Line 2, position 63. (https://[host]/x/[assembly].config line 2) ---> System.Xml.XmlException: '>' is an unexpected token. The expected token is '"' or '''. Line 2, position 63.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.DtdParserProxy.System.Xml.IDtdParserAdapter.Throw(Exception e)
at System.Xml.DtdParser.Throw(Int32 curPos, String res, String[] args)
at System.Xml.DtdParser.ThrowUnexpectedToken(Int32 pos, String expectedToken1, String expectedToken2)
at System.Xml.DtdParser.ParseExternalId(Token idTokenType, Token declType, String& publicId, String& systemId)
at System.Xml.DtdParser.ParseInDocumentDtd(Boolean saveInternalSubset)
at System.Xml.DtdParser.Parse(Boolean saveInternalSubset)
at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Configuration.XmlUtil..ctor(Stream stream, String name, Boolean readToFirstElement, ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
Additional:Configuration system failed to initialize
-------------------------------------
Here is additional info from the exception I am outputing as well...
Data:System.Collections.ListDictionaryInternal
@ System.Configuration,System.Object GetSection(System.String),,0
-- modified at 19:56 Wednesday 20th December, 2006
|
|
|
|
|
<b>I fixed this problem and it's not longer an issue.</b>
I renamed the PageHTML literal to Literal1 and it works. I haven't researched it but my gut
feeling tells me I'm using the PageHTML literal in the master page this page derives from
and that's a problem I'd guess.
Anybody see what I'm doing wrong with my asp:Literal "PageHTML"? Oddly enought "CommentsHTML" shows up fine. But PageHTML is always blank. Another odd one is that I can put any text I want after the closing literal tag for PageHTML and that text appears fine. So it must be something inside the PageHTML from the DB but what?
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div>
<br />
<table align="left" style="width: 448px; position: relative; top: -19px; height: 320px">
<tr>
<td rowspan="2" style="width: 179px; height: 237px" valign="top">
<asp:Image ID="Image1" runat="server" Height="228px" Style="position: relative" Width="172px" /></td>
<td align="left" rowspan="2" style="height: 237px" valign="top">
<asp:Literal ID="PageHTML" runat="server" /></td>
</tr>
<tr>
</tr>
<tr>
<td colspan="2" style="height: 21px">
<asp:Literal ID="CommentsHTML" runat="server" /></td>
</tr>
</table>
</div>
</asp:Content>
Here's the contents I'm passing into PageHTML:
<p><font face="Arial, Helvetica, sans-serif" size="2"><strong>Mrs. Jane Wilson<br />
</strong>Mrs. Wilson has been at Bishop Kelly for 29 years. Ms. Wilson is a member of the Art Department.</font></p>
<p><font face="Arial, Helvetica, sans-serif" size="2"><strong>Email</strong><br />
<a href="mailto:jwilson@bk.org">jwilson@bk.org</a></font></p>
<p><font face="Arial, Helvetica, sans-serif" size="2"><strong>Education </strong><br />
Bachelor's in Art Education from Washington State University.<br />
Master's in Art Education from Boise State University.</font></p>
<p><font face="Arial, Helvetica, sans-serif" size="2"><strong>Class Schedule</strong></font></p>
<ol>
<li><font face="Arial, Helvetica, sans-serif" size="2">Art/Painting</font> </li>
<li><font face="Arial, Helvetica, sans-serif" size="2">Pottery</font> </li>
<li><font face="Arial, Helvetica, sans-serif" size="2">Pottery</font> </li>
<li><font face="Arial, Helvetica, sans-serif" size="2">Prep</font> </li>
<li><font face="Arial, Helvetica, sans-serif" size="2">Pottery</font> </li>
<li><font face="Arial, Helvetica, sans-serif" size="2">Pottery</font> </li>
<li><font face="Arial, Helvetica, sans-serif" size="2">Advanced Placement</font> </li>
</ol>
<p><font face="Arial, Helvetica, sans-serif" size="2"><strong>Clubs/Programs</strong></font></p>
<ul>
<li><font face="Arial, Helvetica, sans-serif" size="2">Art Club</font> </li>
</ul>
-- modified at 16:33 Wednesday 20th December, 2006
|
|
|
|
|
Now if I replace all the HTML in the DB with plain text "Plain text." it still won't show. But if I type "Plain text." after the closing literal it shows right up? So I guess it's something in my ContentPlaceHolder HTML...
|
|
|
|
|
Hi Rex,
You can view source the web page and see if the text stored in DB is brought back to the client side from the server?
|
|
|
|
|
I modified my first post that I figured this out but because I disabled HTML in it it's hard to spot. Have a look at the very top of my first post and tell me if my conclusion makes sense. I'm thinking the fact I was using an ASP:LITERAL of the same name in the master page was the problem. I renamed the literal after I realized this and it seemed to fix things.
|
|
|
|
|
In fact, you're still able to use the literal control on the content page with the id "PageHTML" even you already define another "PageHTML" literal on the master page. That's because they are in the different naming containers, so the UniqueID values of the two controls are different and you basically no need to worry about the name conflict. What I'm thinking is that you might have set the text to another literal control on the content page and this control is not in the page's control hierarchy, as a result of that the text is not rendered to the client side.
|
|
|
|
|
I'm working on a faq/help page for an online application, and I bound an XmlDataSource to a treeview to simplify future revisions of the questions. It's pretty simple. The code is simply:
<asp:TreeView ID="TreeView1" runat="server" DataSourceID="AppHelpXmlDataSource" ImageSet="Faq" ShowLines="True" ExpandDepth="1">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="Purple" />
<SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="DarkBlue" HorizontalPadding="5px"
NodeSpacing="0px" VerticalPadding="0px" />
<DataBindings>
<asp:TreeNodeBinding DataMember="apphelp_questions" TextField="TEXT"/>
<asp:TreeNodeBinding DataMember="question" TextField="TEXT" />
<asp:TreeNodeBinding DataMember="answer" TextField="TEXT" />
</DataBindings>
</asp:TreeView>
<asp:XmlDataSource ID="AppHelpXmlDataSource" runat="server" DataFile="~/applicationhelp/questions.xml">
</asp:XmlDataSource>
---------------
And the XML File looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<apphelp_questions TEXT="Please select your question:">
<question TEXT="How do I do this?">
<answer TEXT="This is how you do this."></answer>
</question>
</apphelp_questions>
---------------
This renders a nice treeview, but I don't want the users to be able to collapse the root node. I want it to display the "Please select your question:" text, and the text of the questions, and allow the user to expand the answers to each question. Is there any way to do this without hardcoding the root node text in the aspx file?
|
|
|
|
|
I have a gridview with a link in the parent page.when i click on the link it opens up another gridview.this child gridview has 2 columns,one is a checkbox created using an itemtemplate and another a boundfield retreiving data from the database.what i want is when i check the checkbox of a particular row and hit a button,the data existing in that particular row of the child gridview which has been checked,has to transfer the data from that row to the parent gridview,in a sense the parent gridview has to refresh and show up with the new data that has come from the child gridview control.How can i do this?..........urgent..........
hi
|
|
|
|
|
hi,
I want to pass some text data to FLASH from ASP.NET and I dont know how to emit simple and plain text from ASP.NET page rather than emitting a whole HTML page. My programming language is C#.NET 2.0
I appreciate your co-operation.
Thanks and regards
Emran
|
|
|
|
|
You can create a new WebForm completely free of markup, then override it's Render method:
protected override void Render(HtmlTextWriter writer)<br />
{<br />
writer.Write("This is the only content I want to emit to the browser.");<br />
}
|
|
|
|
|
Hi, Thanks and I appreciate your response.
Regards
Emran
|
|
|
|
|
Hello.
I need to create application using VB.NET that will parse csv file and import data into the database. I tried to read csv file but it returns funky characters. Did anyone had experience with this.
Thanks in advance.
Alex.
|
|
|
|
|
if you are using sql server it is so much easier to create a dts package, use the vb.net app to save the .csv file to the proper location then call the dts package from you app.
Other wise check here for a C# example that you can convert to vb.net.
|
|
|
|
|
Hi Everyone:
I have a unique requirement. I need to display data in a gridview and be able to add, edit or delete records from a web page using the gridview control.
The web control "FormView" will do all the operations, but it only shows one record at a time. The Gridview control shows all the records and will allow the user the ability to edit and delete records, but not add new ones.
Does anyone know how to combine the viewing capibilities of a gridvierw control and the record operations of the FormView into a single control?
Thanks in advance,
Mark McCumber
|
|
|
|