|
thanks ,but pls confirm i think it does not allow the user to type the text.
|
|
|
|
|
Hi,
I am using the datagrid and in one datagrid column I have used another datagrid. So how can I find that datagrid and bind data to that.
can any one give me solution for this??????
Thanks to all
|
|
|
|
|
you can just search for how to crete relations in asp.net
|
|
|
|
|
In gridview you can do it following manner:
On Rowdatabound:
protected void ParentGridView_RowDataBound(object sender, GridViewRowEventArgs e)<br />
{<br />
if (e.Row.RowType == DataControlRowType.DataRow)<br />
{<br />
GridView ChildGridView = (GridView)e.Row.FindControl("NestedGridView");<br />
}<br />
}
Here "NestedGridView" is the gridview Control have created in aspx file.
And "ChildGridView" object which you have created to play in .cs file.
Hope This will help you.
|
|
|
|
|
In this article: "Encrypting and Decrypting Configuration Sections [^]" we discover how to use Aspnet_regiis.exe to Encrypting and Decrypting web.config sections.
My problem is that it works using a machine-specific key, so I cannot encrypt the web.config and then send to a remote server (like in shared hosts, when the website is hosted in a shared ISP).
I remember some time ago that I saw a good tool where I inform the password in a Windows Forms GUI, that returns the base64 encrypted password. So, I can use a simple function to decrypt from web.config im my Asp.net code.
I can't find that tool anymore. I don't remember neither the site or the name.. Can someone help me?
For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life.(John 3:16)
|
|
|
|
|
I need to display a Treeview control with nodes representing values that can be outdated. I want to display the outdated nodes in red, and the rest of the nodes in light green. I guess the object TreeNode must have a Style property or so, but I can't find it. Please, I would greatly appreciate any suggestions!
|
|
|
|
|
Hi All,
I am experiencing problems with a .net web page...
It seems that when i put in a dropdownlist with a high item count the page freezes up on post back.
I was just enquiring as whether anybody else has experienced this problem and if so could they offer a solution.
Thanks
|
|
|
|
|
joesolly wrote: high item count the page
How many items are there in your drop downlist ?
Even you have 100 or 200 it should not give any problem
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... "
|
|
|
|
|
Hi,
There are over 16,000 items in the drop down list when i remove the control everything works fine but like i said when it is there the page just freezes up...
Regards
|
|
|
|
|
OOPS then its going to happen i don't have any suggestions for this only GOD and guru can help you
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... "
|
|
|
|
|
The item count in the drop down list is over 16,000... yes i know it is alot
|
|
|
|
|
Its waste by loading 16,000 items in the Dropdown list just laod all the contents in the DB abd activate it using the Ajax or atlas to the front end.
SSK.
Anyone who says sunshine brings happiness has never danced in the rain.
|
|
|
|
|
Hello All,
I am a newbie to .NET and SQL...have been hiding under the rock of Ph.D. studies...
I have a ASP.NET web page with a GridView control on it and I want to display the total number of records in the whole table. I am a newbie to .NET, Databases, SQL, and ASP.NET.
I've seen this posted elsewhere, however I can't make sense of the answers because they assume familiarity with databases. I don't know my DataSet from my DataView from my elbow. If anyone would be willing to give me a hint, I would be greatly appreciative.
Thanks so much.
Sincerely Yours,
Brian Hart
Department of Physics and Astronomy
University of California, Irvine
|
|
|
|
|
My crystal report viewer control has the toolbar enabled, and I fixed it so the images now display.
When I click the Export or Print buttons, nothing happens. I don't see anywhere to override their function either.
I notice many sample report pages contain a separate Print button which handles this. I'd avoid this if possible.
"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit..."
"There is no one who loves pain itself, who seeks after it and wants to have it, simply because it is pain..."
|
|
|
|
|
There is formA.aspx having grid and many controls. Now, there is another requirement that there needs to be another textbox and button on top of the form on the basis of which the formA will be populated. This should be formB.
I dont want to add everything on formA into formB. Just want to call formB from formA without redirecting to another page.
How can I do this without using usercontrol becoz this is just needed once and putting it as a user control will be my last chance.
Can you suggest simple method other than going for MDI?
Thanks
|
|
|
|
|
There's no such thing as MDI in ASP.NET. Just add the textbox and button and set their visibility. Or make the user control, it's not hard.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
can anybody plz help me find errors in this code. i am trying to send an email but i really cant. i cant figure out why..
protected void btnSubmit_Click(object sender, EventArgs e)
{
MailMessage message = new MailMessage();
message.To = txtTo.Text;
message.From = txtFrom.Text;
message.Subject = txtSubject.Text;
message.Body = txtBody.Text;
try
{
SmtpMail.SmtpServer= "localhost";
SmtpMail.Send(message);
litStatus.Text = "Your email has been sent";
}
catch (Exception ex)
{
litStatus.Text="Error sending email";
}
}
}
kaaj
|
|
|
|
|
SmtpMail may require a user name and password as well as a valid from recipient. Also, is your local IIS setup as SMTP?
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
SmtpMail is obsolete in .net 2.0.
Maybe try using the SmtpClient instead. So...
<br />
SmtpClient client = new SmtpClient( "localhost" );<br />
client.Send( message );<br />
|
|
|
|
|
i think these modifications will make it work
protected void btnSubmit_Click(object sender, EventArgs e)
{
MailMessage message = new MailMessage();
message.To.Add(new MailAddress(txtTo.Text, "any user Name");
mMail.From = new MailAddress(txtFrom.Text, "any user Name");
message.Subject = txtSubject.Text;
message.Body = txtBody.Text;
try
{
SmtpClient sm = new SmtpClient();
sm.Send(message);
litStatus.Text = "Your email has been sent";
}
catch (Exception ex)
{
litStatus.Text="Error sending email";
}
}
}
in web.config, configure smtp
think this shud work
CST
|
|
|
|
|
I have been scouring Google for an answer, and cant seem to get a simple one. I am very familiar with using threadpool.queueuserworkitem with windows forms. I have a clear understanding of using delegate methods when interacting with an object that doesn't necessarily belong to the various threads, say each thread is building a row of a datatable
However, I have been having a hell of a time finding code that will do this for asp.net. does anyone have a working example of a multithreaded web app, or could point me in the right direction?
______________________
Mr Griffin, eleventy billion is not a number...
|
|
|
|
|
Use a call back or an asynchronous page. However, be very careful, threading in an ASP.NET application needs a very specific intent and purpose. Normal thread logic does not apply.
In fact, I would recommend against it in 99.99% of cases.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
all of my tests have blown up in spectacular fashion, so I am awar eof the dangers
the page i am writing is running, then getting the html from a particular page perhaps hundreds of times. the idea so far has been to allow me to re-use an exisiting page in our app rather than rewriting the code from it in a new page that would then repeat it.
It works like this:
we have a page that uses a querystring to request information from the db. it has a specific formatting to it. The project i have been assigned is to runa query with specific parameters, and then build a page that is a composite of all the pages that "would" be generated by the query results if they were run individually, have them marginally reformatted to break for each printer page, and then launch the print window via javascript.
this is pretty monumental to begin with, but the way i have built it so far runs the query, then loads the "other" page and scrapes the body of it and adds it to a datatable. This works great, except when i run the full query, it takes 20 minutes to load the page. Obviously, this is unworkable. I would like to launch each item in a thread and as they finish rendering, add them to the datattable, then return the whole thing.
does that sounds like a good candidate?
______________________
Mr Griffin, eleventy billion is not a number...
|
|
|
|
|
A query that takes 20 minutes is likely in error.
If you insist on this track then I would suggest you need a temporary storage medium for the results, ala session. Then you can poll the session with either ajax or an asynchronous page to update the data table.
I, however, would rework the query.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
the query is actually lightning fast, its building the page after the fact that is taking forever.
However, my boss gave me the best solution:
Let them wait. Apparently this thing will run once a month, so they can just deal with the wait.
______________________
Mr Griffin, eleventy billion is not a number...
|
|
|
|