|
This really has nothing to do with ASP.NET. It's pretty easy to do tho, surely there are articles on doing that on this site ? All you do is write something on top of the bitmap, typically I'd add that to the code that retrieves the bitmap in your data layer.
You create a graphics object from the bitmap and then you use the methods of that object to draw/write on it.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.
at napajax.Frm_Jobfinder2.getValue() in
|
|
|
|
|
This could be to do with the permission on the ASP.NET user, otherwise, it probably is not related to ASP.NET at all.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
System.UnauthorizedAccessException: Access to the path 'C:\HostingSpaces\consultelvin\napsterjobs.com\wwwroot\resume\muskan22.doc' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at System.Web.HttpPostedFile.SaveAs(String filename)
at System.Web.UI.WebControls.FileUpload.SaveAs(String filename)
at napajax.Frm_Jobfinder2.ImageFileUplodad(String file, String rename)
|
|
|
|
|
ASP.NET does not allow you to access the file system beyond the root of your web app, this could be the root of your other issue, too.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i m using coustom control and user conrol in page asp.net page .this control added into ajax update panel control . i want to set runtime focus in custom control or user control in control. how to set focus? plz reply
lav naphade
|
|
|
|
|
You need to use javascript to set the focus to a control. To do this, you'll need the client side Id of the control, which is the ClientID property of the server control. Do you know any javascript ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
i know the javascript but i m already using javascript but it is not working properly
For eg:
fucntion focus(customtxt)
{
customtxt.Focus();
}
plz send me solution
lav naphade
|
|
|
|
|
Hi All,
I am getting "Object reference not set to an instance of an object" although I am using "If Not IsPostBack Then .. END IF" while populating the data in the list-box.
Weird thing is that I have been using other Liston having same properties and functionality and they are working fine.
Have u been through this problem before? Any Suggestions?
Thank you very much in advance.
|
|
|
|
|
enthusiastic477 wrote: "Object reference not set to an instance of an object"
This usually comes when u try to access a null object or object that does not exist,please have a look on all the objects u are using to populate the ListBox eg: DataTable,DataSet etc
|
|
|
|
|
It means that your code is broken. Perhaps if you posted it, we could help more.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I was about to publish my site live until I discovered that a DDL is not displaying the first record from the results set! My code is as follows:
if (objRdr.Read())
{
ddlModelTypes.DataSource = objRdr;
ddlModelTypes.DataValueField = "TypeId";
ddlModelTypes.DataTextField = "ModelType";
ddlModelTypes.DataBind();
}
I thought the following line was replacing the first value:
ddlModelTypes.Items.Insert(0, "Other");
However, I took this out and it's still not displaying the first record value so any help will be much appreciated.
Thanks
Lorna
|
|
|
|
|
You do not need to call objRdr.Read(). Try the following.
connection.open
ddlModelTypes.DataSource = objRdr;
ddlModelTypes.DataValueField = "TypeId";
ddlModelTypes.DataTextField = "ModelType";
ddlModelTypes.DataBind();
connection.dispose();
I didn't get any requirements for the signature
|
|
|
|
|
Thanks but I'm using the if (objRdr.Read()) to check that records have been returned as sometimes there will be no records - is there another way to check this before using DataBind?
|
|
|
|
|
It doesn't matter if there's no records, the binding won't fail. You can always check post binding (i.e. count the items in the list) if you need to do something in that case. Calling dr.Read moves the reader onto the second record...
|
|
|
|
|
Do Like this
Member 3402886 wrote: ddlModelTypes.DataSource = objRdr;
ddlModelTypes.DataValueField = "TypeId";
ddlModelTypes.DataTextField = "ModelType";
ddlModelTypes.DataBind();
No need to Call
Member 3402886 wrote: if (objRdr.Read())
No need to Call , otherwise everything else looks ok , it should work
|
|
|
|
|
Hello friends,
I am using a FileUpload Control inside Customized CreateUserwizard Control. I am accessing textboxes inside the CreateUserWizard as ((TextBox)BusinessDetWizardStep.FindControl("txtfirmsname")).Text.Trim().
I also put a fileupload inside this wizard. But while catching the file in code using this code
if(((FileUpload)BusinessDetWizardStep.FindControl("fileupload1")).HasFile)
{
}
The Fileupload control does not get any file to upload...Why this is happening? What could be the cause and solution for this?
Thanks...
|
|
|
|
|
Are you using the fileupload within an updatepanel by any chance?
|
|
|
|
|
Thanks for the reply..
I am not using fileupload within UpdatePanel. The FileUpload is contained within WizardStep directly..
|
|
|
|
|
i added image datalist view.and i want to show my images by database.
imageurl=<%#&App_Data\Urunler\Banyo"+DataBinder.Eval(Container.DataItem,"resim") %>
where is wrong in that code?
|
|
|
|
|
You don't have any quotation mark at the beginning of the string.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
string constr = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Serverpath + "\\" + Session.SessionID + "1" + "." + fileext + ";Extended
Properties=\"Excel 8.0;HDR=NO;IMEX=1\"";
OleDbConnection con = new OleDbConnection(constr);
con.Open();
OleDbCommand com = new OleDbCommand("SELECT * FROM [Sheetname$]", con);
In the query sheetname is worksheet name. my sheet name will change frequently. is ther any way to access sheet name using sheet INDEX
its very urgent ......
Thnaks in advance....
|
|
|
|
|
mithun narayanan wrote: its very urgent
Avoid using "urgent".
This[^] article might help you.
Loading signature. Please wait...
|
|
|
|
|
mithun narayanan wrote: its very urgent ......
Isn't it always - but only to you, nobody else cares.
In the time it took you to post the question you could have tried it for yourself, so why don't you just go into debug and try it?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Is there any way to generate secure or cryptographic random numbers without using any third party code/tool(watever...English is not my first language). If not, then is CryptoAPI recommended?
I am using ASP/IIS 5.0.
[Edit]Somehow I feel that Web Developement is the forum for this kind of question. Is it so?[/Edit]
Loading signature. Please wait...
|
|
|
|