|
Hi There.
I´d like to know, how to pass Ojects like a GUID to a ObjectDataSource via a WebControl. In my case, its a GridView.
The Tableadapter likes to have a GUID but I can only give it simple types. Is there a workarount for that?
Thanks in advance,
Brokit
|
|
|
|
|
Dim policy As Policy
Dim policyToken As Guid
policyToken = Guid.NewGuid
Session.Add(policyToken.ToString, policy)
Response.Redirect("UploadFile.aspx?PolicyToken=" & policyToken.ToString)
==========
postmaster
www.programmingknowledge.com
-- modified at 9:23 Monday 31st July, 2006
|
|
|
|
|
Hello,
I have following code for providing download of file.
byte[] bytes = this.ContentController.GetFileContents(_filePath);
Response.Clear();
Response.AddHeader("Content-Disposition", "attachment;filename=Document.pdf" );
Response.AddHeader("Content-Length", bytes.Length.ToString());
Response.ContentType = "*/*";
Response.BinaryWrite(bytes);
This provides a messagebox on browser with Open/Save/Cancel button.
When I click on save, this saves the document on the disk, and I can open that.
But when I click on Open, this does not open the document. A prompt from PDF reader says, file not found.
How can I getrid of this problem.
Any help is appreciated.
Thanks in advance.
- ashish
|
|
|
|
|
You could try putting a Response.Flush() at the end of your code there.
|
|
|
|
|
Even after adding Response.Flush() I am getting the same problem.
Additionally, I am haiving this eventhandller written in User control which is placed on a view (Web form). I am also using Masterpage and UIP Application Blocks.
- ashish
|
|
|
|
|
how i can upload only text file using file fild in asp.net 1.1
omi
|
|
|
|
|
you may like to have file type check when you receive the uploaded file.
If incase system receive file other then TEXT, you can reject the file.
Hope this helps you!!!!
- ashish
|
|
|
|
|
How to use FCK Editor in asp.net .can any one give me the example project using FCK Editor
DPM
|
|
|
|
|
hi i have use the FCKEditor in Asp.net.
Have u got the control of FckEditor on Webpage and Wanna to store the value of Fckeditor in Database.
Let me Know may be i help u
byee
|
|
|
|
|
I think that FCKEditor contains some samples, you can learn from them.
Or you can check online documentation: http://wiki.fckeditor.net/
I can not send you my project, as it is not my, but belongs to a company I work for. If you can specify what exactly you would like to know (and didn't find in documentation ), just write it down here and if I know, I'll give you an idea.
Yeah, and another knowledge base can be found on sourceforge: http://sourceforge.net/projects/fckeditor/
Pilo
|
|
|
|
|
Actually i want to know how to use this editor.Brifly want to know how to open a aspx page within the editor only when the administrator wants to edit the page then save it .Where the modified page is saved in a database containing its elements or overie on the server.
when a try to upload a image in localhost it gives an error "XML request error :Internal server error(500)"
Please help
-- modified at 0:52 Tuesday 1st August, 2006
DPM
|
|
|
|
|
heh, you have to create a page, which contains FCKEditor control. On this page u can access content of editor by myFCKEditorControl.Value
creating page: http://wiki.fckeditor.net/Developer%27s_Guide/Integration/ASP.Net
keep in mind, that you have to disable request validation, otherwise .NET framework throws exception, something like 'Potentionly dangerous request' or so. you can do it in web.config, or in <%@ Page ... %> block
Save to a database is your job, just take html from control, wrap it into binary format and save it. Note that images are saved on server.
I don't remember if I saw error like this when developing my FCKEditor application, so I can not help u with it. But at least check if IIS user is allowed to write to a folder which contains images.
Again, I recomend u to read documentation, I gave you links in my previous post. It is very usefull, and I can not help you better.
But if you don't understand something, or can not find it, ask me
Pilo
|
|
|
|
|
I done every thing as given by wiki.fckeditor.net but it still gives the error .Have u seen the Nukedit.com which uses the FCKeditor for ASP Application ! Can we make exactly the same thing in asp.net?
DPM
|
|
|
|
|
I'm sure you can have the same results using ASP.NET as using ASP.
But I can't help you with this error, as I don't know where it is raised. I suppose it is somewhere in a javascript, isn't it? You have to debug it (I know, debugging js is a pain ) and see where this error occures. I think it could be a problem with reading configuration files for FCKEditor, since it is xml error, but I'm not sure. Try to identify at least a file of this error origin. Then I can take a look in my code and see what can be wrong there.
|
|
|
|
|
Hi
When i place following html in aspx page at source view, then i switch to design mode i get message
"Design view does not support creating or editing framesets, To create or edit framesets use Source Window"
<p id="p1">This HTML frameset displays multiple Web pages. To view this frameset,
use a Web browser that supports HTML 4.0 and later.</p>
Any idea
Know Yourself Then Grow Yourself.
|
|
|
|
|
Seems fairly straightforward - the DESIGN VIEW doens't support frames - you'll have to code them manually in the HTML source code
"Now I guess I'll sit back and watch people misinterpret what I just said......"
Christian Graus At The Soapbox
|
|
|
|
|
Thanks its working
Know Yourself Then Grow Yourself.
|
|
|
|
|
|
Try following:
<asp:LoginName ID="loginName" Runat="server" />
string str = loginName.Text
Hope this helps you!!!!!
-- modified at 7:41 Monday 31st July, 2006
- ashish
|
|
|
|
|
hi
are You using Login Control of Asp.net then Go to Properties of Login Control and Find the Loginname then u can use the value of Loginname.
like
string str= Loginname.text
i hope i got ur problem if not then tell me
byee
-- modified at 7:47 Monday 31st July, 2006
|
|
|
|
|
There is an error. 'System.Web.UI.WebControls.LoginName' does not contain a definition for 'text'
thanks in advance. Much appreciated.
|
|
|
|
|
Hello, This is my problem i have a GridView to show bound Data, but i want to edit insert data to but with a form that is inside a Grid view is it possible.
|
|
|
|
|
Use a TemplateField instead of a BoundField for maximum control over the editing template.
|
|
|
|
|
|