|
Where can i post a thread for help with javascript?
There is no "JS" forum?
Thanks
|
|
|
|
|
|
you can also post it in web development section.
if this releated with asp.net , you can alos post over asp.net fourm
Thanks
|
|
|
|
|
How can in WebForm1 the function in WebForm2?
i try WebForm2. and look up for other overloads, but i get view the function.
Any one can help. A big thanks!
|
|
|
|
|
ewin,
You might get more help asking this in the ASP.NET forum.
Regards,
Gareth.
(FKA gareth111)
|
|
|
|
|
I am not shure I understand the question corretly. But in asp.net pages, a Form is loaded(Form1 in your example), when user requests this page. So there will be no instance of Form2. If you have to call methods from Form2 I think you will have to use static methods
I hope this helps!
|
|
|
|
|
doesnt sound like the best idea, you can however put the functions in a new util class in the same namespace or namespace.Util and inlcude that in your using statements(if you use the .util one) and access that functions that way, it makes life easier 6 months down the road when you have to change a method in form 2 you wont have to worry about where else it might be called at, but you know the util class would be used in other places so debuging may be easier for you. and if for some reason you change what form 2 does or replace your function and delete it, you wont accidently break another form you werent changing, this happened to a dev we had working here a few times then he finally took my advice after he couldnt figure out what was going on, now the code behind pages are clearer, and it forced him to start thinking about how to do things generically instead of copying the same function to 15 different files... hope it helps.
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
ewin wrote: How can in WebForm1 the function in WebForm2?
This is not the asp.net forum , please put it over ther.
Try to create separete class for accessing same function
|
|
|
|
|
Is it possible to expand a particular category and collapse another particular category in property Grid ? How can we do it.
Also if I do not have category , MISC is shown as category . Is it possible to remove "Misc"
Thanks ,
Rajan
|
|
|
|
|
|
Ok.. I need to expand all category or collapse all.
I need to change the category name of "MiSC" to some thing meaningful
Thanks
|
|
|
|
|
Those category names come from the System.ComponentModel.CategoryAttribute that decorate the public properties of the object being displayed in the property grid. Generally, the "Misc" category holds those properties that don't have this attribute. If you are displaying an object of your own making, then you need to add the attribute, which will move them out of "Misc". If you want to "move" other (inherited) properties, you need to override or hide them and change the attribute accordingly.
To expand categories you can do this:
PropertyGrid pg = new PropertyGrid();
pg.ExpandAllGridItems();
pg.CollapseAllGridItems();
GridItem gi = pg.SelectedGridItem;
if (gi.GridItemType == GridItemType.Category)
{
gi.Expanded = true;
}
Scott Dorman Microsoft® MVP - Visual C# | MCPD
President - Tampa Bay IASA
Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines][ Articles][ Blog]
|
|
|
|
|
Hi all,
In my web application, I tried to execute the Oracle stored procedure using the ODBC.
But it is giving an error like "Invalid SQL Statement".
Can any one tell me why and help me to get rid of this?
Thanks a lot in advance.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Is suspect the answer is in the message "error like Invalid SQL Statement" does indicate to me that your sql statement is not valid. Pull it out and see if it runs as PL/SQL
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Dear Bob,
Actually the same is working with Oracle client and the command is of stored procedure type.
Due to some other issues I am unable to use the Oracle client and I am trying to use ODBC and it is throwing this error.
Best Regards,
M. J. Jaya Chitra
|
|
|
|
|
Well, I suspect if you stop the code in debug and actually extract what is being passed in ther will be something that is different, otherwise it would work.
Give it a try and see
Bob
Ashfield Consultants Ltd
|
|
|
|
|
can someone tell me how to save a file to image file..
i want to save the fax receive from the modem to an image file to be save in the database..
is that possible??
even to convert it to msword format???
|
|
|
|
|
I guess you read the fax into a stream. Try this:
<br />
Bitmap bmp = (Bitmap)Image.FromStream(myStream);<br />
bmp.Save(myFileName, myFormat);<br />
Then you can add the file name to your database or convert the image into an appropriate BLOB format.
ginji20 wrote: even to convert it to msword format?
Ms Word format is for text documents. A Word document can contain images, but an image itself cannot be an Word document. I guess you want to create a document with an image on the first page. You'll find everything you need on MSDN. Look for MS Word Object Model and COM automation.
This statement is false.
|
|
|
|
|
Explain List[structure] in c#.net?
How to assign and retrieve values from the List[structure]?
shall you help me?
|
|
|
|
|
Most of your questions posted so far have started 'Explain '
Why not buy a book, read taht, try some code and then ask questions when it doesn't work. I seems all yuo are looking for is someone to answer your homework questions.
Buy a book or use Google, don't be so damn lazy.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
If you mean List<t> try List.Remove, List.RemoveAt, List.Add
|
|
|
|
|
Explain List<structure>? How to assign and retrive values from List<structure>
|
|
|
|
|
list is ordered collection and u can retrive value based on index
rahul
|
|
|
|
|
First of all Try Google
|
|
|
|
|
alternate codes for Close();
|
|
|
|