|
Ramp Up[^] is a free online learning program for developers. We’ve just launched three ASP.NET tracks. These tracks, along with the other currently offered ones (eg, Windows Mobile 6, SharePoint for Developers, Visual Studio 2008), teaches the important skills in a guided path, making the learning process easier and more efficient. The easy-to-access content (provided by subject-matter gurus) is specifically tailored for the Ramp Up program, and offered in a variety of forms (article, v-lab, codecast and slidecast).
These classes begin at the beginning, so you don't have to know a bunch before you get started.
Need tools? To get started using Microsoft developer tools for free or nearly free:
- Students (high school and college) can get Visual Studio to write a .NET application through Microsoft DreamSpark [^]
- Startup companies can use BizSpark[^] to get software licenses and developer tools
- Developers can also use the free Visual Studio Express[^] to get started
For more information, see Ramp Up Adds ASP.NET Training Tracks for ASP, PHP, Those Getting Started[^].
|
|
|
|
|
Actually I am very new to Linq. But I have a project where I have to use linq to entities. I have a Gridview in my aspx page and I have a table named Address with 6 columns. I have to bound this Gridview with data from table and I have to delete, update and insert new records using linq quiereies. How can I do that. I really appreciate that.
Regards,
|
|
|
|
|
//you have to create a DataClasses1.dbml and drag and drop ur tables and proceed
//these are methods and you have to pass the values.
public static void insert(int id, string name, string address, string department, string gender, int phone)
{
// DataClasses1.dbml name
DataClasses1DataContext da = new DataClasses1DataContext();
//table name
linq_padhu_emp data = new linq_padhu_emp
{
id = id,
name = name,
address = address,
department = department,
gender = gender,
phone = phone
};
da.linq_padhu_emps.InsertOnSubmit(data);
da.SubmitChanges();
}
public static void update(int id, string name, string address, string department, string gender, int phone)
{
DataClasses1DataContext up = new DataClasses1DataContext();
linq_padhu_emp updating = up.linq_padhu_emps.First(P => P.id == id);
updating.name = name;
updating.address = address;
updating.department = department;
updating.gender = gender;
updating.phone = phone;
up.SubmitChanges();
}
public static void delete(int id)
{
DataClasses1DataContext del = new DataClasses1DataContext();
linq_padhu_emp deleting = del.linq_padhu_emps.First(P => P.id == id);
del.linq_padhu_emps.DeleteOnSubmit(deleting);
del.SubmitChanges();
}
Padmanabhan
|
|
|
|
|
Hi to All
How to Refresh the GridView in ASP.NET 2.0
Thanks
Mohan Balal
|
|
|
|
|
Call the grid's databind method.
I didn't get any requirements for the signature
|
|
|
|
|
Hi,
Means should I once again execute the query and assign the Datasource and call databind ? or simple dg.DataBind() ?
Ramesh Sambari
Knowledge is like honey.
Collect it, to make life sweet.
|
|
|
|
|
It depends on how you coded it. Do you want to refresh the grid with new data from the database or not?
Press F5 and give it a try. There is more than one way to skin a cat. See the link below for more information.
http://msdn.microsoft.com/en-us/library/aa992036(VS.80).aspx
I didn't get any requirements for the signature
|
|
|
|
|
hi all,
I have two applications one is Windows application and the other is ASP.net application, both applications use Crystal Report 10 to preview data using direct SQL from the same stored procedure.
I'm passing one parameter to stored procedure using report.SetParameterValue() method
I have multiple copies of same database on multiple servers, one of them is working fine, but when connecting from ASP.net application to other databases - locally or remotely - it returns all records as if I didn't set parameter.
NOTE: the Windows application is working fine in all cases !!!
|
|
|
|
|
hiiii, can anybody help me???
|
|
|
|
|
Good Day All
I have a textbox in a userControl and it has a Property "Autopostback" set to true, and as i know , this is encapsulated from the hosting page. now i need to set this property to true so that the Gridview in the Hosting page can recognize that the textbox of the usercontrol is set to true. I have added the following Properties from my User Control
public bool TextBoxAutoPostBack
{
get {
return txtbxActvs.AutoPostBack;
}
set
{
txtbxActvs.AutoPostBack = value;
}
}
Now i need to use them in my hosting page.
Thanks
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Vuyiswa Maseko wrote: Now i need to use them in my hosting page.
so, where is the beef question?
|
|
|
|
|
How do i use Autopostback Property that i got from a textbox in the usercontrol in the host page.
That is a Question
Vuyiswa Maseko,
Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
It's not a very good question.
I'm assuming that you want to pick up the event that gets fired to your user control and pass that event back up to the page? I'd create an event on your user control that your page can then handle - fire this event when you catch the textbox event.
|
|
|
|
|
I've already answered this question in your previous post. Have you tried that out?
|
|
|
|
|
hi gus,
I am doing private chat application module. I am not using any remoting concepts to develop this.
I am doing this in web application and ajax with javascript. Problem is i am able to receive and send messages but i am not able to pop up the window in touser's(whom i want to chat) window.
Can anybody tell me how to popup window at destination browser with out using remoting concepts.
Thanks
|
|
|
|
|
sasib wrote: hi gus,
gus is not here
To pop up a window just use javascript, if you have problems with the pop up blocker, just add a button and add the javascript to the buttons event
Alexei Rodriguez
|
|
|
|
|
I have a page where iam hiding a required validator inside a table for a certain textbox. getting this error 'Page_Validators' is undefined. i have added runat="server" for table and validator
Any ideas why.
|
|
|
|
|
samerh wrote: getting this error 'Page_Validators' is undefined
Is js error? did you set ControlToValidate to the textboxes?
|
|
|
|
|
Yes a JS error and yes i set the control to validate
N.B when i delete the required validator the error is gone
below the code iam using, i have used it 100's of times:
<asp:TextBox ID="txtSubject" Width="300px" runat="server"></asp:TextBox><asp:RequiredFieldValidator
ID="ReqVal" Enabled="false" ControlToValidate="txtSubject" runat="server" ErrorMessage="Subject is required!"></asp:RequiredFieldValidator>
JS:
var reqValue = document.getElementById('<%=ReqVal.ClientID%>');
if (FPchk.checked == true)
ValidatorEnable(reqValue, true);
else
ValidatorEnable(reqValue, false);
|
|
|
|
|
I'm facing the same problem.... Searched for the solution but in vain!
[Update]
I've found the solution!
Just add a
<script type="text/javascript">
var Page_Validators = new Array();
</script>
to the start of your page giving the error.
And there you go!.....error solved.
modified 25-Oct-11 12:08pm.
|
|
|
|
|
|
hello
i am trying to add webreference by right clicking on project in visual studio 2008 located
at webadress http://www.uclocal.com/customerservice.asmx visual studio finds the webservice
but it dont add webreference it gives me error message below
The document at the url http://www.uclocal.com/customerservice.asmx?WSDL was not recognized
as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'http://www.uclocal.com/customerservice.asmx?WSDL' is 'The document format is
not recognized (the
the question is how to sort out error above
hannahwill
|
|
|
|
|
i have some issues in downloading. i have write a code for downloading a csv file the file is downloaded correctedly but the issue is in the name of file. i want the file to be downloaded with the exact name as i choose for it but the mozila and ie download the file with another name. in ie the fullpath along with the file name is shown along with extension but in mozila the file is else something and there is no extension. can any body help me how can i solve this issue.
thanx
amirzada
|
|
|
|
|
|
You need a 3rd party control to convert to pdf, a quick google search will finds you loads.
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|