Hi there.
I am having problems with OnSelectedIndexChanged.
If fires if I manually change the selected item in the drop down but not when I select an item in the dropdown in the code behind.
I have checked and all the values are different, the drop down is not reloading when I have changed...
Hi,
I hate how broad this question is but I could really do with some help.
I have played about a bit with Sharepoint before and published a form template to a form library but that is as far as my experience goes.
I have been asked to develop a form that writes customer information to a...
Hi Lodlaiden
Thanks for your reply.
I added that but no luck.
I gave it the name of the function that the command event would have fired but no luck.
I have tried everything I have come across while searching, with and without a check for onpostback, with and without EnableViewState.
The...
Hi,
I dynamically add a link button to my datagrid with a command name etc but the Item Command event handler won't fire.
I add the datagrid event handlers in the onload event like so :
grdFunds.EditCommand += new DataGridCommandEventHandler(grdFunds_Edit)...
Hi,
Thanks for the link but my production server won't have word installed and this references the word.application class. Unless I am mistaken I would need to install word to gain access to this.
Sorry I thought I mentioned in the OP the main problem is no office/word will be there.
Many thanks...
Hi,
I want to be able to read the text from an uploaded word document into a string and save the string in a resx file.
I am fine doing this if the document is a txt or a html by using :
//// html and text doc this works.
StreamReader sr = new StreamReader(FileUpload.PostedFile.InputStream)...
Hi,
Managed to figure it out I had to call before I tried to do any logging.
log4net.Config.XmlConfigurator.Configure();
All happy and working now :)
Jacqui
Sorry, realised I could be a bit more help.
That was debug code.
The code I use in my production is a little more help to your end result.
string group = "AD Group to check"
bool userisinrole = false;
if (User.IsInRole(group.Trim()))
userisinrole = true;
if (!userisinrole)
{...
Hi,
I have used this in the .cs page on load to print to a label all the ad groups the user belongs to.
Is the below what you want ?
//// DEBUG CODE gets each of the logged on user's groups
// gets current user
WindowsIdentity user = WindowsIdentity.GetCurrent()...
Hi there.
I have used log4net many times before with success but am having problems getting it to log in this one web site.
I have [assembly: log4net.Config.XmlConfigurator(Watch = true)] in my AssemblyInfo.cs
Here is the code in the page at the top is.
private static readonly ILog log =...
Okay, I got this sorted now so thought I would put down on record what the fix was.
I needed to open the file using Open Web Site - Local IIS and then select the project.
Thanks.
Jacqui.
Hi,
I have an issue with a site I have inherited, it is an MCMS 2002 SP2 project.
I have managed to check out the project from VSS and have opened the project with the Template Explorer menu populated nicely.
However when I try and open up the template to edit I get Error message:
Could not...
@PGO01.
Sorry it took so long to get back but I was given higher priority stuff for a while.
Anyway back on to this, I used that and it does the trick perfectly.
Many Thanks.
Jacqui.
Hi,
I have a main report and a sub-report which gets its data from a different table.
When I run the main report it does not show the sub report.
The sub report runs on it's own as a main report and shows me the data I expect to see.
There are no parameters or anything complex.
I have added a...
I know there are soooooo many ways around it but my boss wants it as it is part of what our customer is asking for so as far as he is concerned it needs to be done no matter what.
I have explained everything about it to him and he just shrugged his shoulders and said it needed to be done.
I will...
It is a little more comples than it would appear.
It does need to be dynamic as I might be passing other values to be in the where clause so it might be.
where name = 'myname' and title = 'mr' and area= 'home'
or it might be just where name = 'myname'.
Or there might not even be a where clause...
...easy for the report.
So I will have @filter = " where name = 'myname' ",
exec sp_get name @filter
the stored proc reads.
sql = 'select * from table ' + filter + ' order by name'
sp_executesql @sql
the stored proc doesn't seem to like the fact that I have quote marks around 'myname' in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.