|
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.
|
|
|
|
|
OK um check this out then:
http://www.w3schools.com/aspnet/aspnet_dbconnection.asp
This explains how to connect to a database.
|
|
|
|
|
thanks .netman for your response.
but the web already exist. i can't create another one.
I only can "use" a existed web page as handly a user access data. but i want to do this by code.
|
|
|
|
|
Sorry I dont understand what you are trying to achieve.
Good luck with your project though
cheers
|
|
|
|
|
Hello all
I have developed a website and deployed it on client server. To catch i have ihave used try catch block.Whenever there is a error it shows me correct error message on my local machine. I have deployed application on client server and whenever there is any error in application instead of showing me the error it shows me web.config error which is as follow.
<br />
Server Error in '/' Application.<br />
Runtime Error<br />
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.<br />
<br />
Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customerrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customerrors> tag should then have its "mode" attribute set to "Off".<br />
<br />
<!-- Web.Config Configuration File --><br />
<br />
<configuration><br />
<system.web><br />
<customerrors mode="Off" /><br />
</system.web><br />
</configuration><br />
<br />
<br />
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customerrors> configuration tag to point to a custom error page URL.<br />
<br />
<!-- Web.Config Configuration File --><br />
<br />
<configuration><br />
<system.web><br />
<customerrors mode="RemoteOnly" defaultredirect="mycustompage.htm" /><br />
</system.web><br />
</configuration><br />
<br />
</customerrors></customerrors></customerrors>
Can anybody tell me why the correct error message is not getting displayed on server.
Thanks
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
In web.config file make sure that CustomErrors's mode is off
<customerrors defaultredirect="~/ErrorHandler.ashx" mode="Off"></customerrors>
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... "
|
|
|
|
|
yes it is RemoteOnly but it is commented?
It display proper error message me on local buth when i upload on server and page having any error then instead of displaying proper error it displays web.config file error.
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
mode should be Off instead RemoteOnly
As it is RemoteOnly you are getting Custom error when you are trying to access from local machine but when application is local you are getting proper Error
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... "
|
|
|
|