|
To prevent DoS Attacks, ASP.NET breaks the Request when the size of the incoming stream is more than that configured for the application.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I have small project that retrieve Data from Database and fill Datagrid On Page Load. I add Databound Columns for each Columns in the database, and set The AutoGenerateColumns=False, So My Data will be Displayed lik this
StudentName CourseName
John asp.net
Mary mcse
Komar MCSD
Komar A+
Komar 3D Studio
... I need to make Komar appears just one time, so the result Should be like this in the DataGrid
StudentName CourseName
Komar MCSD
A+
3D Studio
How Can I do This, some help Please.
|
|
|
|
|
add DISTINCT to your query for StudentName, this should then just select one unique student name.
|
|
|
|
|
A data grid is not the right choice for this. Use nested repeaters and build two collections, one of names, and one of courses for that name.
Or you could just handle the data bound event for a row, and erase the name if it's the same as the last name displayed.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
As iam new to the .net world. So my requirement is i want to add 4 columns to the griview with different controls in the gridview. i.e.,in the 1st column i want to place the "CheckBox", in the 2nd column "DropDownList with data binding to it", in the 3rd coloumn a "TextBox" and in the 4th column a simple "Text". I request everyone in the forum that its my first assignment so kindly give response immediately. code is also required.
Regards,
Sami.
|
|
|
|
|
Samiullah wrote: so kindly give response immediately. code is also required.
This is a forum which is used to ask questions about coding errors you have encountered through creating an application.
We are not a code charity.
Do you want the gridview to be created at runtime or do you just need it to appear on page_load?
|
|
|
|
|
Ok, I want my gridview to be appeared on page_load with all the four columns.
|
|
|
|
|
Check these articles out, a good starter:
http://www.codersource.net/asp_net_grid_view_whidbey.aspx
http://www.devx.com/dotnet/Article/22141
|
|
|
|
|
// Tell me how where i am going wrong
public int InsertMake(Create_make_bean makedetails)
{
String connectionstring = System.Configuration.ConfigurationManager.ConnectionStrings["connectionString"].ConnectionString;
using (SqlConnection con = new SqlConnection(connectionstring))
{
String strquery;
strquery = "insert into year_tb (";
strquery += "year,make,model";
strquery += ") ";
strquery += "values(@year, @make, @model)";
SqlCommand cmd = new SqlCommand(strquery, con);
cmd.Parameters.AddWithValue("@year", 'N'+makedetails.year);
cmd.Parameters.AddWithValue("@make", 'N'+makedetails.make);
cmd.Parameters.AddWithValue("@model",'N'+makedetails.model);
try
{
con.Open();
int inserted = cmd.ExecuteNonQuery();
return inserted;
}
catch(Exception ex)
{
return 0;
}
finally
{
con.Close();
}
}
}
|
|
|
|
|
use nvarchar data type to store unicode characters. By the way is this code makes any errors?
|
|
|
|
|
sorted out, i am using year as column name and year in mssqlserver is reserved
|
|
|
|
|
hi
i have one webservice o remote server,i created one proxy for the webservice on my client machine. i added one webapplication in the same solution of proxy.my problem is ,i want code for webapplication to invoke webmethods from proxy.
thanks.
madhavi.kona
|
|
|
|
|
Hi,
Create an instance of the proxy class in your webapplication and then access the webmethods through the instance
<br />
File:WebProxy.cs<br />
Class WebProxy<br />
{<br />
DepositAmount(){ }<br />
}<br />
<br />
File: WebApplication.SomeFile.aspx.cs/cs<br />
Class SomeFile<br />
{<br />
WebProxy wPxy = new WebProxy();<br />
wPxy.DepositAmount();<br />
}<br />
|
|
|
|
|
Hi,
Created instance of proxy and calling webmethods in webapplication.but getting the below exception:
exceptionSystem.Web.Services.Protocols.SoapHeaderException: Server
unavailable, please try later at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse
(SoapClientMessage message, WebResponse response, Stream responseStream,
Boolean asyncCall) at
System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters) at
TTL.Noads.Client.UIBridge.ClusterWS.ClusterWSWse.ReadTestMessage() in
C:\kona\documents\uibridge\TTL.Noads.Client.UIBridge\Web
References\ClusterWS\Reference.cs:line 445 at
TTL.Noads.Client.UIBridge.ClusterManager.ReadTestMessage() in
C:\kona\documents\uibridge\TTL.Noads.Client.UIBridge\ClusterManager.cs:lin
e 57 at TestApplication.Test.Page_Load(Object sender, EventArgs e) in
C:\kona\documents\uibridge\TestApplication\Test.aspx.cs:line 26
please help me
madhavi.kona
|
|
|
|
|
I want to use online chat program in my web application. I need the following things should avail in that.
1. How to set and display the online members who are there in my application.
2. Authorized members can chat with other online members.
3. How to find the online members?
4. while chatting with others, i want to intimate the popup window to the recepient user. so they can assume that somebody wants to chat with them.
I need some sample code in Asp.Net2.0 with C# for this program.
Anybody can help me how to write code for this.
Thanks and Regards,
r mohan.
|
|
|
|
|
Check this article
http://www.dotnet-guide.com/create-chat-application.html[^]
Or google can give you n number of good articles
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... "
|
|
|
|
|
Member 2681661 wrote:
I need some sample code in Asp.Net2.0 with C# for this program.
I dont think so..
|
|
|
|
|
Hi.
I need to access data in a text box that's appears on screen and check data that's appears on screen too.
I was trying with screen scraping but i don't now how to access data in text box wen i haven't the text box name and to make a click on a botton.
may be this is no the way even, but I need to simulate a single user on web page, as many programs do with mails for example.
I hope i explained my self.
thanks.
|
|
|
|
|
Quit incertain about what you have explain ?
If i am not wrong then you have a Textbox which don't have any ID and now you want to get text present in that TextBox ,
Are you adding TextBox runtime ?
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 you arent adding the textboxes at runtime then give the textbox an ID and use that. Even if you add them at runtime Im sure you can still assign an ID to them then
|
|
|
|
|
Yes Man,
you are right but replied to wrong person
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... "
|
|
|
|
|
Sorry its a bit early in the morning still!
|
|
|
|
|
Thanks you.
i neet to set the text in the textbox, then make an enter or click and after that check answers. i have not any ID of these tools.
|
|
|
|
|
Still bit confused
Give them an ID if they dont have one already.
i.e.
<asp:textbox id="TextBox1">
<blockquote class="FQ"><div class="FQA">caradri wrote:</div>and after that check answers.</blockquote>
Do you mean you want to validate them? </asp:textbox>
modified on Wednesday, May 28, 2008 5:15 AM
|
|
|
|
|
the question is that:
I need to check data in a database, I have access only webpage way.
i need to open the web, access a data, (lets say a primary key or whatever) and check the answer. Again, only web access.
thanks for the answers.
|
|
|
|