|
mean extension
myworddoc.rtf
or any office document
rtf,doc,xls .....
ahmed eldeghedy
|
|
|
|
|
Hi friends,
I've one gridview in my application and i export that grid value into MS Word.But i need that MS word should be read only.I dont know how to done this?Plz help me.
Thanks in advance.
Regards,
Venkat
|
|
|
|
|
Is this even an ASP.NET question ? I don't think so. You can mark a file as read only on the file system, but if you want to create documents that can't be edited, use PDF.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
Thanks for ur reply.
But i dont know how do i mark a file as read-only?
Can u explain it briefly?
Thanks in advance.
|
|
|
|
|
Here is the scenerio.. I want a customer to find their name and address in lets say a listbox and when they select it their customerID will go in a new form.. After their customerID is in the new form they can finish typing in the other fields in the form and then insert into the SQL table.. The two tables involved are called.. tblCustomer and tblServiceQuote..
I'm very new to ASP.net so I need this as simple as you can provide it..If you tell me I need to do some kind of event I need to know if I should do it in VB or in Javascript.. If I need to write a query where do I write it? What do I name my controls?
Sorry but I'm so new I no very little..Thanks
|
|
|
|
|
Hi,
This is Nishant .....
A customer when select His name on ListBox and click on a submit button
write the following Code on the Button Click event ..........
protected void btnSubmit_Click(object sender, EventArgs e)
{
Resopnse.Redirect("NewForm.aspx? CustomerID="+ListBox1.SelectedItem.Value.ToString());
}
and on NewForm.aspx.cs
you can retrieve the Query String as Follows
Request.QueryString["CustomerID].ToString();
|
|
|
|
|
Thanks, on the part that says..."newform.aspx?..is that the name of the form.. what is the question mark for?
Thanks,
Cheryl
|
|
|
|
|
cheryl6372 wrote: what is the question mark for?
It is a delimiter telling the values being passed to the next form and their appropriate variable.
You could also use session variables to store the customerid...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
also, when I paste your code in the the btn click event it says"end of statement expected" what am I missing? see below
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
protected void btnSubmit_Click(object sender, EventArgs e) { Resopnse.Redirect("NewForm.aspx? CustomerID="+ListBox1.SelectedItem.Value.ToString()); }
End Sub
End Class
|
|
|
|
|
It is because he gave you a C# version and you are using VB.NET. The code should be:
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
Response.Redirect("NewForm.aspx? CustomerID="+ListBox1.SelectedItem.Value.ToString())
End Sub
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I explained this to you in depth the other day. You need to buy a book and work through it, so you have at least some basic knowledge to apply to the answers you are given here.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
I have a TextBox and a Button in my page. I'd like to print only the textBox content when the user clicks the button, the browser print dialog may show, i don't really care, the only thing important to me is not sending the standard html printed header nor the footer with the page url. I just want the textbox content printed, it can't be changed by the browser, nor having anything added to.
Thanks,
Dirso
|
|
|
|
|
The only way you can do this, is to show a new window with the text you want to print, and then print that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
That would be ok for me, my problem is that when I print any internet document, it usually has it's own format, like it has the internet page header and a footer with the url right? I know it depends on the browser the customer is using but I have to print ONLY the text I'm showing, nothing more. I'm actually constructor printer commands, so any characters or symbols the browser "decides" to print other than what I tell would generate printer errors.
|
|
|
|
|
You get NO control. The end. The browser prints, and that's it. Not unless yo uwrite an activeX control or something. But, if it prints a title, it's bound to be the document title, so make that blank. Go to a site like expedia or your bank. They will give you a print view. Look at the HTML to see how they construct it to print the way it does.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
I want to hide "javascript:_dopostback()" message in status bar while clicking the Linkbutton. Please give me an idea.
Thanks.
|
|
|
|
|
You can't. Why would you want to ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
First, I used LinkButton in my project to transfer the page. But in some browsers javascript may be disabled. In that situation Linkbutton won't work. So, I used Button to transfer the page. If the button's caption is too long it won't wrap the text. So, I tried for ImageButton and placed the text to be displayed as link in "Alternate Text". It works fine in Mozila i.e. if the link is for 4 lines, the imagebutton automatically resized. But in IE 6 a cross mark is displayed for the image not given and the link text didn't resized.
Now my problem is which control to select for displaying the links. Please give me an idea.
Thanks.
|
|
|
|
|
If you want to work where there is no javascript, then just use pure HTML for your links. However, I'm not sure how much ASP.NET is going to work without javascript, you're going to have to test everything and assume nothing.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I have text box to which I want to assign a required filed Validator like
But I want to get the error message from code behind like
<asp:textbox id="TextBox1" runat="server" xmlns:asp="#unknown">
<asp:requiredfieldvalidator id="RequiredFieldValidator1" runat="server" controltovalidate="TextBox1" xmlns:asp="#unknown">
ErrorMessage='<%=ErrorMessage %>' //get from codebehhind ValidationGroup="grpNew">
But I am unable to do this I know this is rather simple from codebehind like
In codebehind
TextBox1.ErrorMessage= ErrorMessage //( where error message is public property from )
How can I achieve same thing from aspx page . I found one way like using page.databind , but this effects the view state of other controls so please any one help me.
Or it would be better also if some one could tell me how can I assign error message property for textbox in aspx (html) page ( taking error message from global resources file)
|
|
|
|
|
can one guid me how can i print formated text...???
i m using infragistic htmleditor and i want to print its body area as it is any sugession????
umerumerumer
|
|
|
|
|
You have no control over printing via a website.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
How to give two headers lines in datagrid like parent header and child header. For Example, 'Fruits' should be the parent head. Apple, Orange and Mango should be the child head.
Tnx in adv.
Balasubramanian K.
|
|
|
|
|
You would be best to use repeaters to get that level of control, with a nested table.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Hi,
I have found that we need to supply the coordinates for different hotspot controls. Do we have a tool, which will tell us the coordinates for the diffrent parts of a picture.
Many thanks for you help....
|
|
|
|