|
If the myId is an auto-number column then you don't need to specify in the insert mode when you want to create a new row. That also means, you do not need to have a field to input for this value in the insert form.
|
|
|
|
|
If that was the case it would not error on insert...
Unless I enter the next numbrt it fails...
I will look into it further...
Thanks
When people make you see red, be thankful your not colour blind.
|
|
|
|
|
Dear readers,
is there a way to get the size (especially the height) of a datagrid, after i databind a source to it? I need this to know in order to measure the space which is left on the page up to a specific pixel height.
Thanks in advance
Jens
|
|
|
|
|
You can make use of the Height Property of your datagrid to retreive its height.
Thanks and regards,
Suresh Dayma
|
|
|
|
|
Thanks Suresh for your answer,
if i set the Height of the Datagrid i can retrieve it afterwards, yes. But what i need is the actual height of the table, the amount of space it takes when it is rendered. For example if i have multiple rows in the table which are higher than the default height of a row, the whole table gets higher, because the height of the table is determined by the heights of its rows. And i want to retrieve the height of the table after the datagrid is databinded.
Thanks in advance
Jens
|
|
|
|
|
Hi,
In my ASP.Net Application i am using SMTP to send Mails from this application
In localhost System it working fine...
When I hosted that Application in Server, It giving Error like
SendUsing Configaration Value is Invalid
My coding at that plase
SmtpMail.SmtpServer = "localhost"; in this plase I also tried with Server name also
MailMessage mm = new MailMessage();
mm.Subject = subject;
mm.From = fromUserEmailAddress;
mm.To = toUserEmailAddress;
mm.Body = messageText;
SmtpMail.Send(mm);
Thanking you
Balu
-- modified at 5:25 Monday 28th August, 2006
Balu
|
|
|
|
|
|
hello
i'm facing the same problem the link which u hav given having some server error.
thanx
-- modified at 9:12 Monday 28th August, 2006
|
|
|
|
|
Are you not been able to see the content of the link?
Best Regards,
Apurva Kaushal
|
|
|
|
|
here i have a content for editing s well as adding new row,how to do dynamically this in asp.net.
i have no idea to do this,help me out
kissy
|
|
|
|
|
I am not sure whether the datagrid is having the feature of creating a new record. But you can achieve is two ways:
First one is get the field values from the user, insert the record in the database and then again bind the datagrid.
Second way is that create a blank row for the datagrid and allow the user to create a row for that.
Best Regards,
Apurva Kaushal
|
|
|
|
|
There are lots of datagrid examples from the site[^]
|
|
|
|
|
hi,
I am trying to store all the errors in a text file in the root drive of my machine.
But whenever i try to access the file it gives and exception that access to the file is denied.
plz help.
I dont want to store file in my application.
Ex:
FileStream fs = new FileStream(sPath, FileMode.Append, FileAccess.Write);<br />
StreamWriter writer = new StreamWriter(fs);<br />
writer.Write(sText);<br />
writer.Close();<br />
fs.Close();code><br />
<br />
<br />
<br />
thanks a ton.<br />
<br />
Deepak Surana
|
|
|
|
|
i found the solutions myself... yeah!
Actually, i was trying to make the file in c:\
but if i make the file in any directory , i will allow.
Bingo.!!!
Thanks a ton who so ever tried.
|
|
|
|
|
Hi,
I'm thinking on a project (not prof.) in which will work like MS SharePoint. I mean users will login and update files and manage them (delete, send, update etc.).. My question is if ASP .NET will work fine for this project? Because noone outside the network may login, only network participants (an intranet?).
Hope I could explained my question..
Best regards
.:: Something is Wrong ::.
|
|
|
|
|
pashje wrote: My question is if ASP .NET will work fine for this project? Because noone outside the network may login, only network participants (an intranet?).
Yes, I think ASP.NET will work just fine. For the authentication part, you may consider using the Windows mode to authenticate any user who accesses the application.
|
|
|
|
|
Is there a way to prevent ASP.NET selecting the UI culture automatically?
Actually, if I set the UI culture using Thread.CurrentThread.CurrentUICulture, all the Global resources are selected correctly, but all the Local resources are still selected following the browser's settings.
I'd like to select the culture and ui culture only via code.
I also added to the web.config file the tag <globalization enableclientbasedculture="false"></globalization> , with no effect.
How can I fix this? (I'm using ASP.NET 2.0)
Thanks for any help.
________________________________________________
Tozzi is right: Gaia is getting rid of us.
Personal Blog [ITA] - Tech Blog [ENG]
Developing ScrewTurn Wiki 1.0 RC, now with AJAX Preview.
|
|
|
|
|
|
Here i have a problem that,In a tanle when i give some input that should be shown in the table and if press enter it sholud take again an input value from the keyboard to the next line.the values which are enterd present and previous should be in the web page in the same time.
how to do
kissy
|
|
|
|
|
Hi all!!
I have been using the SQL Membership and Roles Providers, I was working the 5-part series from 4guysfromrolla.com.
Soory for the long post, but the error is very long.
My web.config file looks like this:
<membership defaultProvider="MySqlMembershipProvider" userIsOnlineTimeWindow="15">
<providers>
<clear />
<add
name="MySqlMembershipProvider"
applicationName="dev"
connectionStringName="MyDatabaseConnection"
description="Stores and retrieves membership data from the local Microsoft SQL Server database"
enablePasswordReset="true"
enablePasswordRetrieval="true"
maxInvalidPasswordAttempts="5"
minRequiredNonalphanumericCharacters="0"
minRequiredPasswordLength="6"
passwordAttemptWindow="10"
passwordFormat="Encrypted"
passwordStrengthRegularExpression=""
requiresQuestionAndAnswer="true"
type="System.Web.Security.SqlMembershipProvider" />
</providers>
</membership>
<roleManager enabled="true" defaultProvider="MySqlRoleProvider">
<providers>
<clear />
<add
name="MySqlRoleProvider"
connectionStringName="MyDatabaseConnection"
description="Stores and retrieves roles data from the local Microsoft SQL Server database"
type="System.Web.Security.SqlRoleProvider" />
</providers>
</roleManager>
So when trying to add a new user through the ASP.NET configuration tool, I get the following error, and I do not know what the error is and why I am getting it.
An error was encountered. Please return to the previous page and try again.
The following message may help in diagnosing the problem: Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.Administration.WebAdminMembershipProvider.CallWebAdminMembershipProviderHelperMethodOutParams(String methodName, Object[] parameters, Type[] paramTypes) at System.Web.Administration.WebAdminMembershipProvider.CreateUser(String username, String password, String email, String passwordQuestion, String passwordAnswer, Boolean isApproved, Object providerUserKey, MembershipCreateStatus& status) at System.Web.UI.WebControls.CreateUserWizard.AttemptCreateUser() at System.Web.UI.WebControls.CreateUserWizard.OnNextButtonClick(WizardNavigationEventArgs e) at System.Web.UI.WebControls.Wizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.WebControls.CreateUserWizard.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.WebControls.Wizard.WizardChildTable.OnBubbleEvent(Object source, EventArgs args) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
What I did was to remove the following properties and it worked just fine:
enablePasswordReset="true"
enablePasswordRetrieval="true"
maxInvalidPasswordAttempts="5"
minRequiredNonalphanumericCharacters="0"
minRequiredPasswordLength="6"
passwordAttemptWindow="10"
passwordFormat="Encrypted"
passwordStrengthRegularExpression=""
requiresQuestionAndAnswer="true"
Please can someone tell me what I am doing wrong, what must I add extra, what must I leave out.
Thanks in advance!!!
Regards,
ma se
|
|
|
|
|
i created excel file with createTextFile object.. i am able to pass the values to the sheet.. but i am not able to include images in excel through asp..
i created image using obj.writeline("....<imag src="">....").. but at this time image is getting without excel cells...
please help me regarding...
-- modified at 2:42 Monday 28th August, 2006
|
|
|
|
|
Hi All,
I developed one website. but it is looking pretty slow. can any body give me suggestions to "Improve the Performance of the website". Thanks in advance
Thanks and Regards
Venkat
|
|
|
|
|
|
Thank you very much sir. i will keep in touch with you
Thanks and Regards
Venkat
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|