|
actually i am trying to design a registration page where i want to validate this userid's textbox field so that it will not take less than 5 characters...
so should i use custom validator or go by any otherway? if any other way can u specify..........
|
|
|
|
|
Alright ASP.NET again.. Sorry can't help
|
|
|
|
|
Why bold the entire post?
There are plenty of ways to do these things. Assuming you are speaking of web project, you can do this through the validation controls available. You can have a regular expression validator to do this.
In case of windows forms, use Validating event of the textbox to check text length.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
but regular expression validator r only used to validate the kind of fields like e mail ,phone no, etc.......i think...
|
|
|
|
|
No, a RegEx can be used to do this too. Though, there are other, lighter weight methods to use. If you need to do further validation, RegEx would probably be the way to go.
|
|
|
|
|
Hi all,
How to call a C# method from a javascript. for example i am fetching a document.activeElement.value and i want to send this value to the C# method.
Is it possible, if some one knows this pls help me
thanks in adavance...
|
|
|
|
|
You can have a hidden html control in your page and share the value through that between client and server side.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
you can share this value via hidden control as d@nish said else if you really want to call C# method from javascript then call it like this
<%# serverMethod() %>
|
|
|
|
|
You can easily call server side static method, pass some value to it and get the returned value on your page without page postback.
You can write a static Method in your Code-File with:
[System.Web.Services.WebMethod]
public static string MyMethod(string value)
{
return SomeString;
}
Use Script Manager with PageMethods Enabled.
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true"/>
Now you can call your server side method with:
PageMethods.MyMethod(valueToPass, ChangeDDLValue, EnableDDL, dest);
for details please go Google about Ajax PageMethods.
Hope this will help
|
|
|
|
|
Hi Thanks a lot,
I am using windows application which adds the scripts dynamically using BHO object and identifies the click even of the link.and actually i cant create the files in local disk from javascript(because of the security issues) so i thought of calling a c# method. then i realized that it cant be done.but we can call a webservice which can manipulate my data from javascript.
Once again thanks for the solution.
|
|
|
|
|
hi
i have datagridview that show's database.
(holding DataSet)
if I change any value in datagridview cell - how this change
will change in the database too ?
thank's
|
|
|
|
|
Hi,
Are you using visual Studio 2008
|
|
|
|
|
Hitting the database every time the user changes cell value will not be a great idea. I suggest to have a save button or something of that sort in your form. On click of that button you can update the values back in the database. You can find lots of examples for saving data back to database on web.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
thank's for the help
what i need to do ?
after i change cell value, i need to run over the datagridview
and update the database ? this way ?
can i get sample code for this ?
thank's in advance
|
|
|
|
|
Not exactly. Let the user make changes in the values. And when he/she is done, have a save button to send the updated data back to database. You will need to handle the click event of the button and update the data in your database.
As far as sample code is concerned, this is a bit trivial thing. So, a quick search with correct keywords would give a lot of samples to you.
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
Hi guys,
I have a requirement to look at extending functionality of a custom Store. The store contains a tree, and what my client needs to happen is that once a folder is selected then either a VS form containing a web control, or a browser, is displayed filling the right hand pane of the screen pointing at a custom page on their intranet.
I am struggling to find if this is possible within Outlook 2003 and where to start looking.
Any help much appreciated.
Thanks
Stuart
|
|
|
|
|
007_Stu wrote: I am struggling to find if this is possible within Outlook 2003 and where to start looking.
Your problem description implies this is a web issue; could you clarify what this has to do with Outlook?
|
|
|
|
|
I need to click on a folder within an Outlook (specific) Store and display either a browser, or a .net form containing a browser in the right hand pane of outlook....
|
|
|
|
|
007_Stu wrote: I need to click on a folder within an Outlook (specific) Store and display either a browser, or a .net form containing a browser in the right hand pane of outlook....
Sorry, I'm not sure I understand what you are trying to do. Can you explain what code you are using and how it interfaces with Outlook?
|
|
|
|
|
Hi,
I know generics had come after StringCollection, but is there any major difference why we should go for List<string> and not the other...or vice-versa..
Regards,
Priya.
|
|
|
|
|
|
i m getting data from other site. the site is in aspx and paging are used in that page. i m able to get data from the first page but did not able to move to next pageing.
i have sent all the needed data. the link of the page is as
<a href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$GrdVwJobList','Page$2')">2</a>
thanx
amirzada
|
|
|
|
|
This question would be more likely to get an answer if posted to the ASP.NET forum.
|
|
|
|
|
i don't think so cuz i m not using web application its totaly a c# console application
amirzada
|
|
|
|
|
aamirzada wrote: i don't think so cuz i m not using web application its totaly a c# console application
The description of your problem suggests a web application. The code you posted suggests javascript. I see nothing to indicate a console application, whether C# or any other language.
|
|
|
|