|
theJazzyBrain wrote: How about the dynamic CSS emition?
Could you please point me to more info about this technique?
http://www.codeproject.com/useritems/LocalizationHandler.asp[^]
Not exactly the same thing, but demonstrates the basic strategy. A simpler, but less elegant solution would be to just use inline CSS, added to the page at runtime as a LiteralControl, in this case you don't need custom handlers.
|
|
|
|
|
I'm sending a specially-formatted email to a UNIX system using System.Net.Mail through an Exchange relay server.
The entire message must be in plain text format, otherwise I see multiple instances of "=0D=0A" in all parts of the message (To, From, Subject and Body).
In classic ASP I turn off MIME using
With objMessage
.MimeFormatted = False
.BodyPart.ContentTransferEncoding = "base64"
Is there a similar means to turn off MIME in System.Net.Mail?
Thank you.
Rick Volberding
Knowledge Specialist
|
|
|
|
|
Hi,
In my application, i have an HTML image, on whose onclick event, i popup another page, which has a calender control. Now when user selects a date, how do i send that selected date back to the parent form and show in textbox?
Thanks
|
|
|
|
|
Hope this[^] article will help you.
Regards,
Satips.
|
|
|
|
|
Hi, i checked that article..as i'm new to asp.net, i don't understand where to put that code (window. opener) and how..could u help me out please?
Thanks & regards
|
|
|
|
|
Try by yourself if i says you will not know how it is done. First try it by yourself and tell if ther is any error post it here it says this error.
we are here to help you.
we could not do your work ok.
Regards,
Satips.
|
|
|
|
|
Hi,
In the onclick even of button i show "Javascript:ReturnDate()", ReturnDate has the window.opener code
but i get 4 build errors:
1. ) expected
2. Invalid expression term ':'
3. ; expected
4. Invalid expression term ')'
the code is written correctly..then why tat errors? ..kindly tell me what is wrong...
|
|
|
|
|
Did you code it properly.
I have done many Times. there is no error so for.
Let you paste your code we will check it out?
As per your Errors it shows nothing wrong in the functionality. seems you have missed semi-colon,colon, and the braces are different you have used.
Regards,
Satips.
|
|
|
|
|
I am inserting a row to the database through gridview, while doing this i placed an insert button in the footer of edit button column and textboxes to remaining columns the code works properly and a new roe is inserted in the database also.
The code is as fallows
protected void gv_rowcommand(object sender, GridViewCommandEventArgs e)
{
if (e.CommandName == "insert")
{
connection = new SqlConnection("user id=sa;database=pubs;datasource=system2");
adapter1 = new SqlDataAdapter("Select * from jobdetails", connection);
ds = new DataSet();
adapter1.Fill(ds, "jobs");
rec = ds.Tables["jobs"].NewRow();
rec[0] = Convert.ToInt32(((TextBox)GridView1.FooterRow.FindControl("TextBox4")).Text);
rec[1] = ((TextBox)GridView1.FooterRow.FindControl("TextBox5")).Text;
rec[2] = Convert.ToInt32(((TextBox)GridView1.FooterRow.FindControl("TextBox6")).Text);
rec[3] = Convert.ToInt32(((TextBox)GridView1.FooterRow.FindControl("TextBox7")).Text);
ds.Tables["jobs"].Rows.Add(rec);
bldr = new SqlCommandBuilder(adapter1);
adapter1.Update(ds, "jobs");
BindData();
}
}
up to now fine, but i don't want to display all the time the textboxes for that i placed insert button in edit column header and i written in the if condition
if (e.CommandName == "insert")
{
gridview1.showfooter=true
..........remaining code same
but the code gives error an input is not in correct format
if any one know the solution for this plz help me
Thank u...
|
|
|
|
|
Hello All,
How to list users and their corresponding roles in a gridview using asp.net 2.0 and c#. We are using inbuilt login controls provided in asp.net.
Thanks!!
Jagadeesh
|
|
|
|
|
Hi,
Currently tryiny to add localization to an asp.net project and have created the local resource files as required, it all seems to work but when i go from say english to dutch and the back to english again, all the words with special characters(like the one in this word => "benævne") will not revert back to their english form while the words without will, would be very grateful if anybody could shed some light on this problem,
thanks
gav
|
|
|
|
|
Please right click your mouse on your builded page and click Encoding and check whether it represent Western European(ISO). otherwise select it and then see it.
Regards,
Satips.
|
|
|
|
|
that worked perfect,
thanks very much,
gav.
|
|
|
|
|
Welcome.
Regards,
Satips.
|
|
|
|
|
Hello everyone..
I am working on ASP.NET 2.0, I am getting one problem in inserting the form.
In an asp.net webform page i have a textbox. I am providing an HTML tags in this textbox & then when i click any button or perform some server side task it corrupts the page and gives me error.
I think it is not allowing to insert HTML tags in textboxes.
Can anyone help me..plss its very urgent.
KHATRI
|
|
|
|
|
Refer to this link
http://www.velocityreviews.com/forums/t96473-html-tags-in-textbox.html
"If A is success in life, then A equals x plus y plus z. Work is x; y is play; and z is keeping your mouth shut." - Albert Einstein
|
|
|
|
|
Hi all,
I have number of textboxes on a form and a submit button. the form allows the user to change existing data in the database.
when a textbox is modified, i need to capture the changes done by the user and update the collection i've used to populate the text boxes and then to use the updated collection to update the database.
How to trace which textbox value is changed.i need to update only the values changed.
Plz give suggestions..
Thanks in Advance,
cheers
sangeet
|
|
|
|
|
I think one way is to crate a base class that drives TextBox class and implement OnTextChanged method in that class
<br />
public sealed class CustomTextBoxOnTextChanged : System.Web.UI.WebControls.TextBox<br />
{<br />
private bool isDirty = false;<br />
<br />
protected override void OnTextChanged(System.EventArgs e)<br />
{<br />
base.OnTextChanged(e);<br />
<br />
isDirty = true;<br />
}<br />
}<br />
<br />
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
I am using asp.net2/c# coding. I have a jscript page, can I add this script page into my asp.net?
|
|
|
|
|
u can use 'src' attribute of tag.
<script ... src="ur_js_path">
<div class="ForumSig"><hr>
<b><u>If U Have Interest, U Can...</u>
</b>
<u>Sherin Iranimose</u>
<hr>
</div>
|
|
|
|
|
|
Hi,
I have a site in which there are many pages. In every page there is a link called as contactus. If we set the authentication mode in web.config file as form authentication, we will be redirected to the login page how ever u try to access the other pages. But I want to give access to all for that page. How is it possible.
Plz help me if some onw knows....
Thanx,
Yamini
|
|
|
|
|
hi there,
you can look at AUTHORIZATION section in web.config file...more info here
<< >>
|
|
|
|
|
enjoycrack wrote: look at AUTHORIZATION section in web.config file..
His query is not user specific he want to show one page to all users without athentication .
Thanks and Regards
Sandeep
If If you look at what you do not have in life, you don't have anything,
If you look at what you have in life, you have everything... "
|
|
|
|
|
if so, just put the page to somewhere that no need authenticate when browsing this...
<< >>
|
|
|
|